• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Trying to figure out where stuff is..

Xikini

I whore myself out for likes
Senator
Premium User
Joined
Nov 17, 2010
Messages
6,756
Solutions
578
Reaction score
5,305
Specifically right now I'm trying to figure out all of the stuff that can come out of onHealthChange
But I have no idea where to look to find it.
Lua:
onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
What is all the primaryTypes?
What is all of the origins?

How do I find this information for myself in the future?
 
Solution
origins are:
Lua:
    ORIGIN_NONE,
    ORIGIN_CONDITION,
    ORIGIN_SPELL,
    ORIGIN_MELEE,
    ORIGIN_RANGED,

example of primary and secondary: fire sword that deals physical damage (primary) and fire damage (secondary)

search for details in source code :p
origins are:
Lua:
    ORIGIN_NONE,
    ORIGIN_CONDITION,
    ORIGIN_SPELL,
    ORIGIN_MELEE,
    ORIGIN_RANGED,

example of primary and secondary: fire sword that deals physical damage (primary) and fire damage (secondary)

search for details in source code :p
 
Solution
origins are:
Lua:
    ORIGIN_NONE,
    ORIGIN_CONDITION,
    ORIGIN_SPELL,
    ORIGIN_MELEE,
    ORIGIN_RANGED,

example of primary and secondary: fire sword that deals physical damage (primary) and fire damage (secondary)

search for details in source code :p
enums.h

thanks.
 
Back
Top