Fantasy Grounds Prep Less. Play More.
Due to posting limits, I have had to split this session into three posts. This is part 2 of 3. (continued from part 1) Now to decipher the statement in line 535 (FG v3.1.7). The statement starts with “DB.setValue”. From previous work for this blog series I know DB refers to the DB Package and setValue( ) is a function in that Package described in the XML and Scripting Reference. From the document I see that this statement writes data using the parameters ...
Due to posting limits, I have had to split this session into three posts. This is part 1 of 3. It takes only a single line of code to change an effect’s default visibility behavior in the Combat Tracker. To discover and implement it requires a little work as outlined below. Using Notepad++ I searched for the string displayed on the effect visibility button, VSBL, in the 5E ruleset subfolder, of the Fantasy Grounds data folder. No luck, the search failed to ...
Now to add some functionality to the Effect Visibility Extension. I’ll start by modifying the default behavior of who sees an effect when it is initially applied. For the 5E ruleset, when an effect is applied, everyone sees it. I want to change it to GM only. The GM then has the option of changing who sees the effect and when. The astute reader will immediately recognize that in an earlier blog I had mentioned I was abandoning this idea because FG v3.2.0 will make it moot. ...
This time I’ll jump right in, create an extension, then slowly add more and more functionality to it. I’ll explain, as I go along, what I am doing, and why. Plus I’ll explore solutions to problems as they arise. It is quite a bit to bite off so this will assuredly require multiple blog posts. First, to clean things up: in previous blogs I edited some of the ruleset files. I was exploring what the consequences were when certain changes are made to the ruleset files. I want to ...
Updated June 1st, 2016 at 09:20 by Minty23185Fresh
Over the next few posts I plan on explaining how I wrote my first FG extension. Since starting this blog I have tried to expose readers, particularly readers with little to no software development skills, to background information I felt would help them climb the FG extension learning curve more quickly. For a budding programmer there is a lot to learn, far more than can be conveyed in a blog. Supplementary reading is a must. Mostly, I hope to pique the critical thinking process, ...