• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adjusting Level Adjustment with adjustments

GLBIV

Well-known member
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?
 
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.
 
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?
 
where

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


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.
 
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.
 
I am not smart

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. :)

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.
 
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.
 
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?
 
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?

Well, I wouldn't use one of the files from the community set. If you do, you'll lose any changes you make with the next release. You could use any .user file you have already made (if any) or make a new one.

Since its an adjustment, it doesn't matter if you want to use it on the Aasimar or something else. It will work with any race. Where did you put your eval script?
 
Oh my

See that is what I don't know what to do I don't know where to put the Eval script. I guess I haven't been putting it anywhere yet. LOL I can try to put it somewhere but where do you think is the best place to put it? and what do you mean put it somewhere. Man I am getting a headache trying to figure this out. LOL:eek:
 
Ok. You had said you put it in an eval script, so I assumed you had done that part already.

Here's the steps you need:

1) Open the editor (Tools -> Launch Editor)
2) Create a new file (File -> New Data File)
3) In the Adjustment tab (which is selected by default when you create a new file), click "New (Blank)". Give your adjustment a name (such as Level Adjustment), and a unique id (such as pLevAdj).
4) Click on "Eval Script". Paste in the script above. Set Phase to Post-Levels and Priority to 10000. Click OK.
5) Save the file (File -> Save Data File As), and give it a name.
6) Click Test Now!
7) Go back to portfolio, and look for your new adjustment in the Adjust tab. Select it, and change the incrementor to adjust your LA as desired (it can go negative).

NOTE: As I said before, I haven't tested this, and I'm guessing on the timing. That said, I don't see any reason why this wouldn't work.
 
Back
Top