• 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!

Lua Get Damage Inflicted

Karteler

New Member
Joined
Sep 2, 2010
Messages
1
Reaction score
0
Is there anyway to get the damage inflicted to a monster with a script? For example, a life drain spell where it gets the damage done and 1/4 of that damage is converted to the caster's HP.
 
You could either make a spell that calculates the damage beforehand, inflicts the damage and then heals yourself for a portion of that amount (this probably wouldnt take into count resists, blocks ect)... or you could use a messier way with onStatsChange to get the amount of damage your enemy takes, but you might have a bit of trouble determining if he casted life drain or not.
 
Back
Top