I know I can do
item script BaitTakesLinksHealthBy1IfBaitIsBButtonWeaponAndBIsPressed { void run() { if (Link->InputB) { Game->DCounter[CR_LIFE] -= MCounter[CR_LIFE]; } } }
for example but just in case I ever need an FFC or global script for multiple frames of stuff happening if an item is B Weapon button item and B weapon button is pressed something happens.
Please tell me in either FFC or global or both script how I would code if Bait is B Weapon Item and B Weapon button is pressed Link's health is drained by one heart. Thank you.