Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old January 6th, 2014, 09:49 AM
Quote:
Originally Posted by Sendric View Post
As for this, my guess is you could be doing this too soon. When you want to change the name of something, I find it easiest to run these in the Final Phase. A couple of other things to note is that I think you intend to use ">=" instead of just ">", and I got an error on the field. The line:

Code:
level = field[xTotalLev].value
sets "level" equal to the value of xTotalLev on the thing the script is on. That may be your intention, but I wasn't sure, so I changed it on the version I wrote. I also changed who you are modifying the name. I find using variables as a string to have very inconsistent success, so I removed that. Here's what I have:

Final Phase/5000
Code:
 ~ Calculate our total level - our Kundula level plus any 'extra levels'
      ~ assigned to us
      var level as number
      level = herofield[tTotLevel].value

      ~ Assign the Number of times the alternate form is active.
      if (level >= 10) then
        field[livename].text = field[name].text & " (1/day)"
      elseif (level >= 15) then
        field[livename].text = field[name].text & " (3/day)"
      elseif (level >= 20) then
        field[livename].text = field[name].text & " (at Will)"
      endif
See if that does what you are looking for.
Nope, the Append wont work because I'm using this to modify the Class Special, so it would come out as:
Alternate Form (1/day) (1/day)

And no matter how many levels of the class I have it still shows:
Alternate Form (1/day) (1/day) on the Specials tab.

Last edited by TobyFox2002; January 6th, 2014 at 10:01 AM.
TobyFox2002 is offline   #14 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 02:37 PM.


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