The Dink Network

how to

March 17th 2004, 04:15 AM
spike.gif
make something happen when a foe hits dink?
March 17th 2004, 04:18 AM
maidenb.gif
Sharp
Peasant She/Her Finland
 
do something in void attack( void )? I'd imagine.
March 17th 2004, 04:25 AM
spike.gif
Nope, in void attack() the enemy only tries to hit Dink. I want something to be run when he actually hits him...

hehe. I like being italic.
March 17th 2004, 04:27 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
There's not really any way, I think.
March 17th 2004, 07:30 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Euhm... in the attack( void ), put Dinks life into another global, as well as the number of the creature attacking him. Fire up some script that waits for an amount of time (not too long, about a wait(100); will do, I think) then check if Dink's life is less than it was before. If so, the creature hit him and you can use the stored creature's number to do whatever you want. Though I doubt this is efficient.