- Joined
- Aug 12, 2008
- Messages
- 350
The triggers below seemed to not MUI. But why?
Is there any problems with the triggers @@?
[trigger=Map INIT]Map Initialization
Events
Map initialization
Conditions
Actions
Set T_effect_float = Abilities\Spells\Other\Drain\ManaDrainTarget.mdl
Set T_effect_end = Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
[/trigger]
Events
Map initialization
Conditions
Actions
Set T_effect_float = Abilities\Spells\Other\Drain\ManaDrainTarget.mdl
Set T_effect_end = Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
[/trigger]
[trigger=T cast]T cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Telekinesis
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Equal to 0
Then - Actions
Trigger - Turn on T loop <gen>
Else - Actions
Set T_casternumber = (T_casternumber + 1)
Set T_index_selected = False
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_dyn_index Less than T_index
T_index_clear[T_dyn_index] Equal to True
T_dyn_index Not equal to 0
Then - Actions
Set T_index_selected = True
Else - Actions
For each (Integer T_Integer_dyn_check) from 1 to T_index, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_index_selected Equal to False
T_index_clear[T_Integer_dyn_check] Equal to True
Then - Actions
Set T_dyn_index = T_Integer_dyn_check
Set T_index_selected = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_index_selected Equal to False
Then - Actions
Set T_index = (T_index + 1)
Set T_dyn_index = T_index
Else - Actions
Set T_index_clear[T_dyn_index] = False
Set T_caster[T_dyn_index] = (Triggering unit)
Set T_count[T_dyn_index] = 0.00
Set T_target[T_dyn_index] = (Target unit of ability being cast)
-------- -------------------------------------------------------------------------------------------------------------------------- --------
-------- The duration of float for the target unit --------
Set T_duration[T_dyn_index] = (1.50 + (0.50 x (Real((Level of Telekinesis for T_caster[T_dyn_index])))))
-------- -------------------------------------------------------------------------------------------------------------------------- --------
-------- Float height and speed --------
Set T_speed[T_dyn_index] = (Random real number between 125.00 and 225.00)
Set T_height[T_dyn_index] = (Random real number between 400.00 and 900.00)
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Unit - Add Crow Form to T_target[T_dyn_index]
Unit - Remove Crow Form from T_target[T_dyn_index]
Unit - Pause T_target[T_dyn_index]
Unit Group - Add T_target[T_dyn_index] to T_targetgroup
Animation - Change T_target[T_dyn_index] flying height to T_height[T_dyn_index] at T_speed[T_dyn_index]
[/trigger]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Telekinesis
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Equal to 0
Then - Actions
Trigger - Turn on T loop <gen>
Else - Actions
Set T_casternumber = (T_casternumber + 1)
Set T_index_selected = False
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_dyn_index Less than T_index
T_index_clear[T_dyn_index] Equal to True
T_dyn_index Not equal to 0
Then - Actions
Set T_index_selected = True
Else - Actions
For each (Integer T_Integer_dyn_check) from 1 to T_index, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_index_selected Equal to False
T_index_clear[T_Integer_dyn_check] Equal to True
Then - Actions
Set T_dyn_index = T_Integer_dyn_check
Set T_index_selected = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_index_selected Equal to False
Then - Actions
Set T_index = (T_index + 1)
Set T_dyn_index = T_index
Else - Actions
Set T_index_clear[T_dyn_index] = False
Set T_caster[T_dyn_index] = (Triggering unit)
Set T_count[T_dyn_index] = 0.00
Set T_target[T_dyn_index] = (Target unit of ability being cast)
-------- -------------------------------------------------------------------------------------------------------------------------- --------
-------- The duration of float for the target unit --------
Set T_duration[T_dyn_index] = (1.50 + (0.50 x (Real((Level of Telekinesis for T_caster[T_dyn_index])))))
-------- -------------------------------------------------------------------------------------------------------------------------- --------
-------- Float height and speed --------
Set T_speed[T_dyn_index] = (Random real number between 125.00 and 225.00)
Set T_height[T_dyn_index] = (Random real number between 400.00 and 900.00)
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Unit - Add Crow Form to T_target[T_dyn_index]
Unit - Remove Crow Form from T_target[T_dyn_index]
Unit - Pause T_target[T_dyn_index]
Unit Group - Add T_target[T_dyn_index] to T_targetgroup
Animation - Change T_target[T_dyn_index] flying height to T_height[T_dyn_index] at T_speed[T_dyn_index]
[/trigger]
[trigger=T loop]T loop
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
For each (Integer T_X) from 1 to T_index, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in T_targetgroup) Greater than 0
Then - Actions
Set T_count[T_X] = (T_count[T_X] + 0.05)
Unit Group - Pick every unit in T_targetgroup and do (Actions)
Loop - Actions
Special Effect - Create a special effect attached to the origin of T_target[T_X] using T_effect_float
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_count[T_X] Greater than or equal to T_duration[T_X]
Then - Actions
-------- -------------------------------------------------------------------------------------------------------------------------- --------
-------- Damage --------
Set T_damage[T_X] = ((Current flying height of T_target[T_X]) / 2.00)
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Animation - Change T_target[T_X] flying height to 0.00 at 1500.00
Set T_targetpoint[T_X] = (Position of T_target[T_X])
Special Effect - Create a special effect at T_targetpoint[T_X] using T_effect_end
Special Effect - Destroy (Last created special effect)
Unit - Cause T_caster[T_X] to damage T_target[T_X], dealing T_damage[T_X] damage of attack type Spells and damage type Normal
Unit Group - Remove T_target[T_X] from T_targetgroup
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Set T_casternumber = (T_casternumber - 1)
Set T_index_clear[T_X] = True
-------- -------------------------------------------------------------------------------------------------------------------------- --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_index_selected Equal to False
Then - Actions
Set T_dyn_index = T_X
Set T_index_selected = True
Else - Actions
-------- -------------------------------------------------------------------------------------------------------------------------- --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Not equal to 0
T_X Equal to T_index
Then - Actions
Set T_index = (T_index - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Equal to 0
Then - Actions
Set T_index = 0
Set T_dyn_index = 0
Trigger - Turn off (This trigger)
Else - Actions
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Not equal to 0
T_X Equal to T_index
Then - Actions
Set T_index = (T_index - 1)
Else - Actions
[/trigger]
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
For each (Integer T_X) from 1 to T_index, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in T_targetgroup) Greater than 0
Then - Actions
Set T_count[T_X] = (T_count[T_X] + 0.05)
Unit Group - Pick every unit in T_targetgroup and do (Actions)
Loop - Actions
Special Effect - Create a special effect attached to the origin of T_target[T_X] using T_effect_float
Special Effect - Destroy (Last created special effect)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_count[T_X] Greater than or equal to T_duration[T_X]
Then - Actions
-------- -------------------------------------------------------------------------------------------------------------------------- --------
-------- Damage --------
Set T_damage[T_X] = ((Current flying height of T_target[T_X]) / 2.00)
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Animation - Change T_target[T_X] flying height to 0.00 at 1500.00
Set T_targetpoint[T_X] = (Position of T_target[T_X])
Special Effect - Create a special effect at T_targetpoint[T_X] using T_effect_end
Special Effect - Destroy (Last created special effect)
Unit - Cause T_caster[T_X] to damage T_target[T_X], dealing T_damage[T_X] damage of attack type Spells and damage type Normal
Unit Group - Remove T_target[T_X] from T_targetgroup
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Set T_casternumber = (T_casternumber - 1)
Set T_index_clear[T_X] = True
-------- -------------------------------------------------------------------------------------------------------------------------- --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_index_selected Equal to False
Then - Actions
Set T_dyn_index = T_X
Set T_index_selected = True
Else - Actions
-------- -------------------------------------------------------------------------------------------------------------------------- --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Not equal to 0
T_X Equal to T_index
Then - Actions
Set T_index = (T_index - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Equal to 0
Then - Actions
Set T_index = 0
Set T_dyn_index = 0
Trigger - Turn off (This trigger)
Else - Actions
-------- -------------------------------------------------------------------------------------------------------------------------- --------
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
T_casternumber Not equal to 0
T_X Equal to T_index
Then - Actions
Set T_index = (T_index - 1)
Else - Actions
[/trigger]
Is there any problems with the triggers @@?