Thanks for your attention.
Ive got 5 triggers but i want to make sure they don't leak and as well try to improve the trigger mostly so it don't lag. any help would be greatly appreciated.
Ive got 5 triggers but i want to make sure they don't leak and as well try to improve the trigger mostly so it don't lag. any help would be greatly appreciated.
Trigger:
- Fire
- Events
- Unit - A unit owned by Neutral Victim Is attacked
- Unit - A unit owned by Neutral Extra Is attacked
- Conditions
- ((Attacking unit) is A Hero) Equal to True
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Owner of (Attacking unit)) Current gold) Greater than 0
- Safty[(Player number of (Owner of (Attacking unit)))] Equal to False
- Then - Actions
- Player - Add -1 to (Owner of (Attacking unit)) Current gold
- Else - Actions
- Set CurrentlyReloading[(Player number of (Owner of (Attacking unit)))] = True
- Unit - Order (Attacking unit) to Stop
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Toggle Safty
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Toggle Safety (Marine Actions)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Safty[(Player number of (Owner of (Attacking unit)))] Equal to False
- Then - Actions
- Set Safty[(Player number of (Owner of (Casting unit)))] = True
- Else - Actions
- Set Safty[(Player number of (Owner of (Casting unit)))] = False
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Drop Magazine
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Drop Magazine (Marine Actions)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Owner of (Casting unit)) Current lumber) Greater than or equal to 3
- Then - Actions
- Player - Add -3 to (Owner of (Casting unit)) Current lumber
- Hero - Create |c009aad3dAmmunition Case|r and give it to (Casting unit)
- Else - Actions
- Game - Display to (Player group((Owner of (Casting unit)))) the text: You do not have eno...
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Reload
- Events
- Unit - A unit owned by Neutral Victim Is attacked
- Unit - A unit owned by Neutral Extra Is attacked
- Conditions
- ((Owner of (Attacking unit)) Current gold) Equal to 0
- ((Owner of (Attacking unit)) Current lumber) Greater than or equal to 1
- CurrentlyReloading[(Player number of (Owner of (Attacking unit)))] Equal to False
- Actions
- Set CurrentlyReloading[(Player number of (Owner of (Attacking unit)))] = True
- Sound - Play clipout <gen> at 100.00% volume, attached to Hero[(Player number of (Owner of (Attacking unit)))]
- Player - Add -1 to (Owner of (Attacking unit)) Current lumber
- Wait 3.50 seconds
- Sound - Play clipin <gen> at 100.00% volume, attached to Hero[(Player number of (Owner of (Attacking unit)))]
- Player - Set (Owner of (Attacking unit)) Current gold to Bullets[(Player number of (Owner of (Attacking unit)))]
- Wait 1.00 seconds
- Sound - Play m4a1_boltpull <gen> at 100.00% volume, attached to Hero[(Player number of (Triggering player))]
- Set CurrentlyReloading[(Player number of (Owner of (Attacking unit)))] = False
- Events
Trigger:
- Manual Reload
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Drop Magazine (Marine Actions)
- ((Owner of (Casting unit)) Current lumber) Greater than or equal to 1
- CurrentlyReloading[(Player number of (Owner of (Casting unit)))] Equal to False
- Actions
- Set CurrentlyReloading[(Player number of (Owner of (Casting unit)))] = True
- Sound - Play clipout <gen> at 100.00% volume, attached to Hero[(Player number of (Owner of (Casting unit)))]
- Player - Add -1 to (Owner of (Casting unit)) Current lumber
- Wait 3.50 seconds
- Sound - Play clipin <gen> at 100.00% volume, attached to Hero[(Player number of (Owner of (Casting unit)))]
- Player - Set (Owner of (Casting unit)) Current gold to Bullets[(Player number of (Owner of (Casting unit)))]
- Wait 1.00 seconds
- Sound - Play m4a1_boltpull <gen> at 100.00% volume, attached to Hero[(Player number of (Owner of (Casting unit)))]
- Set CurrentlyReloading[(Player number of (Owner of (Casting unit)))] = False
- Events