-
December 22nd, 2023, 02:20 #21
- Join Date
- Mar 2016
- Posts
- 228
Sure. Here is the code I took from Ikael's extension to try to get to work:
Code:<root version="3.0"> <properties> <name>Realms of Cthulhu</name> <version>1.7</version> <author>Aki Heikkinen (Ikael)</author> <description>Realms of Cthulhu Derived Stats and Madness</description> <ruleset> <name>SavageWorlds</name> </ruleset> <ruleset> <name>SWD</name> </ruleset> <loadorder>15</loadorder> </properties> <announcement text="Realms of Cthulhu v1.7" font="emotefont" icon="wildcard" /> <base> <script name="RealmsOfCthulhuLauncher" file="launcher.lua"/> <icon name="indicator_penalty_madness" file="indicator_penalty_madness.png" /> <template name="derivedstat_sanity"> <derbase> <setup> <attribute> <half>spirit</half> </attribute> <modifier>2</modifier> <node> <!--<modifier>corruption</modifier>--> <subtract>5</subtract> </node> <!--<subtraction>corruption</subtraction>--> </setup> </derbase> </template> <template name="ct_derivedstats"> <ct_derivedstats_base> <entryColumns>5</entryColumns> </ct_derivedstats_base> </template> <template name="ct_damagetypetitles"> <ct_damagetypetitles_base> <entryWidth>32</entryWidth> </ct_damagetypetitles_base> </template> <template name="ct_client_damagetypetitles"> <ct_damagetypetitles_base> <entryWidth>32</entryWidth> </ct_damagetypetitles_base> </template> </base> </root>
-
December 22nd, 2023, 06:23 #22
- Join Date
- Sep 2020
- Location
- Ballston Lake, NY
- Posts
- 598
According to post 2 & 3, you can reference a derived stat.
To subtract, multiple by -1 then add that. So try
Code:<multiplier>-1</multiplier>
Code:<modifier>derivedstat_corruption</modifier>
If the node doesn't work with a reference to a value, try adding type="number" to modifier like this
Code:<modifier type="number">derivedstat_corruption</modifier>
Last edited by Mike Serfass; December 22nd, 2023 at 06:29.
-
December 22nd, 2023, 16:54 #23
- Join Date
- Mar 2016
- Posts
- 228
Thanks for the help and the great extensions you make.
The code snippets did not work and it appears if you put a "-" in front of the number/variable it will just ignore it. So it seems maybe you can't subtract.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks