Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old December 3rd, 2018, 03:52 PM
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)
but I know my transitioning isn't right. How do I transition to the hero context so that all "Hot" or "Cold" tags are counted, and not just the ones in the current ability context?
Bob G is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 3rd, 2018, 04:16 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old December 5th, 2018, 07:36 PM
Quote:
Originally Posted by ShadowChemosh View Post
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.
Hi SC, is there a resource on the boards that can teach me about tables? Terra incognita for me.

Thanks!
Bob G is offline   #3 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old December 5th, 2018, 08:14 PM
Quote:
Originally Posted by ShadowChemosh View Post
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]
Hmm, tried it out but it's not limiting the choices of cold techniques to 2. Also giving me a syntax error of "Unspecified error parsing script on line 3".
Code:
~Limit specializations to two hot techniques.
    if (hero.tagcount[abCategory.Cold_tech]>=2) then
    assign tagis[Helper.SpcDisable]
    endif
So, where's my error?
Bob G is offline   #4 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 5th, 2018, 08:20 PM
Quote:
Originally Posted by Bob G View Post
Hmm, tried it out but it's not limiting the choices of cold techniques to 2. Also giving me a syntax error of "Unspecified error parsing script on line 3".
Code:
~Limit specializations to two hot techniques.
    if (hero.tagcount[abCategory.Cold_tech]>=2) then
    assign tagis[Helper.SpcDisable]
    endif
So, where's my error?
Assuming if this is exact copy/paste its the no spacing.

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
In addition the last line tagis is a "Check" for a tag and assign sets a tag. I assume you just want to PERFORM a "assign" of a tag.

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.
ShadowChemosh is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 5th, 2018, 08:21 PM
Quote:
Originally Posted by Bob G View Post
Hi SC, is there a resource on the boards that can teach me about tables? Terra incognita for me.

Thanks!
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.
ShadowChemosh is offline   #6 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old February 16th, 2020, 07:51 PM
Revisiting this topic more than a year later, since I still can't get it right...

Quote:
Originally Posted by ShadowChemosh View Post
Assuming if this is exact copy/paste its the no spacing.

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
In addition the last line tagis is a "Check" for a tag and assign sets a tag. I assume you just want to PERFORM a "assign" of a tag.
Once the user has selected 2 hot techniques and 2 cold techniques, any other abilities that fall outside of the user's selections should be disabled:
Code:
if (hero.tagcount[abCategory.Hot_tech] >= 2) then
perform assign[Helper.SpcDisable]
    endif
What is happening is that the choice of hot/cold techniques stops after 2 are selected, but the associated abilities granted by the unselected techniques are still able to be selected.

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/
Bob G is offline   #7 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:53 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.