ID:149555
 
if("Red")
usr.loc=locate(1,1,1)
if("Blue")
usr.loc=locate(1,1,2)

**RUNTIME ERROR**
Nomatter What I get located at 1,1,1!!
Can I please be helped!?
P.S: Map examples:
Map001_Red Base; for(X as turf with density = 0)
xxxxx
xxxxx
xxxxx
xxxxx
xxxxx

Map002_Blue Base; for(X as turf with density = 0)
xxxxx
xxxxx
xxxxx
xxxxx
xxxxx

Okes
not sure but change usr to src

-Mike
In response to Soccerguy13
Nope
In response to FireEmblem
Make sure to put that after the ..() in Login. If that isn't the problem then we'd have to see more code.
In response to English
mob
ChooseChara
var/mob/character
Login()
var/charactername = input("What is your name?","Name",src.key)
world<<"[usr] joins!"
switch(input("Pick a team")in list("Red","Blue"))
if("Red")
character = new/mob/Red_Smifflion()
src.loc = locate(1,1,1)
if("Blue")
character = new/mob/Blue_Smifflion()
src.loc = locate(1,1,2)
character.name = charactername
src.client.mob = character
In response to FireEmblem
As stated: "Make sure to put that after the ..() in Login. If that isn't the problem then we'd have to see more code."
In response to Foomer
=D
In response to FireEmblem
Oddly enough, it's not in there.

However, you can still find the meaning by looking in the ZBT tutorial or the Guide!
In response to Foomer
Really?
.. proc
See also:
. proc
Format:
..(Args)
Returns:
The return value of the parent proc.
Args:
The arguments to pass to the parent proc. This defaults to the arguments to the current proc.
If object O is derived from object P, P is called the parent of O. If a proc (or verb) is defined in both O and P, O can call P's version by using ..().

Example:
mob
P
verb/history()
world << "P"

O
verb/history()
world << "O"
..() // call P.history()

Here O is derived from P. When P calls "history", his name is displayed. When O calls "history", his name is displayed, followed by the name of his parent, P.

..() can also be used for predefined procs.

Example:
mob/Move() // override proc
world << "moving..."
return ..() // call default

This proc will print "moving..." whenever the mob moves.
In response to Foomer
May you PLEASE TELL ME WHERE TO PUT THE ..()!?!?
In response to FireEmblem
FireEmblem wrote:
if("Red")
character = new/mob/Red_Smifflion()
<font color=#ffffa0>src.loc</font> = locate(1,1,1)
if("Blue")
character = new/mob/Blue_Smifflion()
<font color=#ffffa0>src.loc</font> = locate(1,1,2)

character.name = charactername
<font color=#ffffa0>src.client.mob = character</font>

You are setting the loc of src, the ChooseChara, then you place them in the newly created character mob, which is still at 1,1,1. Instead of changing src.loc, change character.loc.
In response to Nadrew
Hmm. I must have added an extra dot or something when I searched.