I have an adjustments file with this and other stuff I have plans to release to the community soon.
Otherwise the first bit of code is what goes into an Eval Scripts for a Adjustment in the editor.
In the editor go to
Adjustment tab and do a
New(Blank). Give it a name and unique ID. Then do the following:
*
Show Menu = "
Current Weapons"
*
Minimum adjustment = "1"
*
Maximum adjustment = "19"
For the
Eval Scripts enter the following at
Phase: Final Phase;
Priority: 50000
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~if nothing's been chosen, get out now
doneif (field[pChosen].ischosen = 0)
var sCrit as String
var nCrit as number
~ Remove all crit tags
perform field[pChosen].chosen.delete[wCritMin.?]
~ Calc numeric crit by taking 20 and subtracking the counter
nCrit = 20 - field[pAdjust].value
~ Create the Crit string value
sCrit = "wCritMin." & nCrit
~ Assign the string to the weapon
perform field[pChosen].chosen.assignstr[sCrit]
Though without new Tags you will only be able to set 19,18,17 crit ranges only. The .user file I release to the community will be able to do many more.