Thread: A Question of Templates
-
December 20th, 2012, 18:28 #1
A Question of Templates
I posted this in the Savage Worlds forum, but the topic also has bearing on my 3.5 campaigns.
I was wondering if there was a way to "drag and drop" a "template" onto a character or NPC. This would alter both Attributes and Skills/Feats, as well as add Hindrances or Benefits, Alignment Changes, etc. on a character. An example would be, say, becoming a Vampire, in which your core stats are altered (increased STR, DEX, etc), various Vampiric abilities, and weaknesses.
The concept is drawn from the aptly named Book of Templates put out by Goodman games. There, they describe how to adjust a creature or character block in this manner. It was also used in DragonMech. Does anyone know if this feature is available in FG?Aliens.... Go fig?
-
December 20th, 2012, 18:38 #2
I've thought about doing this before. But, from what is actually required to implement the template rebuild rules there would have to be a lot of work to do this properly - especially for more advanced templates.
It could be done though - an extension would need to be written that would allow templates to be entered (and stored for future use) and then apply the changes in the template to an NPC when the template was added.
The big work would be templates that do a lot of changes that need comparisons of what is there now and what they change to. Take the young template as an example: https://paizo.com/pathfinderRPG/prd/...vancement.html
The creature's size reduces by 1 step. This affects a lot of things - to hit rolls, AC, weapon damage dice, etc.. This would all have to be programmed into the template extension for all sizes of creatures.
At first I thought it would be a fairly straightforward extension, but on further investigation realised it would be more work that just adding a few modifiers and abilities to an NPC statblock.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
December 20th, 2012, 18:53 #3
True, however a fair amount of the recalculations are either provided for by FG or could be worked out once (however laborious this may be) and then applied to a PC/NPC/Creature. The Book of Templates uses tables to provide the answers for most of the very material and complications you describe.
I just wanted to know if it *could* be done within FG. (or with a "template extension").Aliens.... Go fig?
-
December 20th, 2012, 18:57 #4Originally Posted by S FergusonPrivate Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
December 20th, 2012, 19:24 #5
Oh good god no. I could design the algorithms and functionality but my XML and Lua skills are sadly lacking.
If someone were to help I could give it a shot. Or at least point me in the right direction to Extension building resources, Lua shouldn't be hard to pick up for me but XML.. there's my problem. Know of any good references?Aliens.... Go fig?
-
December 20th, 2012, 20:01 #6
I was just thinking this would be quite a good FG extension learning project. Start off small and then expand on it if wanted.
Perhaps try just adding the advanced simple template to an NPC. The rebuild rules for this are: Rebuild Rules: AC increase natural armor by +2; Ability Scores +4 to all ability scores (except Int scores of 2 or less).
Suggested steps would be:
- Add an "Apply Tempate" button to the NPC window. Modify npc_top.xml in \campaign or the underlying npc_main.xml file. These contain the structure definition of the NPC window.
- Attach some code to this button (in a new LUA script) that applies the modifiers to relevant areas.
This would give an introduction to FG XML (it's really not that bad), how to call some LUA code from the XML when the button is pressed, and how to access the DB information of the NPC and modify it based on the template being applied. This will also require a bit of string searching and manipulation to find the various bonuses (to hit, damage, skills, AC, etc.) and add the +2 for the improved abilities.
A few steps to do before getting started:- Get the 3.5E.pak file from the Fantasy Grounds installation directory (usually Program Files\Fantasy Grounds II). Rename to .zip and extract to the <FG App Data Directory>\rulesets directory - but give it a new directory such as 3.5E_DEV. This will allow you to create a new campaign, with the ruleset name 3.5E_DEV and so you can modify the files in this ruleset and test, without impacting the normal 3.5E rules. We can work on migrating any changes you make into an extension later.
- Download Notepad++ (free) and add the XML plugin: https://notepad-plus-plus.org/ You can use this for modifying both XML and LUA files - and check the XML syntax with the XML plugin. Also, "Find in Files" is your friend for working out where things are in the ruleset.
- Have a look at the Ruleset Modification Guide - available under the "Library" link at the top of this page.
- Check some of the XML resources mentioned in the FG library: https://www.fantasygrounds.com/modgu...troduction.xcp
- Check the LUA resources too: https://www.fantasygrounds.com/modguide/scripting.xcp
Then, you should be ready to give it a go...
First step would be to add a button to the NPC sheet. The buttoncontrol is detailed in the Ruleset Reference in the Library: https://www.fantasygrounds.com/refdoc/buttoncontrol.xcp There are also a number of button templates defined in the \common\template_buttons.xml file. To see an example in action - look in \charsheet\charsheet_toplevel.xml for the <button_charmini> section - this gives the location of the button "button_charmini" that is defined in charsheet\template_charsheet_general.xml.
Decide where you'd like to add the "Apply Template" button to the NPC sheet and add the button to npc_top.xml in \campaign or the underlying npc_main.xml file. Check the XML syntax in Notepad++ and save the file. Create a new campaign using your 3.5E_DEV ruleset (where you have just made the change to). Load the campaign, create a new NPC and you should see your new button...
Next step is to add code behind the button...
Hopefully the above is not too confusing - please ask questions on anything.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
December 20th, 2012, 20:34 #7
Would this not be possible also through effects (possibly multiple would be needed)?
"I am a Canadian, free to speak without fear, free to worship in my own way, free to stand for what I think right, free to oppose what I believe wrong, or free to choose those who shall govern my country. This heritage of freedom I pledge to uphold for myself and all mankind."
- John Diefenbaker
RIP Canada, February 21, 2022
-
December 20th, 2012, 20:36 #8
O.K. I'm willing to give it a go. But I was thinking of having (possibly) a button associated with a "library" of templates that could be "dropped" on the "Base" PC/NPC/Creature. Each would be handled differently, of course.
Would this change the coding style any? .
Luckily, I don't have to worry about Notepad++, I have a more powerful editor.Aliens.... Go fig?
-
December 20th, 2012, 20:56 #9Originally Posted by JohnD
Also, effects can only be applied to creatures in the Combat Tracker (CT), so you can't prepare in advance an "Advanced Kobold" or whatever - you'd have to remember to apply the effect to the entries in the CT when you initiate the encounter.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
December 20th, 2012, 20:56 #10Originally Posted by JohnD
It's a shame you can't change size with an effect though, it would make dealing with the Enlarge Person spell a lot easier. But dealing with weapon damage changes could be a real headache.
~P
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks