ID:268135
 
mob/P

P.vars["food"]=0
P.food=0


are those 2 equivalent?

No one responded to my earlier post about vars[]...

what exactly is vars doing? From what I'm reading from the reference I sorta derive that this a way to search through the LIST of vars the mob has, so is it searching or since I gave it a direct input it won't have to search?
Jon Snow wrote:
mob/P

P.vars["food"]=0
P.food=0

are those 2 equivalent?

Correctamundo!

what exactly is vars doing? From what I'm reading from the reference I sorta derive that this a way to search through the LIST of vars the mob has, so is it searching or since I gave it a direct input it won't have to search?

It's more or less direct.

Lummox JR