I have seen a feat on some of the open source 3.5 forums (on other sites) that have homebrew content on them, that I want to put into my own user files for Hero Lab. I do not know who created this stuff, but here is the fluff and crunch:
^^ How do I code that? I am totally new and i need help! please.
Source:
http://alcyius.com/dndtools/feats/song-and-silence-a-guidebook-to-bards-and-rogues--48/pyro--2311/index.html
How would I code this?
MY ONLY impression thus far is to just copy some of the mechanics of the eval script for Weapon Specialization, and change it to somehow search for any weapons that do FIRE typed damage, and then add +1 to each instance for as long a duration as the feat allows.
This is the code i have copied from stock PF core so far, from Weapon Spec:
The feat was designed for 3.5 but I MAINLY want a Pathfinder version of it coded (i am only ever going to code for PF for the time being) into Hero Lab.
Please keep in mind that i am a TOTAL NEWB to Hero lab, and while i AM familiar with basic XML, and OTHER object oriented scripting languages, I feel like a total babe in the woods with Hero Lab development. Thanks.
Pyro [General]
You’re good at lighting objects and opponents on fire.
Benefit: If you set something or someone on fire by
any means (alchemist’s fire, for example), the flames do an extra 1 point of damage per die, and the Reflex save
DC to extinguish the flames increases by +5.
Normal: Fire generally does 1d6 points of damage. A
successful Reflex save (DC 15) extinguishes it.
^^ How do I code that? I am totally new and i need help! please.
Source:
http://alcyius.com/dndtools/feats/song-and-silence-a-guidebook-to-bards-and-rogues--48/pyro--2311/index.html
How would I code this?
MY ONLY impression thus far is to just copy some of the mechanics of the eval script for Weapon Specialization, and change it to somehow search for any weapons that do FIRE typed damage, and then add +1 to each instance for as long a duration as the feat allows.
This is the code i have copied from stock PF core so far, from Weapon Spec:
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
~ If we haven't chosen anything, get out now
doneif (field[usrChosen1].ischosen + tagis[Target.?] = 0)
if (tagcount[Hero.MartVersa] + hero.tagcount[Hero.MartMaster] <> 0) then
perform field[usrChosen1].chosen.pulltags[wFtrGroup.?]
foreach pick in hero from BaseWep
if (eachpick.tagmatch[wFtrGroup,wFtrGroup,initial] <> 0) then
perform eachpick.assign[Broadcast.WepSpec]
perform eachpick.pulltags[WepSpec.?]
endif
nexteach
perform hero.pushtags[WepSpec.?]
else
~ Assign the appropriate tag to all weapons that meet the criteria
var id as string
var name as string
call fTargetId
foreach pick in hero where "IsWeapon." & id
perform eachpick.assign[Broadcast.WepSpec]
nexteach
~ Set our 'short name'
field[shortname].text = "Spec: " & name
field[sbName].text = "Weapon Specialization (" & lowercase(name) & ")"
~ Forward the weapon specialization tag for the weapon to the hero
perform hero.assignstr["WepSpec." & id]
endif
~ Pull the IsWeapon tag if we choose quarterstaff so that we can detect
~ that in the pre-req for this feat.
if (field[usrChosen1].chosen.tagis[IsWeapon.wQtrstaff] <> 0) then
perform field[usrChosen1].chosen.pulltags[IsWeapon.?]
endif
The feat was designed for 3.5 but I MAINLY want a Pathfinder version of it coded (i am only ever going to code for PF for the time being) into Hero Lab.
Please keep in mind that i am a TOTAL NEWB to Hero lab, and while i AM familiar with basic XML, and OTHER object oriented scripting languages, I feel like a total babe in the woods with Hero Lab development. Thanks.