Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Scar Ammo System LG2.w3x
Variables
Scar Multi Ammo System
Version 1.2
Testman
Start Movie
Start Movie
Set Data
Bullets and Magazine give
Gold Annd Lumber Initiate
Gun Attactch
Gun Attachments
Attach Gun to PLayers
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
ReloadBlue
integer
No
Reloadp3
integer
No
Reloadp4
integer
No
Reloadp5
integer
No
ReloadRed
integer
No
Ammo system is so gold = bullets lumber = magazines
Variables
(Red) Reload
(Red) (Blue).... ect
Testman
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Marine
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in (Units owned by Player 1 (Red).).) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ReloadRed Equal to 0
Then - 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
Then - Actions
Player - Add -1 to (Owner of (Attacking unit)) . Current gold
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of (Attacking unit) using Minigun Effect.MDX
Sound - Play IMI_Galil_M__Semi_Auto_u <gen>
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacking unit)) Current lumber) Greater than 0
Then - Actions
Set Variable Set ReloadRed = "1"
Floating Text - Create floating text that reads ((Name of (Owner of (Attacking unit))) + : Reloading!) above (Attacking unit) with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Unit - Order (Attacking unit) to Stop .
Wait 2.00 seconds
Sound - Play IMI_Galil_M_Reload <gen>
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Player - Add 30 to (Owner of (Attacking unit)) . Current gold
Player - Add -1 to (Owner of (Attacking unit)) . Current lumber
Set Variable Set ReloadRed = "0"
Else - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Attacking unit))) + : I'm outa ammo, SHIT!)
Else - Actions
Unit - Order (Attacking unit) to Stop .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in (Units owned by Player 2 (Blue).).) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ReloadBlue Equal to 0
Then - 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
Then - Actions
Player - Add -1 to (Owner of (Attacking unit)) . Current gold
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of (Attacking unit) using Minigun Effect.MDX
Sound - Play IMI_Galil_M__Semi_Auto_u <gen>
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacking unit)) Current lumber) Greater than 0
Then - Actions
Set Variable Set ReloadBlue = "1"
Floating Text - Create floating text that reads ((Name of (Owner of (Attacking unit))) + : Reloading!) above (Attacking unit) with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Unit - Order (Attacking unit) to Stop .
Wait 2.00 seconds
Sound - Play IMI_Galil_M_Reload <gen>
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Player - Add 30 to (Owner of (Attacking unit)) . Current gold
Player - Add -1 to (Owner of (Attacking unit)) . Current lumber
Set Variable Set ReloadBlue = "0"
Else - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Attacking unit))) + : I'm outa ammo, SHIT!)
Else - Actions
Unit - Order (Attacking unit) to Stop .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in (Units owned by Player 3 (Teal).).) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Reloadp3 Equal to 0
Then - 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
Then - Actions
Player - Add -1 to (Owner of (Attacking unit)) . Current gold
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of (Attacking unit) using Minigun Effect.MDX
Sound - Play IMI_Galil_M__Semi_Auto_u <gen>
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacking unit)) Current lumber) Greater than 0
Then - Actions
Set Variable Set Reloadp3 = "1"
Floating Text - Create floating text that reads ((Name of (Owner of (Attacking unit))) + : Reloading!) above (Attacking unit) with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Unit - Order (Attacking unit) to Stop .
Wait 2.00 seconds
Sound - Play IMI_Galil_M_Reload <gen>
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Player - Add 30 to (Owner of (Attacking unit)) . Current gold
Player - Add -1 to (Owner of (Attacking unit)) . Current lumber
Set Variable Set Reloadp3 = "0"
Else - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Attacking unit))) + : I'm outa ammo, SHIT!)
Else - Actions
Unit - Order (Attacking unit) to Stop .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in (Units owned by Player 4 (Purple).).) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Reloadp4 Equal to 0
Then - 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
Then - Actions
Player - Add -1 to (Owner of (Attacking unit)) . Current gold
Sound - Play IMI_Galil_M__Semi_Auto_u <gen>
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of (Attacking unit) using Minigun Effect.MDX
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacking unit)) Current lumber) Greater than 0
Then - Actions
Set Variable Set Reloadp4 = "1"
Floating Text - Create floating text that reads ((Name of (Owner of (Attacking unit))) + : Reloading!) above (Attacking unit) with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Unit - Order (Attacking unit) to Stop .
Wait 2.00 seconds
Sound - Play IMI_Galil_M_Reload <gen>
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Player - Add 30 to (Owner of (Attacking unit)) . Current gold
Player - Add -1 to (Owner of (Attacking unit)) . Current lumber
Set Variable Set Reloadp4 = "0"
Else - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Attacking unit))) + : I'm outa ammo, SHIT!)
Else - Actions
Unit - Order (Attacking unit) to Stop .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) is in (Units owned by Player 5 (Yellow).).) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Reloadp5 Equal to 0
Then - 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
Then - Actions
Player - Add -1 to (Owner of (Attacking unit)) . Current gold
Sound - Play IMI_Galil_M__Semi_Auto_u <gen>
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of (Attacking unit) using Minigun Effect.MDX
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacking unit)) Current lumber) Greater than 0
Then - Actions
Set Variable Set Reloadp5 = "1"
Floating Text - Create floating text that reads ((Name of (Owner of (Attacking unit))) + : Reloading!) above (Attacking unit) with Z offset 0 , using font size 8.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Unit - Order (Attacking unit) to Stop .
Wait 2.00 seconds
Sound - Play IMI_Galil_M_Reload <gen>
Wait 2.00 seconds
Floating Text - Destroy (Last created floating text)
Player - Add 30 to (Owner of (Attacking unit)) . Current gold
Player - Add -1 to (Owner of (Attacking unit)) . Current lumber
Set Variable Set Reloadp5 = "0"
Else - Actions
Game - Display to (All players) the text: ((Name of (Owner of (Attacking unit))) + : I'm outa ammo, SHIT!)
Else - Actions
Unit - Order (Attacking unit) to Stop .
Else - Actions
Do nothing
Start Movie
Events
Time - Elapsed game time is 2.00 seconds
Conditions
Actions
Cinematic - Turn cinematic mode On for (All players)
Cinematic - Send transmission to (All players) from Zombie 0108 <gen> named Game : Play No sound and display BEFORE PLAYING READ THIS! YARG! . Modify duration: Add 5.00 seconds and Wait
Wait 5.00 seconds
Cinematic - Send transmission to (All players) from Zombie 0108 <gen> named Game : Play No sound and display This is a map dedicated to the scar ammo system LGGOLD IS BULLETSLUMBER IS MAGAZINES . Modify duration: Add 5.00 seconds and Wait
Wait 5.00 seconds
Cinematic - Send transmission to (All players) from Zombie 0108 <gen> named Game : Play No sound and display You are equiped with a gun. That guns magazine holds 30 bullets (gold)You have your magazines (lumber)When you rn out of bullets you will reload!HAVE FUN! . Modify duration: Add 5.00 seconds and Wait
Wait 5.00 seconds
Cinematic - Turn cinematic mode Off for (All players)
Game - Display to (All players) for 100.00 seconds the text: Map made by Remscar
This is put in to give the player a certain amount of ammo when teh game starts.
Gold Annd Lumber Initiate
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Add 30 to (Picked player) . Current gold
Player - Add 5 to (Picked player) . Current lumber
This is how you attacth gun sor weapons to units!
Attach Gun to PLayers
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of Marine 0005 <gen> using MWP_HeavySupportRilfeAttachment.mdx
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of Marine 0007 <gen> using MWP_HeavySupportRilfeAttachment.mdx
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of Marine 0008 <gen> using MWP_HeavySupportRilfeAttachment.mdx
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of Marine 0009 <gen> using MWP_HeavySupportRilfeAttachment.mdx
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of Marine 0010 <gen> using MWP_HeavySupportRilfeAttachment.mdx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.