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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 28th, 2013, 09:15 AM
Quote:
Originally Posted by nextgenrpg View Post
I tried adding hero.shield or hero.lightshield or hero.heavyshield but those don't seem to exist. Is there a comprehensive list of item references somewhere?
Make a new character. Add a buckler. Equip the buckler.

Go to "Develop->Floating Info Windows->Show Hero Tags" will show you every tag currently active on the hero. Look through the list for helpful tags. We find we have "Hero.EquipShld" and "ShldClass.Buckler" when a buckler is equipped. Or we have "Hero.EquipShld" and "ShldClass.Light" when its a light shield.

So with this info we can do the following:
Code:
~ Get out now if wearing Medium or Heavy armor
doneif (hero.tagis[Hero.MedArmor] + hero.tagis[Hero.HeavyArmor] <> 0) 
~ Get out now if wearing a shield besides a buckler
doneif (hero.tagis[Hero.EquipShld] - hero.tagis[ShldClass.Buckler] <> 0)
So tagis returns 1 or 0. So if we have a equipped shield (Hero.EquipShld) we get a value of 1. If its a Buckler (ShldClass.Buckler) it will also return 1 giving a final result of 1 - 1 = 0 which when compared to not equal to 0 will return false. If we have a light shield we get 1 - 0 = 1 which is NOT equal to zero and will return TRUE and end the script.

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   #4 Reply With Quote
 


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 01:55 AM.


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