PDA

View Full Version : Extension Problem



GunbunnyFuFu
September 10th, 2019, 10:32
I posted this to the House of Healing forum over a week ago, but with no responses I was advised to post my issue here:

I'm getting this error when opening NPCs with the Pulse derived stat (from Suzerain/Savage Mojo):

Script Error: [string "common/scripts/template_derivedstats.lua"]:30: attempt to perform arithmetic on a string value

The net effect of this script error is that when creating NPCs, they have no derived stats at all (toughness, parry, nor pace).

Thoughts on what I can do to fix this?

Thanks,

GBFF

GunbunnyFuFu
September 10th, 2019, 11:46
OK...was able to get the derived stat Pulse to show up on NPCs by using the following:

<root>
<template name="derivedstat_pulse">
<derbase>
<setup>
<modifier>10</modifier>
</setup>
</derbase>
</template>
</root>

This makes the Pulse stat show up on NPCs.

However, I get the following error when opening PCs

Script Error: [string "common/scripts/template_derivedstats.lua"]:202: attempt to index local 'ctrl' (a nil value)

Pulse should start with a base of 10, and add 5 per rank after that..

Thanks,

GBFF

GunbunnyFuFu
September 17th, 2019, 17:58
Bump.

Ikael
September 17th, 2019, 22:32
I haven't checked the situation myself but according to your description I believe the issue is with NPC FG stat blocks. There the pulse is defined as string data type although it should be number. Such situation cannot be fixed with extension, module stat blocks should be fixed instead. I can take more detailed look on this but will need to find out who made the original conversion.

GunbunnyFuFu
September 18th, 2019, 15:43
I converted the 2nd edition of Suzerain.

Looking at the XML, I see the following:

<pulse type="number">20</pulse>

I don't see any instances where Pulse is listed with type="string"