item script CounterPotions{ void run (int sfx, int ctr, int inc){ if(sfx == 0) sfx = SFX_REFILL; Game->PlaySound(sfx); Game->Counter[ctr] += inc; } }