Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Working on a custom ability that divides the possible abilities gained into a number of different categories. All abilities are classified as "Assassin Technique" and have the abCategory.Ass_tech (don't laugh). All abilities are then categorized as either Hot techniques (tag abCategory.Hot_tech) or Cold techniques (abCategory.Cold_tech). Then, finally, each ability is assigned one of eight different technique categories (e.g. Infiltration, Intuition, Poison, etc.) Each technique category has its own abCategory tag.
At first level, the user chooses four technique categories, called Specializations. This is my primary custom ability. The user must choose two "Hot" techniques and two "Cold" techniques. I want to script this so that once two "Hot" or "Cold" techniques are chosen, the remaining unchosen ones are disabled. I was thinking about something like this, Code:
doneif(hero.parent[cAssPoison].tagcount[abCategory.Cold_tech]>=2) |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
I would not have all the Hot and Cold Things chosen on the same table. I would have them on two different Tables. This way if a future thing needs to give a bonus Hot you can just increase the count for that table.
You already have abCategory.? tags to use to easily separate out the Things on to Primary and Secondary tables. In regards to your question abCategory.? tags are pushed directly to the Hero. This means your transition is simply the hero itself. Code:
hero.tagcount[abCategory.Cold_tech] 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. |
#2 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
Thanks! |
|
#3 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
Code:
~Limit specializations to two hot techniques. if (hero.tagcount[abCategory.Cold_tech]>=2) then assign tagis[Helper.SpcDisable] endif |
|
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Need a space after IF and before (. Also need a space after ] and before > and a space between = and 2. Code:
~Limit specializations to two hot techniques. ifspace(hero.tagcount[abCategory.Cold_tech]space>=space2) then perform assign[Helper.SpcDisable] 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. |
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Nothing I can think of... Let me see if I can check the editor and give some pointers as I think the editor does not call them tables actually...
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. |
#6 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Revisiting this topic more than a year later, since I still can't get it right...
Quote:
Code:
if (hero.tagcount[abCategory.Hot_tech] >= 2) then perform assign[Helper.SpcDisable] endif If I want all custom abilities for a certain abCategory to be disabled, how do I code this, and on what pick should I place the script? Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9% Message me for a list of completed projects. Visit my blog! https://gauntletsofblogrepower.blogspot.com/ |
|
#7 |
|
|