The Dink Network

Reply to Re: Enemy target

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:
 
 
February 10th 2013, 07:21 AM
spike.gif
The problem is that the script gets interrupted whenever the bonca gets hit. Therefore, the grey bonca doesn't actually look for a new target like its supposed to. There are two simple ways to fix this:

1. Restart the targeting stuff in void hit. (ie. add set_callback_random("target",2000,0) in the hit procedure)
2. Use external() for the targeting stuff, in which case it won't get interrupted.

EDIT: Targeting other monsters after Dink dies is a bit more complicated, because Dink will still be brain 1 after his death, so they just keep mopping on his corpse. You could check if Dink has less than 1 point of life in the monster's script, and target something else if he does.