- Joined
- Dec 26, 2013
- Messages
- 2,022
- Solutions
- 13
- Reaction score
- 1,337
- Location
- USA
- GitHub
- Codinablack
Greetings again otland. I am having some problems with onHealthChange and I was trying to see if anyone knew why it wasn't calling the creatures storage value...
when I use this script:
The storage value is in my database, saved for the player I am trying it with. The onHealthChange is registered correctly in creaturescripts.xml.
Any Ideas?
when I use this script:
Code:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType)
print(creature:getStorageValue(40107))
return primaryDamage, primaryType, -secondaryDamage, secondaryType
end
The storage value is in my database, saved for the player I am trying it with. The onHealthChange is registered correctly in creaturescripts.xml.
Any Ideas?