Senior Member
Join Date: May 2015
Posts: 830
|
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.
|
#11 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
Ok, how Sensei?
|
#12 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#13 |
Senior Member
Join Date: May 2015
Posts: 830
|
Thanks Shadow I expected something like that, but I dont have HL handy so I couldnt look that up.
|
#14 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#15 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
Thanks SC that makes perfect sense
|
#16 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
|
#17 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#18 |
Senior Member
Join Date: May 2015
Posts: 830
|
|
#19 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
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. |
#20 |
|
|