PDA

View Full Version : Is there an Extension that adds a level of Fatigue?



Flynn
June 12th, 2020, 18:01
Good Morning, All:

At least two official settings, Savage Suzerain and Interface Zero 3.0, implement a third level of Fatigue, to match the three Wound levels. I was wondering if someone had created an extension that simply implemented this feature. If not, how would one create such an extension?

Thanks In Advance,
Flynn

Dr0W
June 13th, 2020, 03:15
Interface Zero 2.0 does that. Interface Zero 3.0 will do that too, when it's out on FG.

So yea, it can be done but the IZ 2.0 extension is encrypted so I have no idea how to do that quickly, and I'm too lazy to look at the code.

Best option is to wait for IZ 3.0 to release on FG, but while you wait you can simply reduce your Fatigue up to -3 in the CT. The only difference being that you can't click it in your character sheet, but it works exactly as it should.

Ikael
June 13th, 2020, 08:33
Here is sample how to do it via extension,


<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.0">
<properties>
<name>Fatigue Threshold</name>
<version>1.0</version>
<author>Aki Heikkinen (Ikael)</author>
<description>Increase Fatigue Threshold</description>
<ruleset>
<name>SavageWorlds</name>
<name>SWD</name>
</ruleset>
</properties>
<announcement text="Fatigue Threshold v1.0" font="emotefont" icon="wildcard" />
<base>
<script name="FatigueThreshold">
function onInit()
local rFatigue = DamageTypeManager.getDamageType("main.fatigue")
rFatigue.slots = 3
DamageTypeManager.updateDamageType("main.fatigue", rFatigue)
end
</script>
</base>
</root>


The actual important code is in FatigueThreshold script.

Flynn
June 13th, 2020, 18:18
Would this code add an extra radio button to click on the character sheet, too?

Ikael
June 13th, 2020, 18:35
Try it out and see (yes it does)

Flynn
June 15th, 2020, 01:17
Try it out and see (yes it does)

Works like a charm. Thank you!