Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
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? |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
What have you tried already? What's not been working?
|
#2 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
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 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. |
#3 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
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 "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? |
#4 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
I suppose another way to do it is simply make it so there is an error if tLevelAdj = -1?
|
#5 |
Junior Member
Join Date: Dec 2013
Posts: 5
|
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:
|
|
#6 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
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.
|
#7 |
Junior Member
Join Date: Dec 2013
Posts: 5
|
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.
|
#8 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
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. |
#9 |
Junior Member
Join Date: Dec 2013
Posts: 5
|
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?
|
#10 |
|
|