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
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old November 20th, 2017, 08:07 AM
Quote:
Originally Posted by ErinRigh View Post
does this seem right?

Code:
foreach pick in hero where "thingid.shBuckler"
     if eachpick.field[gUserEquip].value <> 1
        perform assign[Helper.SpcDisable]
        done
     endif
 nexteach
Close but you might run into issues if the PC has multiple shields. Might want to do the reverse process though. add the disabled tag and then delete it if a buckler is equipped.
Minous is offline   #11 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 20th, 2017, 08:19 AM
Ok, how Sensei?
ErinRigh is offline   #12 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 20th, 2017, 09:30 AM
Sorry to interrupt but several things.

If you are using "Thingid.?" as a tag you are most likely heading in the wrong direction. 99% of the time you should never use Thing ID because Thing ID's change. In this case what if I made a new buckler up tomorrow or a magic buckler up with a different Unique ID. Then your script logic won't work.

Foreach loops should be avoided when you can. Always look for hero tags to use instead.

If I add a Buckler and equip it I can look at the tags on the hero for "Buckler". Develop->Floating Info Windows->Show Hero Tags. This then shows I have a tag called "ShldClass.Buckler" which tells me I have a buckler equipped.

Meaning to see if a buckler is equipped you just need to do:
Code:
~ If we don't have a buckler disable ourself
If (hero.tagis[ShldClass.Buckler] = 0) 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.
ShadowChemosh is offline   #13 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old November 20th, 2017, 09:54 AM
Thanks Shadow I expected something like that, but I dont have HL handy so I couldnt look that up.
Minous is offline   #14 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 20th, 2017, 10:36 AM
Quote:
Originally Posted by Minous View Post
Thanks Shadow I expected something like that, but I dont have HL handy so I couldnt look that up.
Normally true for me during the week but I am actually off this week!

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   #15 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old November 20th, 2017, 10:50 AM
Thanks SC that makes perfect sense
ErinRigh is offline   #16 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old November 20th, 2017, 12:53 PM
Quote:
Originally Posted by Minous View Post
Putting it on the buckler is a bad idea.
Just curious as to why.
EightBitz is offline   #17 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old November 20th, 2017, 12:57 PM
Quote:
Originally Posted by EightBitz View Post
Just curious as to why.
Its a "Great" plan if you have full access to the skeleton files or you are making your own game system.

When working within LW game systems you want to avoid doing a "Replace Thing ID" as much as possible. LW makes too many changes in future releases that will cause you issues.

Its best to work from the OUTSIDE looking for tags and field values when working within LW game systems.

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   #18 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old November 20th, 2017, 12:59 PM
Quote:
Originally Posted by EightBitz View Post
Just curious as to why.
What about custom bucklers? special materials/named ect? If you look for the item type instead of a named thing its less prone to issues.
Minous is offline   #19 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old November 20th, 2017, 02:58 PM
OK, I misunderstood. I was parsing this as being particular to a specific buckler.

The example I provided was for a custom magic item, and certain things are dependent on whether or not this specific magic item is equipped.

Going back and rereading, I now see where this question is about bucklers in general, not just one specific buckler.
EightBitz is offline   #20 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 08:57 AM.


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