The Dink Network

Reply to Re: trigger

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:
 
 
August 24th 2005, 11:42 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
I'm not quite sure what you mean by 'make enemies react when Dink uses a weapon'. I have two main ideas:

1) Run the 'item_use' procedure for all of the sprites on the screen whenever Dink uses an item.

2) Run the 'item_use' procedure for enemies within the range of Dink's special hit frame.

Number 1 is fairly easy to do... in the item script, use a loop to go through all of the sprites on the screen, checking for sp_gold values, and using run_script_by_number to execute a procedure if available.

Number 2 will be easy to do with v1.08... &missile_source will be used for all attacks, not just missiles, so you could have something like this:

void hit(void)
{
if (&missile_source == 1)
{
say("`4Ouch, Dink hit me.", &current_sprite);
}
}