Problem reading elemental resist and damage members.

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Problem reading elemental resist and damage members.

Post 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 ;)
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Problem reading elemental resist and damage members.

Post by Yukiko »

Tested on the previous Core release of 2017-09-11 and they did not work on that release either.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Problem reading elemental resist and damage members.

Post by Yukiko »

This was a Core bug and will be fixed in the next build.
Post Reply