Short version of this question:
Long version:
I have a question about the maximize function.
I am writing a script to automatically dress me, based on a large number of factors. I had been using the maximize function (with "simulate" set to false), and then using numberic_modifier() to check the results. I don't want to hit the server that many times for what I plan to do in the near future. I know I have to set "simulate" to true, but how exactly do I access the numeric_modifier() data when everything is simulated? On the maximize() wiki page, it says:
Here is what I tried so far (note, I tried this while wearing a birthday suit):
EDIT: 0.0 is printed. I have 407 moxie (I have no buffs active, or equipment... equipped). Here is the gCLI output:
If I try:
Then 5.0 is printed. How do I access _spec, when _spec is created using the maximize function? Am I missing something really simple again?
me259259 said:How do I access _spec, when _spec is created using the maximize function?
Long version:
I have a question about the maximize function.
Code:
boolean maximize( string expression , boolean simulate )
I am writing a script to automatically dress me, based on a large number of factors. I had been using the maximize function (with "simulate" set to false), and then using numberic_modifier() to check the results. I don't want to hit the server that many times for what I plan to do in the near future. I know I have to set "simulate" to true, but how exactly do I access the numeric_modifier() data when everything is simulated? On the maximize() wiki page, it says:
Wiki said:This function will set _spec so that it can be checked with numeric_modifier()
Here is what I tried so far (note, I tried this while wearing a birthday suit):
PHP:
maximize ("moxie", true) ;
print( numeric_modifier("_spec", "moxie")) ;
EDIT: 0.0 is printed. I have 407 moxie (I have no buffs active, or equipment... equipped). Here is the gCLI output:
Code:
Maximizing...
143 combinations checked, best score 998.00
0.0
If I try:
PHP:
cli_execute("whatif equip badass belt") ;
print( numeric_modifier("_spec", "moxie")) ;
Then 5.0 is printed. How do I access _spec, when _spec is created using the maximize function? Am I missing something really simple again?
Last edited: