is there a way to make it so something just happens once with out var, for ex.
turf/thingy
Enter()
//do stuff but only the first time the person passes by.
ID:179012
Feb 28 2002, 11:21 am
|
|
In response to Jmurph
|
|
ok well more or less i just want it so when someone walks over a tile its does something, but only once and never again for that char, but it can do it again for other players.
|
In response to Scoobert
|
|
Two easy ways to do this:
1) Track within the mob. mob var/triggered // the var to see if this mob has triggered the event turf Entered(mob/M) ..() if(!M.triggered) // Have they done it before? //do whatever M.triggered = TRUE // Now they have! 2) Track by turf turf var/list/players_trigged[0] // List of mobs that have done it Entered(mob/M) ..() if(!players_trigged.Find(M)) // Is this mob on the list? // do whatever players_trigged += M // Is now! -James |
In response to Jmurph
|
|
hum ok looks like thoughs will work
|
Without knowing more specifically what you wish to do and why you don't wish to use vars it is hard to recommend a solution.
-James