Multiple Scripting Questions
Okay, so I've been making/fixing things left and right, but I've run into a couple issues that have ground me to a halt. Hopefully someone can help me out here.
1. Been working on the Multi-Headed template, and it adds 2 additional racial hit dice per additional head. This is the line handling that so far: field[tmHitDice].value += heads*2 It adds 2 hit dice, but I haven't figured out how to pull the hit die type from the creature's type (both for size of the hit die, and I suspect additional BAB, saves, and skills). This is the theoretical line of code I was using, but "Type" isn't a child of hero I suspect, nor will it provide the BAB, etc, information for the HD either: field[tmHDSides].value = hero.child[Type].field[tpHDSides].value 2. Also on Multi-headed, it increases CR based on number of heads, and while I have the variable working properly using this: herofield[tCR].value += cr It isn't calculating it as a CR modifier from the template, or altering the CR estimation panel accordingly. Since I don't think I can use a script to alter the fields for "CR by HD", I tried to alter the "Minimum CR" it X plus the previous CR, but it didn't actually work. Figured I'd ask if there was an easier way before delving into that further. 3. And finally, making the mythic abilities Mortal Herald and Divine Source display spell-like abilities, is there a Bootstrap Container Requirement Expression that I can use to check if a particular domain has been selected from the list? So, say, only if the "Air" domain has been chosen does it add the particular custom ability to provide those spell-like abilities. Thanks! Hopefully I included enough info, but happy to provide more if needed. |
Quote:
Quote:
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
An example: Code:
foreach pick in hero from Type where "thing.activated & !Helper.Augmenting" Quote:
field[FIELDNAME].arrayvalue[ROWNUMBER] Keep in mind that the first row of the array is Row 0, and the second Row 1, and so on. Quote:
|
There's an easier way to look up the number of sides the HD on the race is using, rather than figuring out what type is currently in use, since your goal here is to have the template in effect add more HD to the race, right?
Timing: After First/590 Code:
field[tmHDSides].value = hero.findchild[BaseRace].field[rHDSides].value |
Quote:
Quote:
EDIT: Okay, in debug mode I discovered that there's field[tmCRAdjust].value that doesn't have a field in the GUI of the editor, but it works like editing the 0th row of the array with slightly less text than editing the array. I apparently just wasn't doing the right thing to find it the first time, but just a random thing of note. Moral: this now works. Quote:
Basically "add Mortal Herald > select a diety from droplist > select domain from droplist > check each bootstrapped ability to see if it is enabled based on domain name selection" is my current thought. Quote:
EDIT: This now adds the proper HD type, but does not increase BAB, saves, feats, and skill points. I hope there's some way to enable this. Thanks for all the help on this! |
Still hoping for an assist so I can get this wrapped up. Thanks!
|
Quote:
But there may be a cleaner way to do this. If I understand correctly, you currently have two links of bootstraps, such that: Mortal Herald -- bootstrap --> Domain Specific Helper Ability -- bootstrap --> 9 SLA specific to that domain Perhaps it would be better to break that first link? I am assuming you're programming this in a configurable or some other thing which has several tables available for user selected abilities. In that case, you can have Mortal Herald set the candidate expression of one of the other tables based on what the user has picked (god and domain). If you set the table's candidate expression correctly, there should only be a single Domain Specific Helper Ability which is available to be added through the table, and there will be no need for the conditions on the SLA bootstrap conditions. |
Quote:
|
Quote:
I've been trying to stick with the original code for Mortal Herald, and just add to it, but it might be time to jump off that haha. Quote:
|
All times are GMT -8. The time now is 05:59 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.