laxperson808
New Member
- Reaction score
- 9
Trigger:
- Mining Get Ores
- Events
- Unit - A unit Begins casting an ability
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Ability being cast) Equal to Mine (ele)(0 cating)
- (Ability being cast) Equal to Mine (lvl 1)(8 cating)
- (Ability being cast) Equal to Mine (lvl 2)(6 cating)
- (Ability being cast) Equal to Mine (lvl 4)(2 cating)
- (Ability being cast) Equal to Mine (lvl 3)(4 cating)
- Conditions
- Or - Any (Conditions) are true
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Target unit of ability being cast) is in Cant_Mine_unit_group) Equal to True
- Then - Actions
- Game - Display to (Player group((Owner of (Casting unit)))) the text: There is no ore in ...
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 10) Less than 3
- Then - Actions
- Game - Display to (Player group((Owner of (Casting unit)))) the text: You failed to mine
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Target unit of ability being cast)) Equal to Pile of Rocks (iron)
- Then - Actions
- Hero - Create Iron Ore and give it to (Casting unit)
- Set Ore_unit[(Custom value of (Target unit of ability being cast))] = (Target unit of ability being cast)
- Unit Group - Add (Target unit of ability being cast) to Cant_Mine_unit_group
- Animation - Change (Target unit of ability being cast)'s vertex coloring to (60.00%, 60.00%, 60.00%) with 0.00% transparency
- Wait 5.00 seconds
- Animation - Change Ore_unit[(Custom value of (Target unit of ability being cast))]'s vertex coloring to (40.00%, 40.00%, 40.00%) with 0.00% transparency
- Unit Group - Remove Ore_unit[(Custom value of (Target unit of ability being cast))] from Cant_Mine_unit_group
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
When i run the trigger it does everything until the wait. After the wait the next 2 actions don't work.... WHY?
(respawn time is short for easy tests..)