Thread: 5E Effects examples
-
July 27th, 2018, 12:23 #131
-
July 27th, 2018, 12:26 #132
yeah that works...
the script in record_char.xml would look like this:
Code:<script> function onDoubleClick(x, y) if getValue() > 0 then local nodeWin = window.getDatabaseNode(); Debug.console("nodeWin: ", nodeWin); local rActor = ActorManager.getActor("pc", window.getDatabaseNode()); Debug.console("rActor: ", rActor); local sHeroDiceType = nodeWin.getChild("herodice").getValue(); Debug.console("sHeroDiceType: ", sHeroDiceType); local sHeroName = nodeWin.getChild("pc_label_hero").getValue(); Debug.console("sHeroName: ", sHeroName); local msg = {font = "msgfont", icon = "heropoints"}; msg.text = rActor.sName .. " is using " .. sHeroName; Comm.throwDice( "dice", {sHeroDiceType}, 0, sHeroName .. " bonus" ); Comm.deliverChatMessage(msg); ModifierStack.addSlot("Hero Point", 10); setValue(getValue()-1); end return true; end </script>
-
July 27th, 2018, 13:37 #133
- Join Date
- Dec 2015
- Posts
- 17
Thank you giving me an answer so quickly master OB1 of Fantasy Grounds, but it is so far above my paygrade it makes my ears bleed. (No that is not the droids i am looking for) So basically I use notepad++ to open that xml file, add the line in purple exactly as typed and it works its magic. I had thought I could add a power (5e) to the players sheet and add an effect to do this task. I actually havent used the hero point extension per se. I will do this when I get back to my computer. Thank you damned, this is the second time you have rescued me.
Ps: Immortal Supreme Deity’s must not require much sleep. (Must code in dreams)
-
July 28th, 2018, 00:11 #134
Locate the Hero Points for 5e extension.
It is actually a ZIP file.
Unzip it into the Fantasy Frounds\extensions folder in its own subfolder like \HeroPoints5e
then you will find that file in the \campaign folder
Edit with Notepad++ or similar
Close FG and Open - when selecting your Campaign make sure you activate the Hero Points for 5e extension.
-
July 28th, 2018, 08:49 #135
There isn't a way to use Hero points without the extension since hero points are not built into the ruleset. You could use preparation mode to control the number of points and for your particular requirement create an effect of ATK: 10; DMG: 10; CHECK:10; SAVE: 10 and set it to expire on next roll.
If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php
-
July 28th, 2018, 09:26 #136
- Join Date
- Dec 2015
- Posts
- 17
Damned, your awesome instructions worked perfectly (15 minutes to completion). I really appreciate the assistance. I would not have known how to do this without your help. Thanks from Old-Dm (approximately 44 years of continuous GM experience (chainmail (74-75), 1e, 2e, 3e, 3.5 and pathfinder,4e (not long) and changed to 5e only because of FG. If I had eucalyptus leaves I would give you some.
ps: I can create effects myself (slowly), however buying Rob Twohy's coding mods from DM Guild was a great idea and a huge time saver. (if that helps anyone else)
.
-
July 28th, 2018, 17:57 #137
- Join Date
- Dec 2015
- Posts
- 17
Zacchaeus, I used damned’s method of modifying the Hero points for 5e extension and it worked great. I am going to try this as well ( maybe my players will find an amulet of heroic measure 3x per day or a book wth a new spell: Empowerment.) Thank you for the response, I am sure my players will appreciate new items found with that effect. Every time I read the forums it gives me ideas for effects for new things and better ways to automate it. The answers ( even older ones) also led me To port forwarding on my router and finally to Hamachi (works great).
Hail Zacchaeus, Hail Damned (you have convinced me that you are geniuses) I suppose I am in the market to buy that big bridge you have for sale in the city of Neverwinter ... or was it Waterdeep?
-
August 1st, 2018, 10:15 #138
- Join Date
- Dec 2015
- Posts
- 17
Okay I have set up a power on character sheet for each player (using Cantrips) called Cantrips Used. I am using the auto track power ext/mod. I want to set up effects to add 25 experience points each time the effect button is used (it actually counts down) and I get text on chat log saying (XP;25 or Experience; 25 or XP; add 25 etc. maybe 15 different ones) but the actual XP on sheet never changes. Obviously I have tried using different and many wrong syntax for the effect. What syntax do I need to use, for them to hit an effect button, to automatically add 25 experience points to their character sheet. Is this even possible? One of the guys we play with (maybe several) have issues with adding the right number of XP used each day from cantrips cast. Thanks in advance.
-
August 1st, 2018, 10:35 #139
There is no effect which you can create to add experience points. XP is added via the party sheet or directly edited in the Party sheet or in the character sheet.
If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php
-
August 1st, 2018, 11:00 #140
- Join Date
- Dec 2015
- Posts
- 17
Thanks again for your help. (saved alot of frustration trying obviously useless syntax.
I watched your you-tube videos on creating backgrounds, classes and races. Great video's! Very helpful, but which are you Edinburgh or Glasgow? (Ehh.... about that drunkeness battle table... you must hang out with dwarves... right.)
ps I did use your effects for hero points effects syntax to create a ring and an amulet of Heroic Action, just waiting to be found by the Pc's in our next adventure. I'll make sure they know it was thanks to the Immortal Diety Zacchaeus. Who knows maybe they will build a shrine.
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks