Is
global script ifHookShotIsUsedHealLink { void run() { if ( Link-> LWeapon[Hookshot (Long)] = true) { if ( Link->InputB ) { if ( Link->HP != Link->Maximum_HP ) { Link->Increment[HP] += 1; } } } } }
a workable code to get it to where if Link uses Hookshot (Long) as B weapon Link's HP will get increased by 1 until His HP is equal to His Maximum HP or no?
If no then how do I fix up above code [code please thank you]?
Thank you all for your help in advance