The Dink Network

Reply to Re: Why Can't I Quit You, DinkC?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 17th 2013, 05:10 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
When you hit (or talk to, when the bonca's script allows this) the script will move to the appropriate procedure, and break the healing loop you set up.

You can fix this in multiple ways, one of them is by simply adding "goto heal;" at the end of the hit procedure. Unfortunately that still means that the loop gets restarted every time the monster is hit, so the player can prevent the bonca from healing by hitting it at least ever two seconds. You can (somewhat) get around that by splitting up the wait into multiple wait() commands so the loop continues where it was (approximately) after being hit. Remember that each wait must be at least 50 or so milliseconds long for it to be somewhat reliable in its duration.

The other possibility is to do the healing loop in another script, but you must be careful to track whether or not the bonca is still alive.