The Dink Network

Dink hit procedure

July 1st 2011, 01:46 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
So, I have this lingering thought in my head where I belief I have once read that Dink has a hit procedure as well, the same way he has a die and levelup procedure... Is this true or did I dream this? (it's possible, I'm not kidding...)
July 2nd 2011, 10:02 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Or any other way to detect whether Dink is hit by something would work fine too. And not an unreliable loop checking his health
July 2nd 2011, 10:20 AM
spike.gif
I know of no such thing, but you can attach a script to Dink with script_attach().
July 2nd 2011, 11:51 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
So I can attach a script with a hit procedure?
July 2nd 2011, 12:05 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
script_attach(&crap); won't change &crap's hit procedure to the one in the script that runs that code. Maybe sp_script(1,"script"); works, but I think Dink may be an exception. Another thing: if it works, it may not survive screenchanges.

So... just try and see what happens?
July 2nd 2011, 12:05 PM
spike.gif
Yep.
July 2nd 2011, 01:03 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
I currently don't have my regular PC so I can't test I'm scripting stuff blindly at the moment actually xD

But I'll test it in 2 days (or 3) and come back here with the results of my testing
July 3rd 2011, 05:03 AM
knightg.gif
Sumurai8
Peasant He/Him Netherlands
Who's knocking on heaven's door? 
Looking forward to that