Here is my script:
import "std.zh" int maximum_money_I_can_have = 255; bool heal_rupees_in_action = false; bool w = true; bool ww = true; bool www = true; global script AllINeed { void run() { while(true) { if (Link->Item[164] == GetEquipmentB()) { if (Link->PressB) { while(Game->Counter[CR_RUPEES] < maximum_money_I_can_have) { Game->Counter[CR_RUPEES] += 1; Waitframe(); } } } Waitframe(); } while(true) { if (Game->Counter[CR_RUPEES] == maximum_money_I_can_have) { Link->Item[164] = false; } Waitframe(); } } }
in fullness but nothing happens when I use Potion 3 which is Item id 164