Sunken wrote:
I need a way to negate MOD_EXP_RECEIVED for the duration of a script, I've done this in two ways and neither worked because I could not get the data of MOD_EXP_RECEIVED as an integer or real.
tl;dr: How to get MOD_EXP_RECEIVED converted into an integer? Trying to use
local integer xp = tower.MOD_EXP_RECEIVED
Doesn't work and I can't find any towers that reference their own modded stats.
Alternatively how would I add experience that isn't modified by the EXP modifier?
MOD_EXP_RECEIVED - just an integer constant used to
identify the exp received
modifier.
Each modifier has a "getProp" method in the Unit struct.
The constants (MOD_EXP_RECEIVED) are used whenever you're adding a modifier to a tower either permanently or by a buff / aura. The the function is just .addModifier(integer modId), so you use the integer constant which is easy to read, nothing more.
how would I add experience that isn't modified by the EXP modifier - tower.addExp ( expamont / tower.getProp_ExpReceived())