callbackOnDealDamage Question

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

callbackOnDealDamage Question

#1 Post by Micbran »

So, the wiki cites callbackOnDealDamage as working like this:

Code: Select all

callbackOnDealDamage(val, self, dead, death_note)
val(damage dealt)
My question is: does the val value only contain the float of the damage dealt or does it also contain other info such as the damage type? I'm trying to make an ability similar to natural acid/corrosive nature, so I need to know what dam type the damage is.
A little bit of a starters guide written by yours truly here.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: callbackOnDealDamage Question

#2 Post by darkgod »

Damage type is actually in "death_note" and may or may not be present (but 99.999% times it is) (yeah I know ..)
Damage value is just the number yeah
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Re: callbackOnDealDamage Question

#3 Post by Micbran »

Well, I'll take my chances. How is it stored?
A little bit of a starters guide written by yours truly here.

Post Reply