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, 10: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. |
In response to Kaioken
|
|
Im still confused...I have defined it.
|
In response to Dbgtsuperfreak
|
|
src.choice would be:
mob/var/choice
What you did, remove src. infront of choice. And yeah, read the DM guide. |
In response to DemonSpree
|
|
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") |
In response to Dbgtsuperfreak
|
|
...choice SHOULDN'T be a /mob var.
You should read the DM guide... even I know this. |
In response to Dbgtsuperfreak
|
|
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. |
In response to Generation
|
|
mob/var/choice would be absurd.
Just do var/choice. |
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.