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!
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Barrel of explosion
Then - Actions
Set Variable Set CV_Count = (CV_Count + 1)
Unit - Set the custom value of (Picked unit) to CV_Count
Else - Actions
Set Variable Set CV_Count = (CV_Count + 1)
Unit - Set the custom value of (Picked unit) to CV_Count
Set Variable Set TimeBomb[CV_Count] = (Integer(TimeBomeIntegers[2]))
Time bomb Item
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Time bomb
Actions
Set Variable Set TimeBombLocations[0] = (Position of (Triggering unit))
Unit - Create 1 . Barrel of explosion for (Owner of (Triggering unit)) at TimeBombLocations[1] facing Default building facing degrees
Set Variable Set CV_Count = (CV_Count + 1)
Unit - Set the custom value of (Last created unit) to CV_Count
Set Variable Set TimeBomb[CV_Count] = (Integer(TimeBomeIntegers[2]))
Item - Remove (Item being manipulated)
Time Bomb Count
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Variable Set TimeBombGroup[0] = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Barrel of explosion))
Unit Group - Pick every unit in TimeBombGroup[0] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TimeBomb[(Custom value of (Picked unit))] Less than or equal to 0
Then - Actions
Set Variable Set TimeBomb[(Custom value of (Picked unit))] = (Integer(TimeBomeIntegers[2]))
Floating Text - Destroy TimeBombFT[(Custom value of (Picked unit))]
Set Variable Set TimeBombLocations[0] = (Position of (Picked unit))
Unit - Kill (Picked unit)
Set Variable Set TimeBombGroup[1] = (Units within BombRange of TimeBombLocations[0].)
Unit Group - Pick every unit in TimeBombGroup[1] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Not equal to Barrel of explosion
Then - Actions
Set Variable Set TimeBombLocations[1] = (Position of (Picked unit))
Unit - Cause (Picked unit) to damage (Picked unit) , dealing (TimeBomeIntegers[0] - (Distance between TimeBombLocations[1] and TimeBombLocations[0])) damage of attack type Spells and damage type Normal
Set Variable Set TimeBombLocations[1] = (Position of (Picked unit))
Unit - Kill (Picked unit)
Unit - Cause (Picked unit) to damage (Picked unit) , dealing (TimeBomeIntegers[0] - (Distance between TimeBombLocations[1] and TimeBombLocations[0])) damage of attack type Spells and damage type Normal
Destructible - Pick every destructible within BombRange of (Position of (Picked unit)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Picked destructible)) Equal to LTlt (Unexpected type: 'destructablecode')
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Current life of (Picked destructible)) Less than or equal to TimeBomeIntegers[1]
Then - Actions
Destructible - Kill (Picked destructible)
Else - Actions
Destructible - Set life of (Picked destructible) to ((Current life of (Picked destructible)) - TimeBomeIntegers[1])
Else - Actions
Else - Actions
Set Variable Set TimeBomb[(Custom value of (Picked unit))] = (TimeBomb[(Custom value of (Picked unit))] - 1)
Floating Text - Destroy TimeBombFT[(Custom value of (Picked unit))]
Floating Text - Create floating text that reads (String(TimeBomb[(Custom value of (Picked unit))])) above (Picked unit) with Z offset 0 , using font size 7.00 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Set Variable Set TimeBombFT[(Custom value of (Picked unit))] = (Last created floating text)
Else - Actions
Floating Text - Destroy TimeBombFT[(Custom value of (Picked unit))]
I'd love if you'll give me credits for this,
but you dont really have to, since i used the idea out of someone's request.
i hope this will be usefull for some people.
------------------------------------------------------------------Notes:----------------------------------------------------------------------------------------
1.at time bomb manual 1, you should change location, owner, and amount.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
2.the range of bomb, can be setted in the variable "BombRange". recommanded to use 350-500.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 You must add the "Set TimeBomb[CV_Count] = (Integer(TimeBomeIntegers[2]))",
because it sets the time Left/or even before started the timer for bomb.
--------------------------------------------------------------End Of Notes----------------------------------------------------------------------------------
-------------------------------------------------------------------[soon]-----------------------------------------------------------------------------------------
Time Bomb Manual 2 - how to turn on\turn off bomb timers.
------------------------------------------------------------------[/Soon]----------------------------------------------------------------------------------------
Time Bomb Manual 1
Events
Conditions
Actions
Unit - Create 1 . Barrel of explosion for (Triggering player) at TimeBombLocations[0] facing Default building facing degrees
Set Variable Set CV_Count = (CV_Count + 1)
Unit - Set the custom value of (Last created unit) to CV_Count
Set Variable Set TimeBomb[CV_Count] = (Integer(TimeBomeIntegers[2]))
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.