Page 1 of 1

Problem reading elemental resist and damage members.

Posted: Mon Nov 13, 2017 4:34 pm
by Yukiko
I don't seem to be able to read the resist_ property from an NPC.
I set it in the npcdesc.cdf file with:

Code: Select all

EnergyResist  80
DamageFire   40
And I try to read it back and report using:

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;
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 ;)

Re: Problem reading elemental resist and damage members.

Posted: Mon Nov 13, 2017 7:59 pm
by Yukiko
Tested on the previous Core release of 2017-09-11 and they did not work on that release either.

Re: Problem reading elemental resist and damage members.

Posted: Wed Nov 15, 2017 9:06 am
by Yukiko
This was a Core bug and will be fixed in the next build.