Problem reading elemental resist and damage members.
Posted: Mon Nov 13, 2017 4:34 pm
I don't seem to be able to read the resist_ property from an NPC.
I set it in the npcdesc.cdf file with:And I try to read it back and report using:
but it reports as 0 for both properties.
Am I doing it wrong?
I am using the latest Core build just in case anyone is wondering
I set it in the npcdesc.cdf file with:
Code: Select all
EnergyResist 80
DamageFire 40
Code: Select all
var Thing := Target(who);
SendSysMessage(who, "Energy resistance is " + CStr(thing.resist_energy), 1, 88);
SendSysMessage(who, "Fire damage is " + CStr(thing.damage_fire), 1, 88);
return;
Am I doing it wrong?
I am using the latest Core build just in case anyone is wondering