• 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

Adjustments and custom menus

TheIronGolem

Well-known member
I'm working on an adjustment that needs to let the user pick a second numeric value independently of the pAdjust field. How can I set one of the menu selectors to show a simple numeric range?
 
How big of a number? From 1 to 100,000? If you need zero through 9 you can look at the adjustment 'Spells Known'.

In the Basic Pack is a set of selectors for values 1 to 5.

If it can be any number at all then you maybe best off having them "type" in the value.

Can I ask what your trying to accomplish?
 
I'm implementing Glyphs, from the Mystic class.

All of the glyphs bestow abilities or bonuses based on the class level of the Mystic who added the glyph, and some of them have values dependent on the Mystic's Wisdom mod. So I need a separate selector for the user to specify the Wisdom mod since pAdjust is already doing something else. I'd need at least a range of 1-20, I should think.

Unfortunately Value.? didn't work.
 
I'm implementing Glyphs, from the Mystic class.

All of the glyphs bestow abilities or bonuses based on the class level of the Mystic who added the glyph, and some of them have values dependent on the Mystic's Wisdom mod. So I need a separate selector for the user to specify the Wisdom mod since pAdjust is already doing something else. I'd need at least a range of 1-20, I should think.

Unfortunately Value.? didn't work.
I am thinking we setup new Selection Helpers for character level 1 to 20. Then use the Counter to set the bonus.

This way we know we only have to deal with character levels 1 to 20 and have that as the 2nd/1st drop down menu. I think that would be the easiest to do. I can build that quick in the Basic Pack.
 
Ok I added new selection helpers lvl 1-20 into the basic pack. So update the Basic Pack files to get it.

Then in the custom expression use:
Code:
component.SelectHelp & Selection.S2ChrLevel
This will display a selection of levels from 1 to 20.

Then in the code you can do:
Code:
x += field[pChosen].chosen.tagvalue[Value.?]
The "Value.?" tags hold the level chosen from 1 to 20.
 
Thanks Shadow, that seems like it should do the trick. Sorry for making you do more work, but on the other hand I'm sure that will be useful for other things in the future as well.
 
No prob, you might want to organize the tags a little better I just kinda randomly inserted what I thought of.
 
Back
Top