Basically I've got a bunch of functions that go along the lines of:
And so on and so forth, and I was wondering if there was anyway to condense them into one function, such as
function reset.balance (type)
this way I could save space in my script file, any suggestions?
function reset.drink ()
if bal.drink == .5 then
bal.drink = true
end
end
function reset.salve ()
if bal.salve == .5 then
bal.salve = true
end
end
function reset.herb ()
if bal.herb == .5 then
bal.herb = true
end
endAnd so on and so forth, and I was wondering if there was anyway to condense them into one function, such as
function reset.balance (type)
this way I could save space in my script file, any suggestions?