I’m looking for a script that will regenerate one heart every minute as long as your on the overworld. The overworld being prefixed “newworld”. While not on the overworld, the script needs to stop functioning. Also, it needs to be able to heal with AP lower than 40…this is what i screwed around with so far, and of course it’s not working.
Reason yours broke, it would stop completely and never start again once you left the overworld. Plus:
if(startswith(newworld,#L&&playerap < 100&&playerap > 0)) {
You stuck “&&playerap < 100&&playerap > 0” within “startswith(newworld,#L)”
And since you’re checking for AP (which isn’t needed), you have it so it doesn’t work for people with 0 or 100 AP.
ALTHOUGH, it does suck that when you cross levels on the gmap, it restarts the timeout… so you cant roam the overworld and regenerate, you have to stay in one level -_-
If you really want to, you could shorten the timeout, and make a variable that is just a counter (to 1minute or whatever interval). That way it won’t startover each level. Though you’ll be running timeouts much more often.