- Joined
- Jun 20, 2017
- Messages
- 380
I have an item that can damage some units, my problem is that it does random damage and not exactly the damage I wanted!
Ability: Deals 5000 damage to Walls, Blood Boxes and Workers.
Deals 2000 damage to other structures.
Area of Effect: 400.
Duration: 5 seconds.
Cooldown: 60 seconds.
Ability: Deals 5000 damage to Walls, Blood Boxes and Workers.
Deals 2000 damage to other structures.
Area of Effect: 400.
Duration: 5 seconds.
Cooldown: 60 seconds.
-
Rain of Blood
-
Events
-
Unit - A unit Uses an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Rain of Blood
-
-
Actions
-
Set VariableSet ROB_Unit = (Triggering unit)
-
Set VariableSet ROB_Player = (Owner of ROB_Unit)
-
-------- --------
-
-------- Setup Point. --------
-
Set VariableSet ROB_Point = (Position of ROB_Unit)
-
-------- --------
-
-------- Setup Dummy. --------
-
Unit - Create 1 [Dummy] Rain of Blood for ROB_Player at ROB_Point facing Default building facing degrees
-
Set VariableSet ROB_Dummy = (Last created unit)
-
Unit - Add Rain of Blood [Custom] Dummy to ROB_Dummy
-
Unit - Set level of Rain of Blood [Custom] Dummy for ROB_Dummy to (Level of Rain of Blood [Custom] Item for ROB_Unit)
-
-------- --------
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 400.00 of ROB_Point.) and do (Actions)
-
Loop - Actions
-
Set VariableSet ROB_PickedUnit = (Picked unit)
-
-------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(ROB_PickedUnit belongs to an enemy of ROB_Player.) Equal to True
-
(ROB_PickedUnit is alive) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of ROB_PickedUnit) Equal to Wall
-
(Unit-type of ROB_PickedUnit) Equal to Wall (2)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (3)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (4)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (5)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (6)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (7)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (8)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (9)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (10)
-
(Unit-type of ROB_PickedUnit) Equal to Wall (11)
-
(Unit-type of ROB_PickedUnit) Equal to Blood Box
-
(Unit-type of ROB_PickedUnit) Equal to Blood Box (2)
-
(Unit-type of ROB_PickedUnit) Equal to Blood Box (3)
-
(Unit-type of ROB_PickedUnit) Equal to Worker
-
(Unit-type of ROB_PickedUnit) Equal to Worker (2)
-
(Unit-type of ROB_PickedUnit) Equal to Worker (3)
-
(Unit-type of ROB_PickedUnit) Equal to Worker (4)
-
(Unit-type of ROB_PickedUnit) Equal to Worker (5)
-
-
-
-
-
-
Then - Actions
-
Unit - Order ROB_Dummy to Orc Tauren Chieftain - War Stomp.
-
Unit - Cause ROB_Unit to damage ROB_PickedUnit, dealing 5000.00 damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
-
-------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(ROB_PickedUnit belongs to an enemy of ROB_Player.) Equal to True
-
(ROB_PickedUnit is alive) Equal to True
-
(ROB_PickedUnit is A structure) Equal to True
-
-
Then - Actions
-
Unit - Order ROB_Dummy to Orc Tauren Chieftain - War Stomp.
-
Unit - Cause ROB_Unit to damage ROB_PickedUnit, dealing 2000.00 damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
-
-
-
-------- --------
-
Unit - Add a 1.00 second Generic expiration timer to ROB_Dummy
-
Custom script: call RemoveLocation(udg_ROB_Point)
-
-