The Dink Network

Reply to Re: Getting the damage/hit value

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:
 
 
March 11th, 11:35 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
Yeh that DinkC example does indeed mirror the same result as the internal damage code.

As for getting the exact damage done to a sprite, I'm not sure, I've never tried, are you trying to retrieve the raw amount of damage done before defense is taken into account or just the end result of damage done after calc. I can't think of a way off the top of my head aside from setting all actual damage to 0 on hit and just calling an external that handles that same damage calculation so it yields the same result but you have the number available to you. I did that with missile damage in Charlie for other reasons.

As for that repeating barrel hit sound... I'm not entirely sure what that's in relation to, but that sounds like something that should be solvable. Could you link me a script or more info and I'll test?

Edit: nvm I just noticed you said it happens in persistent loot. I'll test when I get home.