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
Korpah
Junior Member
 
Join Date: Apr 2016
Posts: 19

Old August 8th, 2017, 01:06 AM
Quote:
Originally Posted by Mathias View Post
Here's how I'd write it:

Code:
if (field[gIsEquip].value <> 0) then
  if (field[trkUser].value <> 0) then
    hero.child[ArmorClass].field[tACArmor].value -= field[trkUser].value
    endif
  endif
Note that grIsEquip is preferable to gUserEquip in this case - if you're polymorphed, and the item melds into your form and can't be used anymore, gUserEquip will stay =1 if the item was equipped before you turned on the polymorph, but gIsEquip will be set = 0, so that the item properly turns itself off while polymorphed.
Thanks that is helpful! as its indeed for a class that can polymorph

and <> means bigger or smaller then the value after it?
Korpah is offline   #11 Reply With Quote
CorzatTheGray
Senior Member
 
Join Date: Apr 2012
Location: Indiana
Posts: 117

Old August 8th, 2017, 06:10 AM
Quote:
Originally Posted by Korpah View Post
and <> means bigger or smaller then the value after it?
<> means "not equal to"

Currently Playing: Pathfinder - Skull & Shackles AP
Current Character: Legendary Gunslinger 11
Currently DMing: D&D 5E - AAW Games A-Series
CorzatTheGray is offline   #12 Reply With Quote
Korpah
Junior Member
 
Join Date: Apr 2016
Posts: 19

Old August 8th, 2017, 06:42 AM
Quote:
Originally Posted by CorzatTheGray View Post
<> means "not equal to"
thanks that clarifies it
Korpah is offline   #13 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old August 8th, 2017, 10:00 AM
Quote:
Originally Posted by Korpah View Post
thanks that clarifies it
Wow, I just realized (6 years in) the intent behind choosing that symbol combo because of your post above. If something is "greater or lesser than" the only thing it can not be is equal. Thanks!
Aaron is offline   #14 Reply With Quote
Korpah
Junior Member
 
Join Date: Apr 2016
Posts: 19

Old August 8th, 2017, 10:36 AM
Quote:
Originally Posted by Aaron View Post
Wow, I just realized (6 years in) the intent behind choosing that symbol combo because of your post above. If something is "greater or lesser than" the only thing it can not be is equal. Thanks!
not sure if its ment sarcastically (if it is kinda odd)
but if it ain't, guess we learn something new everyday
Korpah is offline   #15 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old August 8th, 2017, 04:28 PM
No sarcasm, just pleasant surprise. I am doing a seminar on the basics of coding at Gencon next week and now I will be better able to explain.
Aaron is offline   #16 Reply With Quote
Korpah
Junior Member
 
Join Date: Apr 2016
Posts: 19

Old August 10th, 2017, 09:11 AM
Quote:
Originally Posted by Aaron View Post
No sarcasm, just pleasant surprise. I am doing a seminar on the basics of coding at Gencon next week and now I will be better able to explain.
ok great, no offense ment of course!

Fro this trial and error script i learned allot so that's great how fast i got an answer that led me to the creation of a good script.
Korpah is offline   #17 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 07:06 AM.


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