Senior Member
Join Date: Jul 2014
Posts: 412
|
I am attempting to script this in a feat:
Quote:
Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
|
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Use a foreach to count the number of copies of the feat.
|
#2 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Would someone please write up that code and post it here? I am not sure how to use the foreach in that way specifically. Thanks for the suggestion otherwise Aaron.
Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Like this: Code:
~ Improve our maneuverability based on how many copies of this feat we have. field[abValue].value += hero.tagcount[Ability.XXXXXXXX] if (field[abValue].value = 1) then perform hero.childfound[xFly].tagreplace[Maneuver.Clumsy,Maneuver.Poor] elseif (field[abValue].value = 2) then perform hero.childfound[xFly].tagreplace[Maneuver.Poor,Maneuver.Average] elseif (field[abValue].value = 3) then perform hero.childfound[xFly].tagreplace[Maneuver.Average,Maneuver.Good] elseif (field[abValue].value >= 4) then perform hero.childfound[xFly].tagreplace[Maneuver.Good,Maneuver.Perfect] endif 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. |
|
#4 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
Quote:
Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
|
#5 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
While I did have some success with the tagcount, I found issue with it at the timings I needed to have it work. So I ended up using the foreach to simulate the effect of the tagcount. I had to do it in the First 23xx range, but the later scripts used the tagcount flawlessly. Just updating my findings.
Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Looking at your script again I would also not use tagreplace[] as its not really needed. xFly is designed to use the BEST maneuverability rating regardless of how many tags are on it.
Just need this: Code:
~ Improve our maneuverability based on how many copies of this feat we have. field[abValue].value += hero.tagcount[Ability.XXXXXXXX] if (field[abValue].value = 1) then perform hero.childfound[xFly].assign[Maneuver.Poor] elseif (field[abValue].value = 2) then perform hero.childfound[xFly].assign[Maneuver.Average] elseif (field[abValue].value = 3) then perform hero.childfound[xFly].assign[Maneuver.Good] elseif (field[abValue].value >= 4) then perform hero.childfound[xFly].assign[Maneuver.Perfect] endif 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 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
The feat says this:
{b}Benefit{/b}: Your fly speed increases by 10 feet and your maneuverability by one step. This feat can be taken multiple times. {b}Special{/b}: This feat can be taken more than once. If you have this feat more than once, you gain run as a bonus feat, but can only apply it to flight unless you buy it normally. The reason for the early timing is for the bootstrap condition which I must contend with. So you suggest just to change it to assign instead of replace since my timing comes before it's own correct? Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Quote:
Code:
~ Improve our maneuverability based on how many copies of this feat we have. field[abValue].value += hero.tagcount[Ability.XXXXXXXX] ~ Give fly speed of XXft based on the abValue2 setup on feat #applybonus[abValue,hero.child[xFly],field[abValue2].value] if (field[abValue].value = 1) then perform hero.childfound[xFly].assign[Maneuver.Poor] elseif (field[abValue].value = 2) then perform hero.childfound[xFly].assign[Maneuver.Average] elseif (field[abValue].value = 3) then perform hero.childfound[xFly].assign[Maneuver.Good] elseif (field[abValue].value >= 4) then perform hero.childfound[xFly].assign[Maneuver.Perfect] endif 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. |
||
#10 |
|
|