- Joined
- Dec 17, 2009
- Messages
- 1,115
Trigger 1
-
Reload
-
Events
-
Unit - A unit Uses an item
-
-
Conditions
-
(Item-class of (Item being manipulated)) Equal to Permanent
-
-
Actions
-
For each (Integer A) from 1 to 2, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to WeaponUnit[(Integer A)]
-
(Item being manipulated) Equal to (Item carried by (Triggering unit) of type WeaponTypes[(Integer A)])
-
-
Then - Actions
-
Item - Set charges remaining in (Item being manipulated) to ((Charges remaining in (Item being manipulated)) + 1)
-
Countdown Timer - Start ReloadTimer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in 3.00 seconds
-
Set ReloadingUnit[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
-
-
Else - Actions
-
-
-
-
-
-
Finish
-
Events
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 1, do (Actions)
-
Loop - Actions
-
Set FilledIn = (WeaponRounds[(Integer A)] - (Charges remaining in (Item carried by ReloadingUnit[(Integer A)] of type WeaponTypes[(Integer A)])))
-
Item - Set charges remaining in (Item carried by ReloadingUnit[(Integer A)] of type WeaponTypes[(Integer A)]) to ((Charges remaining in (Item carried by ReloadingUnit[(Integer A)] of type WeaponTypes[(Integer A)])) + FilledIn)
-
Item - Set charges remaining in (Item carried by ReloadingUnit[(Integer A)] of type BulletType[(Integer A)]) to ((Charges remaining in (Item carried by ReloadingUnit[(Integer A)] of type BulletType[(Integer A)])) - FilledIn)
-
-
-
-
-
Setup Weapons
-
Events
-
Time - Elapsed game time is 0.01 seconds
-
-
Conditions
-
Actions
-
Set WeaponTypes[1] = M4A1 Carbine
-
Set WeaponTypes[2] = AK-47
-
Set WeaponUnit[1] = M4A1 Carbine
-
Set WeaponUnit[2] = AK-47
-
Set BulletType[1] = 5.56mm Magazine
-
Set BulletType[2] = 7.62mm Magazine
-
Set WeaponRounds[1] = 30
-
Set WeaponRounds[2] = 30
-
For each (Integer A) from 1 to 9, do (Actions)
-
Loop - Actions
-
Trigger - Add to Finish <gen> the event (Time - ReloadTimer[(Integer A)] expires)
-
-
-
-