I don't know how to explain this, ummm ok when I click something and an alert pops up, all I have to do is click my map and I can move while the Alert is there...how do I make it so I can't move?
!@#$%^&*()
YellowDragon9768
()*&^%$#@!
ID:175136
![]() Jun 7 2003, 9:19 am
|
|
1.
Make a new variable called 'lock' or something you want.
mob/var/lock = 0
2.
In your built-in move proc, put this in.
mob/Move()
if(src.lock) // if your lock is on...
return // you don't move
return ..() // otherwise, you move
3.
In your clickey thing, you can change your lock var to 1 so you are not able to move.
turf/clickey
Click()
usr.lock = 1
alert(usr,"Alert thing!")
usr.lock = 0 // and when you are done 'alerting', your lock turns to 0
If this doesn't help you, I may have misundered your question. Hope it helps you!
~~Dragon Lord~~