ID:266270
Oct 28 2001, 12:59 pm
|
|
I think this is what I use for. If the usr's var equals 1 then it doesnt let them move else they can move wherever they want, I have tried several stuff, but it no wor :(. Any help would be apprieciated!
|
Copyright © 2025 BYOND Software.
All rights reserved.
Well, returning 0 in Move() doesn't do the moving. Returning 1 does. So, you'll want to see if the "locked" var returns TRUE, then Move() will return 0, preventing movement.
Let's write some pseudo-code (English "code" to be translated to DM)
This isn't very complicated pseudo-code, but it's pseudo-code nonetheless. Now, we just translate it to DM. One thing we can't make in pseudo-code is vars. We'll add that in.
As an alternative to returning 1 in the else clause, you could return ..().
Now, for a test verb for locking movement. Maybe a GM ability?