I'm trying to do one of two things
-Fix the damage check so it never fails to rearm when you switch weapons.
-Add a feature to the onhotkey function which will rearm the ability instead of having to toggle on/off (if the first can't be achieved.)
Any input would be greatly appreciated. This is the section of code I'm toying with.
Code: Select all
if ( Abs ( %min - #minDmg ) > 15 ) || ( ( %max <> #maxDmg ) > 15 ) ;|| ( Abs (%max - %maxDmg ) > 15 )
{
gosub Settings ; saves pixels of icons
;wait 5
set %min #minDmg
set %max #maxDmg
goto loop:
}
onhotkey %Prim
{
set %Sub Prim
event exmsg #charid 3 0 [Primary]
event sysmessage Primary Ability activated
}