ID:176794
 
Why is this turning up undefined var?

mob/player/var
list/animals = list ()
mob/animal/cur_monster


proc/Selection()
var/select = input("Select Animal") in usr.animals
usr.cur_monster = select


It's saying animals and cur_monster are undefined (in the selection proc), yet I have defined them above.

Help?

-The trying to get back into programming, Sariat
usr is a mob, not a mob/player. Change it to src.
In response to Garthor
I've tried it. Still gives out same errors.
<code> proc/Selection() var/select = input("Select Animal") in usr.animals usr.cur_monster = select </code>

Try making it proc/Selection(mob/player/M), and replace usr with M.
In response to OneFishDown
D'oh, I forgot about that! Thanks OneFishDown!