-
April 18th, 2016, 21:21 #1
Looking for a new derived trait sample
Hi,
Can you share with me a very simple extension for adding a derived trait. My attempts are not getting results!!!
Thanks in advance,
Gon
-
April 18th, 2016, 21:34 #2
This might be helpful
https://www.fantasygrounds.com/forum...l=1#post152740Ultimate License Holder - My games are free to play
Timezone: GMT
-
April 18th, 2016, 21:45 #3
-
April 18th, 2016, 21:49 #4
Oh, I think you just need to scroll up a bit
Ultimate License Holder - My games are free to play
Timezone: GMT
-
April 18th, 2016, 23:39 #5
- Join Date
- Feb 2009
- Location
- USA Eastern Time Zone (GMT -5/-4)
- Posts
- 2,479
- Blog Entries
- 1
This too from Ikael should show you how to code a new derived stat: https://www.fantasygrounds.com/forum...age-Worlds-API
Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter
-
April 19th, 2016, 06:06 #6
This is the info I tried to use before asking for help. I created an extension with a single file inside (extension.xml) And this is the content:
Code:?xml version="1.0" encoding="iso-8859-1"? root version="3.0" properties name Cordura Addon /name version 1.0 /version author Gon /author description Atributo derivado para Weird Wars Rome /description ruleset name SavageWorlds /name /ruleset /properties base script name="Cordura" function onInit() DerivedStatManager.registerDerivedStat(1, "Cordura", "Cordura", "cordura", "derivedstat_cordura", {charsheet=true, minisheet=true, npc=true, ct=true, ct_client=true}) end /script /base /root
-
April 19th, 2016, 23:02 #7"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
April 21st, 2016, 07:34 #8
-
April 21st, 2016, 14:26 #9
One significant error I noticed from your code is that you are invoking DerivedStatManager.registerDerivedStat and passing number as the first parameter. You should pass number as the first parameter only if you use DerviedStatManager.registerDerivedStatToIndex function. The first number parameter in the function is the order number of your new derived stat. You can change your code to:
DerivedStatManager.registerDerivedStat("Cordura", "Cordura", "cordura", "derivedstat_cordura", {charsheet=true, minisheet=true, npc=true, ct=true, ct_client=true}"Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness
Post your SavageWorlds ruleset feature requests and issue reports here!
-
April 21st, 2016, 19:18 #10
Thanks Ikael... Taking the info from your two replies I've get it... Thanks so much.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks