var/choice = input("Please select your character to play with.")in list("Blah")
if(src.choice == "Blah")
usr.loc=locate(7,7,8)
Problem description:
src.choice:undefined var
What does this mean, I cant seem to fix it.
ID:142044
![]() Sep 2 2008, 11:57 am
|
|
Code:
var/choice = input("Please select your character to play with.")in list("Blah") Problem description: src.choice:undefined var What does this mean, I cant seem to fix it. |
src.choice would be:
mob/var/choice
What you did, remove src. infront of choice. And yeah, read the DM guide. |
Im still not getting something. Here is what I have.
Code: mob/var/choice = input("Please select your character to play with.")in list("blah") |
Dbgtsuperfreak wrote:
Im still not getting something. Here is what I have. > mob/var/choice = input("Please select your character to play with.")in list("blah") His telling you, you can either use var/choice => if(choice=="blah") OR mob/var/choice => if(src.choice=="blah") anyway, its best to read the guide. |
You've defined this variable as a local var of the proc, not as a var of an object, such as 'src'. This is very basic, so you should probably read up on variables in the DM Guide and Reference some.