im making a random battle code and two people can enter the same battle.
turf/var/randomnum
turf
battle
battlegrass
Entered()
randomnum= rand(1,100)
if(randomnum>=85)
usr.loc=locate(/turf/battle/battlegrounds)
battlegrounds
thats my code.. i believe the problem is the game doesnt know that the turf "battlegrounds" is already occupied. can anyone help me accomplish this?
ID:174893
Jul 9 2003, 4:02 pm
|
|
In response to Theodis
|
|
this is what i have come up with
turf/var/randomnum any problems that anyone can point out? |
In response to Siefer
|
|
You need an
if(!ismob(M)) return |
For more information look up Entered() in the reference.