Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old September 24th, 2017, 03:06 PM
I'm trying to come up with the coding to allow me to check the tags of a special. The scripting needs to cycle through all custom specials and find their tags. If there are three of the same tag, then check +1 for each group of three.

Is this doable?
Illyahr is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,144

Old September 25th, 2017, 04:09 AM
Something like this might help you out:

Code:
var tagexist as number

foreach pick in BaseCustSp
  if (eachpick.tagis[Custom.Tag] <> 0) then
     tagexist += 1
  endif
nexteach

tagexist = round(tagexist/3,0,-1)
This should provide a result equal to the number of "groups of three" you are looking for.
Sendric is offline   #2 Reply With Quote
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old September 25th, 2017, 04:54 PM
Thanks. I'll what I can do with that.
Illyahr is offline   #3 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 12:32 AM.


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