DICE PACKS BUNDLE
Page 3 of 3 First 123
  1. #21
    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>
    You can see all the things I tried to do. There weren't any subtraction tags mentioned in Ikael's post, but I gave it a shot. The modifier tag only ever seems to add. I am trying to take half of spirt add 2 and then subtract the corruption derived stat. Thanks in advance for any help.

  2. #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>
    then
    Code:
    <modifier>derivedstat_corruption</modifier>
    assuming that it can take a reference to a number in addition to a hard-coded number.
    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.

  3. #23
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in