Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old October 1st, 2012, 02:58 PM
Hi guys,

I made a level reduction template a while back, but I think I may be better served through the adjustments tab in the editor.

Anyone have any ideas about getting an adjustment to affect cLevelAdj?
GLBIV is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old October 2nd, 2012, 01:53 PM
What have you tried already? What's not been working?
Aaron is offline   #2 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old October 3rd, 2012, 04:46 AM
Sorry for the delay,

I can make the adjustment work with this:

Code:
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add our level adjustment reduction
        herofield[tLevelAdj].value += field[pAdjust].value
But instead of a static minimum, I'd like to set it such that you cannot reduce a hero's level adjustment below zero.

Basically, I need to write a script that tells HL the minimum equals -1*the level adjustment. I think that would always set the minimum properly, since a 0 level adjustment would set a 0 minimum (my maximum is already 0).

I just don't know enough about the code to write that in a coherent expression.
GLBIV is offline   #3 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old October 5th, 2012, 10:59 AM
Ok, this is what I have.

Code:
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add our level adjustment reduction
        herofield[tLevelAdj].value += field[pAdjust].value

      ~ Set our minimum adjustment
        herofield[pMinimum].value += herofield[tLevelAdj].value*-1
This is the error I'm getting:

"Only derived fields can generally be modified via scripts (field 'pMinimum')"\

Am I asking HL to do something it won't or am I just not asking it politely?
GLBIV is offline   #4 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old October 5th, 2012, 12:34 PM
I suppose another way to do it is simply make it so there is an error if tLevelAdj = -1?
GLBIV is offline   #5 Reply With Quote
Pacho73
Junior Member
 
Join Date: Dec 2013
Posts: 5

Old December 15th, 2013, 06:13 AM
I know this was probably written a long time ago and I am new to writing code in games and such but where did you put the code in specifically? or does it mater where. I want to get rid of a +1 level adjustment on one of my characters and don't know how to. LOL


Quote:
Originally Posted by GLBIV View Post
Sorry for the delay,

I can make the adjustment work with this:

Code:
      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)

      ~ Add our level adjustment reduction
        herofield[tLevelAdj].value += field[pAdjust].value
But instead of a static minimum, I'd like to set it such that you cannot reduce a hero's level adjustment below zero.

Basically, I need to write a script that tells HL the minimum equals -1*the level adjustment. I think that would always set the minimum properly, since a 0 level adjustment would set a 0 minimum (my maximum is already 0).

I just don't know enough about the code to write that in a coherent expression.
Pacho73 is offline   #6 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old December 16th, 2013, 05:43 AM
To create an adjustment, you open the editor and use the Adjustment tab. Then you enter the above script as an eval script. You will probably want it done post-levels.
Sendric is offline   #7 Reply With Quote
Pacho73
Junior Member
 
Join Date: Dec 2013
Posts: 5

Old December 16th, 2013, 11:28 AM
Ok I tried to put it in the editor Eval script like you said and saved but I don't know what else I need to fill out and add. What other tabs need to be filled in and such. I am really new to this. If you don't want to tell me can you at least point me to a web page that will hep explain it to me. I am not real good at finding thing on the web. I would be so happy with all the help I can get. Thank you everyone that helps.

Quote:
Originally Posted by Sendric View Post
To create an adjustment, you open the editor and use the Adjustment tab. Then you enter the above script as an eval script. You will probably want it done post-levels.
Pacho73 is offline   #8 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old December 17th, 2013, 05:08 AM
Sorry. I'm not trying to keep things secret from you or anything. I'm happy to help you in any way that I can.

Once you have the script written, you need to compile it, which means hitting "Test Now" if you are still in the editor. Closing and re-opening HL will also work. As long as there are no errors, then you go to the Adjust tab in your portfolio, and select "Click to add a new ??? Adjustment" where ??? is either Temporary or Permanent. They both function the same, so it doesn't really matter to HL which you choose. Then find the adjustment that you made and select it. Then, I assume you would have to adjust the counter to make the necessary change to LA that you want.

Disclosure: I have not tried out this adjustment, so if you have any trouble let me know and I'll take a closer look.
Sendric is offline   #9 Reply With Quote
Pacho73
Junior Member
 
Join Date: Dec 2013
Posts: 5

Old December 18th, 2013, 10:00 AM
Do I make a new Data file or do I open a file? how do I find the file I want if I want a different one from Assamar?
Pacho73 is offline   #10 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 09:53 AM.


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