ID:270460
May 17 2006, 4:19 pm
|
|
how would i make a rest verb that will restore 10% of stamina every second and if the user moves it will break the cycle instead of not letting them move at all?
|
In response to PirateHead
|
|
I'd do something that checks location of the user and the health everytime it restores 10%.
|
In response to CaptFalcon33035
|
|
No. There's no reason to check locaton after restoring health. If you break the cycle that restores a percentage of health as soon as the mob moves, the system will run fine.
|
Look up event loops using while() and the Move() proc; consider basic variable definitions and logic.