- Joined
- Jul 13, 2006
- Messages
- 140
So, I'm trying to make a trigger that uses an ability based on charm that only works on buildings and changes the affected building (if it's the right type) to another building.
Building do count as units in triggers right?
-
Ability
-
Events
- Unit - A unit Finishes casting an ability
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Ability
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Target unit of ability being cast)) Equal to Building1
- (Unit-type of (Target unit of ability being cast)) Equal to Building2
- (Unit-type of (Target unit of ability being cast)) Equal to Building3
-
Conditions
-
Then - Actions
- Unit - Replace (Target unit of ability being cast) with a Structure1 using The new unit's default life and mana
- Unit - Remove (Casting unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Ability
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Target unit of ability being cast)) Equal to Building4
- (Unit-type of (Target unit of ability being cast)) Equal to Building5
- (Unit-type of (Target unit of ability being cast)) Equal to Building6
- (Unit-type of (Target unit of ability being cast)) Equal to Building7
-
Conditions
-
Then - Actions
- Unit - Replace (Target unit of ability being cast) with a Structure2 using The new unit's default life and mana
- Unit - Remove (Casting unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Ability
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Target unit of ability being cast)) Equal to Building8
- (Unit-type of (Target unit of ability being cast)) Equal to Building9
- (Unit-type of (Target unit of ability being cast)) Equal to Building10
- (Unit-type of (Target unit of ability being cast)) Equal to Building11
-
Conditions
-
Then - Actions
- Unit - Replace (Target unit of ability being cast) with a Structure3 using The new unit's default life and mana
- Unit - Remove (Casting unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Ability
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Target unit of ability being cast)) Equal to Building12
- (Unit-type of (Target unit of ability being cast)) Equal to Building13
- (Unit-type of (Target unit of ability being cast)) Equal to Building14
- (Unit-type of (Target unit of ability being cast)) Equal to Building15
-
Conditions
-
Then - Actions
- Unit - Replace (Target unit of ability being cast) with a Structure4 using The new unit's default life and mana
- Unit - Remove (Casting unit) from the game
-
Else - Actions
- If ((Ability being cast) Equal to Ability ) then do (Unit - Remove (Casting unit) from the game) else do (Do nothing)
-
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)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Building do count as units in triggers right?