NightKnight
Hosted Project RUID
- Joined
- Sep 3, 2014
- Messages
- 222
I am working on a project, "Demonic Rage 2.0" and as far I failed to make it MUI. I'm trying to learn and change some or many triggers.
Whats the problem in these triggers? (why does it pick every unit with no regard to the condition and to demonic_caster variable) and how to fix and the effects are permanent:
Whats the problem in these triggers? (why does it pick every unit with no regard to the condition and to demonic_caster variable) and how to fix and the effects are permanent:
-
Demonic Rage
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to DEMONIC RAGE
-
-
Actions
-
Set Demonic_Index = (Demonic_Index + 1)
-
Set Demonic_Counter[Demonic_Index] = 0.00
-
Set CasterDR[Demonic_Index] = (Triggering unit)
-
Set Demonic_Caster[Demonic_Index] = CasterDR[Demonic_Index]
-
Set TempPoint[Demonic_Index] = (Position of Demonic_Caster[Demonic_Index])
-
Custom script: set bj_wantDestroyGroup=true
-
-------- --------------------------------------------------------- --------
-
-------- Damage and AOE (area of effect) --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Demonic_Index Greater than or equal to 1
-
-
Then - Actions
-
Set Demonic_UnitGroup = (Units within Demonic_Radius of TempPoint[Demonic_Index])
-
Unit Group - Pick every unit in Demonic_UnitGroup and do (Actions)
-
Loop - Actions
-
Set Demonic_pickedunits = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Demonic_pickedunits is Magic Immune) Equal to False
-
(Demonic_pickedunits belongs to an enemy of (Owner of Demonic_Caster[Demonic_Index])) Equal to True
-
-
Then - Actions
-
Unit - Cause Demonic_Caster[Demonic_Index] to damage Demonic_pickedunits, dealing Demonic_Damage damage of attack type Chaos and damage type Universal
-
Custom script: call DestroyGroup(udg_Demonic_UnitGroup)
-
-------- --------------------------------------------------------- --------
-
-------- Those first 8 actions is for the effect (Dummies) --------
-
-
Unit - Create 1 Dummy (small) for Neutral Passive at TempPoint[Demonic_Index] facing Default building facing degrees
-
Unit - Add a Demonic_Effectdummies_timer second Generic expiration timer to (Last created unit)
-
-
Unit - Create 1 Dummy (big) for Neutral Passive at TempPoint[Demonic_Index] facing Default building facing degrees
-
Unit - Add a Demonic_Effectdummies_timer second Generic expiration timer to (Last created unit)
-
-
Unit - Create 1 Dummy (crono) for Neutral Passive at TempPoint[Demonic_Index] facing Default building facing degrees
-
Unit - Add a Demonic_Effectdummies_timer second Generic expiration timer to (Last created unit)
-
-
Unit - Create 1 Dummy2 (raising skull/howl) for Neutral Passive at TempPoint[Demonic_Index] facing Default building facing degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
-------- Demonic Rage Str gained --------
-
Hero - Modify Strength of Demonic_Caster[Demonic_Index]: Add Demonic_Strength_Gained
-
Hero - Modify Agility of Demonic_Caster[Demonic_Index]: Add Demonic_Agility_Gained
-
Trigger - Turn on pos test <gen>
-
Trigger - Turn on Demonic Loop Config <gen>
-
Trigger - Turn on test <gen>
-
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
-
[trigger]
-
pos test
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy (small) for Player 1 (Red) at ((Position of (Picked unit)) offset by (0.00, 0.00)) facing Default building facing degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
-
-
-
-
-
[trigger]
-
test
-
Events
-
Time - Every 4.00 seconds of game time
-
-
Conditions
-
Demonic_Index Greater than or equal to 2
-
-
Actions
-
Game - Display to (All allies of (Owner of Demonic_Caster[Demonic_Index])) for 2.00 seconds the text: yep!
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of Demonic_Caster[Demonic_Index])) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked unit) Equal to Demonic_Caster[Demonic_Index]
-
-
Then - Actions
-
Unit - Create 1 Dummy (small) for Neutral Passive at ((Position of (Picked unit)) offset by (0.00, 0.00)) facing Default building facing degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
-
-
Else - Actions
-
Unit - Kill (Picked unit)
-
-
-
-
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
-
Loop - Actions
-
-
Trigger - Turn on test2 <gen>
-
-
-
-
-----------------------------------------
-
condition isnt working
-
----------------------------------------------
-
[trigger]
-
test
-
Events
-
Time - Every 4.00 seconds of game time
-
-
Conditions
-
Demonic_Index Greater than or equal to 2
-
-
Actions
-
Game - Display to (All allies of (Owner of Demonic_Caster[Demonic_Index])) for 2.00 seconds the text: yep!
-
Unit Group - Pick every unit in (Units in (Playable map area) owned by (Owner of Demonic_Caster[Demonic_Index])) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked unit) Equal to Demonic_Caster[Demonic_Index]
-
-
Then - Actions
-
Unit - Create 1 Dummy (small) for Neutral Passive at ((Position of (Picked unit)) offset by (0.00, 0.00)) facing Default building facing degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
-
-
Else - Actions
-
Unit - Kill (Picked unit)
-
-
-
-
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
-
Loop - Actions
-
-
Trigger - Turn on test2 <gen>
-
-
-
-
[trigger]
-
test2
-
Events
-
Time - Every 8.00 seconds of game time
-
-
Conditions
-
Demonic_Index Equal to 4
-
-
Actions
-
Game - Display to (All players) for 8.00 seconds the text: 46521
-
-
-
[trigger/]