ID:178656
Apr 20 2002, 4:54 am
|
|
when I use a verb like fly and SSJ, and I have another verb like land and one more verb that says revert and both, revert and land do the same thing. How do I make it so that only the verb land works when you are flying and the verb Revert only works when you are in the SSJ form
|
First, make the Land and fly verbs proc. Then, in the players login, do this:
verbs += /mob/pathtoplayer/proc/Fly Then, inside of the Fly Proc, use: verbs -= /mob/pathtoplayer/proc/Fly verbs += /mob/pathtoplayer/proc/Land Inside of Land, do the opposite: verbs += /mob/pathtoplayer/proc/Fly verbs -= /mob/pathtoplayer/proc/Land |
In response to Nova2000
|
|
Nova2000 wrote:
First, make the Land and fly verbs proc. Then, in the players login, do this:Thats not needed at all, all you have todo is make is just a mob/verb/fly and mob/verb/land and all mobs will automatically have it. |
I'll give an example,
mob
var
isflying = 0
verb
fly()
if(usr.isflying == 1)
usr << "Your already flying!"
else
usr << "You take off!"
usr.isflying = 1
land()
if(usr.isflying == 0)
usr << "Your not flying!"
else
usr << "you land on the ground"
usr.isflying = 0