Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

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

Old December 3rd, 2018, 04: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,524

Old December 3rd, 2018, 05: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: 104

Old December 5th, 2018, 08: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: 104

Old December 5th, 2018, 09: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,524

Old December 5th, 2018, 09: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,524

Old December 5th, 2018, 09: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
Reply

Thread Tools
Display Modes

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 04:59 AM.


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