////////////////// /// Ammo Pickup //////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// /// D0: Set to Counter for Type of Amunition You are Using /// /// D1: Amount of Ammo Boxes to Gain /// /// D2: Minimum Aount to Increase CounterMax; suggest 1. /// //////////////////////////////////////////////////////////////////// item script AmmoPickup{ void run(int AmmoCounter, int amount, int increaseAmmoCount){ Game->Counter[AmmoCounter]+=amount; Game->MCounter[AmmoCounter]+=increaseAmmoCount; } } ////////////////// /// Ammo Pickup //////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// /// D0: Set to Counter for Type of Amunition You are Using /// /// D1: Set to Counter for Firearm Being Loaded. /// /// D2: Amount of Rounds to Give player on Loading. /// /// D3: Time before Link can use this item again. /// //////////////////////////////////////////////////////////////////// item script AmmoLoad{ void run(int AmmoCounter, int GunCounter, int GunAmount, int nouse){ if (Game->Counter[AmmoCounter] >= 1 && Game->Counter[GunCounter] <= 0){ Game->Counter[AmmoCounter] -= 1; Game->Counter[GunCounter]+=GunAmount; Link->ItemJinx = nouse; Game->PlaySound(SFX_RELOAD); } else{ Game->PlaySound(SFX_ERROR); } } } /////////////////////////////////// ///// Counters Reference ////////// /////////////////////////////////// /// CR_SCRIPT1 = 7; /// /// CR_SCRIPT2 = 8; /// /// CR_SCRIPT3 = 9; /// /// CR_SCRIPT4 = 10; /// /// CR_SCRIPT5 = 11; /// /// CR_SCRIPT6 = 12; /// /// CR_SCRIPT7 = 13; /// /// CR_SCRIPT8 = 14; /// /// CR_SCRIPT9 = 15; /// /// CR_SCRIPT10 = 16; /// /// CR_SCRIPT11 = 17; /// /// CR_SCRIPT12 = 18; /// /// CR_SCRIPT13 = 19; /// /// CR_SCRIPT14 = 20; /// /// CR_SCRIPT15 = 21; /// /// CR_SCRIPT16 = 22; /// /// CR_SCRIPT17 = 23; /// /// CR_SCRIPT18 = 24; /// /// CR_SCRIPT19 = 25; /// /// CR_SCRIPT20 = 26; /// /// CR_SCRIPT21 = 27; /// /// CR_SCRIPT22 = 28; /// /// CR_SCRIPT23 = 29; /// /// CR_SCRIPT24 = 30; /// /// CR_SCRIPT25 = 31; /// ///////////////////////////////////