Quote:
Originally Posted by spiderking69
I can't just change that because I changed everything. Where you see the set_arena_point(ap +50 ) it was originally set_huntaholic_point( holic + 1000 )
|
My eyes hurt when I see your scribbles in lua :D
I will write you very simple functions, please draw conclusions from them.
Quote:
function Add_JP(amount)
local jp = get_value( 'jp' )
set_value( 'jp', jp + amount )
end
|
Quote:
function Add_AP(amount)
local ap = get_value( 'ap' )
set_value( 'ap', ap + amount )
end
|
when you add these functions to your scripts you can add any number of points to the current value using the command:
/run Add_AP(1000)
your value will not be replaced, it will be added to the current value.
also remember that with set_value, function arguments are separated by a comma!
e.g:
set_value( 'ap' , ap + amount )