Member
Join Date: Jul 2014
Posts: 46
|
Hi,
Black powder has been discovered in our 3.5 campaign, so we are adding Musketeer class based on a lightly-modified Gunslinger from Pathfinder. My coding ability is limited - if I can find an ability that is similar to what I'm trying to code I can generally make it work. Can you suggest any 3.5 abilities that approximate gunslinger abilities that I could refer to in order to copy and amend? - Gun Training: Dex bonus to damage on specific weapons - Grit: Adding a Tracked Resource based on Wis bonus (I currently hard-coded it for the 1 character in play) Is there a way to access Pathfinder files to cut and paste code without buying the license? With best regards, Greylin PS I was able to get the Nimble ability (+1 dodge bonus to AC in light / no armour) by adapting the Dervish ability Last edited by Greylin; June 18th, 2017 at 09:42 AM. |
#1 |
Senior Member
Join Date: Mar 2013
Location: Melbourne, Australia
Posts: 1,099
|
Access - Yes. Load up Pathfinder and start the editor. You can look at most abilities to see how they were put together in PF. Eg: Grit is a Class Special. You can try and copy the scripts, etc across to d20, but the systems aren't the same, so don't be surprised if you get a bunch of errors.
|
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Actually Gunslinger is from Ultimate Combat so to even see the data in the editor you would need to purchase the UC license.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#3 |
Senior Member
Join Date: Feb 2013
Posts: 357
|
For dex to damage, look at the Shadow Blade feat from Time of Battle. For a thing with Wis charges, use this
Code:
timing=post attributes field[hTotal].value = #attrmod[aWIS] |
#4 |
Member
Join Date: Jul 2014
Posts: 46
|
Quote:
Grit is sorted - added as a counter that calculates Wis bonus. I set up Gun Training as Class Specials (5th, 9th, 13th, 17th) that give a free Show-only Feat that applies the Dex bonus to damage: Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) ~ Set focus from the drop down or the Target.? tag var id as string var name as string call fTargetId ~ We can't do anything without a unique id doneif (empty(id) <> 0) ~ Assign the appropriate tag to all weapons that meet the criteria foreach pick in hero where "IsWeapon." & id eachpick.field[wDamBonus].value += hero.child[aDEX].field[aModBonus].value nexteach Any guidance is welcome! With best regards, John / Greylin |
|
#5 |
Senior Member
Join Date: Feb 2013
Posts: 357
|
The Shadow Blade feat is built with "feat" language that only affects a specific weapon (hence the dropdown), so using the lines directly won't translate properly.
I'd go ahead and change the lines to this: Code:
doneif (tagis[Helper.ShowSpec] = 0) foreach pick in hero from BaseWep where "thingid.wGun1 | thingid.wGun2 | ..." eachpick.field[wDamBonus].value += #attrmod[aDEX] nexteach |
#6 |
Member
Join Date: Jul 2014
Posts: 46
|
I want to maintain the drop-down to select the specific weapon (e.g., Pistol, Dragon Pistol, Coat Pistol, etc.). I can enable that in the Dropdown Selection Setup in the class special. How would I capture that so the weapon IDs are not hard-coded in the ability?
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Then once created and added to all the weapons. Your custom expression for the dropdown can be: Code:
component.BaseWep & wGroup.GrGuns Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#8 |
Member
Join Date: Jul 2014
Posts: 46
|
Hi,
Our gunslinger reach 5th level so now gets this feat. The feat appeared to work fine when I tested it 2 years ago but in hindsight I never tested re-loading a character with the ability. Sure enough, when I save and re-load the character I get the error, "Pick fMskGunTra has been orphaned as it can no longer be added to the portfolio" (fMskGunTra is my ShowOnly Feat which is called by the Class Special at 5, 9, 13, 17 levels). I get the error four times (once for each time the Class Special calls the Feat at 5, 9, 13, 17 levels). In the character sheet, the feat still appears under the class tab (with a pull-down weapon list which keeps its state) and also under the Feat tab - also with a pull-down weapon list but this does NOT keep its state. Note the character otherwise appears to work, and as long as I re-select the weapon in the Feat pull-down list each time I re-load it still calculates correctly - so it's not a game-breaking error. But it's annoying! Can you give me any tips of anything to look at? |
#9 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
|
|
#10 |
|
|