• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] A help, please

Status
Not open for further replies.
Level 12
Joined
Dec 25, 2010
Messages
972
I wish to do a spell ability called Power Fuel which does the same as the Supply Vehicle/V2 Symbiosis from Valkyria Chronicles 2. and for that comes these passives: Power fuel (Arcane Knights, A Super heavy mage unit/Champion, one of the four heroes) and Power Feed (Supply Vehicle, weak armored unit that is a strong peasant harasser).
I want to do this myself and if possible if you guys can give me not only tips on how to do it in both vJASS and GUI to make it MUI i'll thank you.
 
Level 12
Joined
Dec 25, 2010
Messages
972
So from what I get from briefly reading the links, these Supply Vehicles give out a buff (Shoot Lasers & Make Shields) to nearby specific units and when the Supply Vehicles die, these specific units become crippled?

No.
The Buffs that the Supply Vehicles gives are increased damage that the Arcane Knights/Arcane Champion deals, Damage reduction and access to their abilities (not for the Arcane Champion, because he is a hero), if you put it in warcraft 3 terms ofc. If the Supply Vehicle Gets Destroyed. Then The Arcane Knights lose the bonuses, loses the capability of using the Abilities (Arcane Champion is an Exception) and they deal 10% less damage than other Super Heavy Units
 
Level 10
Joined
Apr 4, 2010
Messages
509
Can you explain me How it is set?

Ignore my previous test map, this one is better.
  • Power Fuel Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set PF_Range = 500.00
      • Set PF_UnitType[1] = Footman
      • Set PF_UnitType[2] = Paladin
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • -------- Setting variables, only Paladins and Footman are affected by the buff. Aura has 500 AoE --------
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to PF_UnitType[1])) and do (Actions)
        • Loop - Actions
          • Set PF_TempPoint = (Position of (Picked unit))
          • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
          • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
          • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
          • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
          • Unit Group - Add (Picked unit) to PF_NegBuffGroup
          • Custom script: call RemoveLocation (udg_PF_TempPoint)
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • -------- Making all Footman lose bonuses and unable to cast spells --------
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • Unit - Create 1 Siege Engine for Player 1 (Red) at (Center of (Entire map)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to PF_AuraGroup
      • Unit - Create 1 Siege Engine for Player 1 (Red) at (Center of (Entire map)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to PF_AuraGroup
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • -------- Creating Aura Units --------
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • Trigger - Turn on Power Fuel Loop <gen>
  • Power Fuel Loop
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in PF_AuraGroup and do (Actions)
        • Loop - Actions
          • Set PF_Unit = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PF_Unit is dead) Equal to True
            • Then - Actions
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • -------- Checking If Aura Unit dead, if he is all units that are not in range of a Power Fuel Unit will lose it's bonuses . --------
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • Unit Group - Remove PF_Unit from PF_AuraGroup
              • Unit Group - Pick every unit in PF_BuffGroup and do (Actions)
                • Loop - Actions
                  • Set PF_TempPoint = (Position of (Picked unit))
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Number of units in (Units within PF_Range of PF_TempPoint matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in PF_AuraGroup) Equal to True)) and ((Owner of (Matching unit)) Equal to (Owner of (Picked unit)))))) Equal to 0
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) is A Hero) Equal to True
                        • Then - Actions
                          • Unit - Remove Power Fuel buff from (Picked unit)
                        • Else - Actions
                          • Unit - Remove Power Fuel buff from (Picked unit)
                          • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                          • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                          • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
                          • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
                          • Unit Group - Remove (Picked unit) from PF_BuffGroup
                          • Unit Group - Add (Picked unit) to PF_NegBuffGroup
                    • Else - Actions
                  • Custom script: call RemoveLocation (udg_PF_TempPoint)
            • Else - Actions
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • -------- Searching for unit's that can have the buff. --------
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • Set PF_TempPoint = (Position of PF_Unit)
              • Set PF_TempGroup = (Units within PF_Range of PF_TempPoint matching ((((Matching unit) is in PF_BuffGroup) Equal to False) and (((Owner of (Matching unit)) Equal to (Owner of PF_Unit)) and ((((Matching unit) is alive) Equal to True) and (((Unit-type of (Matching unit)) Equal to
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PF_TempGroup is empty) Not equal to True
                • Then - Actions
                  • Unit Group - Pick every unit in PF_TempGroup and do (Actions)
                    • Loop - Actions
                      • Unit - Remove Power Fuel (Negative Effect) buff from (Picked unit)
                      • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                      • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                      • Unit - Add Power Fuel (Buff) to (Last created unit)
                      • Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
                • Else - Actions
              • Unit Group - Add all units of PF_TempGroup to PF_BuffGroup
              • Custom script: call DestroyGroup (udg_PF_TempGroup)
              • Custom script: call RemoveLocation (udg_PF_TempPoint)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PF_BuffGroup is empty) Not equal to True
                • Then - Actions
                  • Unit Group - Pick every unit in PF_BuffGroup and do (Actions)
                    • Loop - Actions
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • -------- Checking buff unit is still within range of a Power Fuel, if not, the unit will get negative buff. If he is in range, but doesn't have the buff, then give him the buff, this is to prevent Purge and Abolish Magic --------
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • Set PF_TempPoint = (Position of (Picked unit))
                      • Set PF_TempGroup = (Random 1 units from (Units within PF_Range of PF_TempPoint matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in PF_AuraGroup) Equal to True)) and ((Owner of (Matching unit)) Equal to (Owner of (Picked unit))))))
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (PF_TempGroup is empty) Equal to True
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) is A Hero) Equal to True
                            • Then - Actions
                              • Unit - Remove Power Fuel buff from (Picked unit)
                            • Else - Actions
                              • Unit - Remove Power Fuel buff from (Picked unit)
                              • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                              • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                              • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
                              • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
                              • Unit Group - Remove (Picked unit) from PF_BuffGroup
                              • Unit Group - Add (Picked unit) to PF_NegBuffGroup
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • And - All (Conditions) are true
                                    • Conditions
                                      • (PF_AuraGroup is empty) Equal to True
                                      • (PF_BuffGroup is empty) Equal to True
                                      • (PF_NegBuffGroup is empty) Equal to True
                                • Then - Actions
                                  • Trigger - Turn off (This trigger)
                                • Else - Actions
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) has buff Power Fuel ) Equal to False
                            • Then - Actions
                              • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                              • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                              • Unit - Add Power Fuel (Buff) to (Last created unit)
                              • Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
                            • Else - Actions
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • -------- Checking if unit is dead and checking if this trigger still needs to be on. --------
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) is dead) Equal to True
                        • Then - Actions
                          • Unit Group - Remove (Picked unit) from PF_BuffGroup
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • And - All (Conditions) are true
                                • Conditions
                                  • (PF_AuraGroup is empty) Equal to True
                                  • (PF_BuffGroup is empty) Equal to True
                                  • (PF_NegBuffGroup is empty) Equal to True
                            • Then - Actions
                              • Trigger - Turn off (This trigger)
                            • Else - Actions
                        • Else - Actions
                      • Custom script: call RemoveLocation (udg_PF_TempPoint)
                      • Custom script: call DestroyGroup (udg_PF_TempGroup)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PF_NegBuffGroup is empty) Not equal to True
                • Then - Actions
                  • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                  • -------- Checking if buff unit is not within range of a Power Fuel, if true, the unit will get negative buff if he is missing the buff, this is prevent Purge and Abolish Maigc. --------
                  • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                  • Unit Group - Pick every unit in PF_NegBuffGroup and do (Actions)
                    • Loop - Actions
                      • Set PF_TempPoint = (Position of (Picked unit))
                      • Set PF_TempGroup = (Random 1 units from (Units within PF_Range of PF_TempPoint matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in PF_AuraGroup) Equal to True)) and ((Owner of (Matching unit)) Equal to (Owner of (Picked unit))))))
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (PF_TempGroup is empty) Equal to True
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) has buff Power Fuel (Negative Effect)) Not equal to True
                            • Then - Actions
                              • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                              • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                              • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
                              • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
                            • Else - Actions
                        • Else - Actions
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • -------- Checking if unit is dead and checking if this trigger still needs to be on. --------
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) is dead) Equal to True
                        • Then - Actions
                          • Unit Group - Remove (Picked unit) from PF_NegBuffGroup
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • And - All (Conditions) are true
                                • Conditions
                                  • (PF_AuraGroup is empty) Equal to True
                                  • (PF_BuffGroup is empty) Equal to True
                                  • (PF_NegBuffGroup is empty) Equal to True
                            • Then - Actions
                              • Trigger - Turn off (This trigger)
                            • Else - Actions
                        • Else - Actions
                      • Custom script: call RemoveLocation (udg_PF_TempPoint)
                      • Custom script: call DestroyGroup (udg_PF_TempGroup)
                • Else - Actions
 

Attachments

  • PowerFuel V1.w3x
    26.1 KB · Views: 155
Level 12
Joined
Dec 25, 2010
Messages
972
Ignore my previous test map, this one is better.
  • Power Fuel Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set PF_Range = 500.00
      • Set PF_UnitType[1] = Footman
      • Set PF_UnitType[2] = Paladin
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • -------- Setting variables, only Paladins and Footman are affected by the buff. Aura has 500 AoE --------
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to PF_UnitType[1])) and do (Actions)
        • Loop - Actions
          • Set PF_TempPoint = (Position of (Picked unit))
          • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
          • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
          • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
          • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
          • Unit Group - Add (Picked unit) to PF_NegBuffGroup
          • Custom script: call RemoveLocation (udg_PF_TempPoint)
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • -------- Making all Footman lose bonuses and unable to cast spells --------
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • Unit - Create 1 Siege Engine for Player 1 (Red) at (Center of (Entire map)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to PF_AuraGroup
      • Unit - Create 1 Siege Engine for Player 1 (Red) at (Center of (Entire map)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to PF_AuraGroup
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • -------- Creating Aura Units --------
      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
      • Trigger - Turn on Power Fuel Loop <gen>
  • Power Fuel Loop
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in PF_AuraGroup and do (Actions)
        • Loop - Actions
          • Set PF_Unit = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PF_Unit is dead) Equal to True
            • Then - Actions
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • -------- Checking If Aura Unit dead, if he is all units that are not in range of a Power Fuel Unit will lose it's bonuses . --------
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • Unit Group - Remove PF_Unit from PF_AuraGroup
              • Unit Group - Pick every unit in PF_BuffGroup and do (Actions)
                • Loop - Actions
                  • Set PF_TempPoint = (Position of (Picked unit))
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Number of units in (Units within PF_Range of PF_TempPoint matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in PF_AuraGroup) Equal to True)) and ((Owner of (Matching unit)) Equal to (Owner of (Picked unit)))))) Equal to 0
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) is A Hero) Equal to True
                        • Then - Actions
                          • Unit - Remove Power Fuel buff from (Picked unit)
                        • Else - Actions
                          • Unit - Remove Power Fuel buff from (Picked unit)
                          • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                          • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                          • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
                          • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
                          • Unit Group - Remove (Picked unit) from PF_BuffGroup
                          • Unit Group - Add (Picked unit) to PF_NegBuffGroup
                    • Else - Actions
                  • Custom script: call RemoveLocation (udg_PF_TempPoint)
            • Else - Actions
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • -------- Searching for unit's that can have the buff. --------
              • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
              • Set PF_TempPoint = (Position of PF_Unit)
              • Set PF_TempGroup = (Units within PF_Range of PF_TempPoint matching ((((Matching unit) is in PF_BuffGroup) Equal to False) and (((Owner of (Matching unit)) Equal to (Owner of PF_Unit)) and ((((Matching unit) is alive) Equal to True) and (((Unit-type of (Matching unit)) Equal to
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PF_TempGroup is empty) Not equal to True
                • Then - Actions
                  • Unit Group - Pick every unit in PF_TempGroup and do (Actions)
                    • Loop - Actions
                      • Unit - Remove Power Fuel (Negative Effect) buff from (Picked unit)
                      • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                      • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                      • Unit - Add Power Fuel (Buff) to (Last created unit)
                      • Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
                • Else - Actions
              • Unit Group - Add all units of PF_TempGroup to PF_BuffGroup
              • Custom script: call DestroyGroup (udg_PF_TempGroup)
              • Custom script: call RemoveLocation (udg_PF_TempPoint)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PF_BuffGroup is empty) Not equal to True
                • Then - Actions
                  • Unit Group - Pick every unit in PF_BuffGroup and do (Actions)
                    • Loop - Actions
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • -------- Checking buff unit is still within range of a Power Fuel, if not, the unit will get negative buff. If he is in range, but doesn't have the buff, then give him the buff, this is to prevent Purge and Abolish Magic --------
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • Set PF_TempPoint = (Position of (Picked unit))
                      • Set PF_TempGroup = (Random 1 units from (Units within PF_Range of PF_TempPoint matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in PF_AuraGroup) Equal to True)) and ((Owner of (Matching unit)) Equal to (Owner of (Picked unit))))))
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (PF_TempGroup is empty) Equal to True
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) is A Hero) Equal to True
                            • Then - Actions
                              • Unit - Remove Power Fuel buff from (Picked unit)
                            • Else - Actions
                              • Unit - Remove Power Fuel buff from (Picked unit)
                              • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                              • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                              • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
                              • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
                              • Unit Group - Remove (Picked unit) from PF_BuffGroup
                              • Unit Group - Add (Picked unit) to PF_NegBuffGroup
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • And - All (Conditions) are true
                                    • Conditions
                                      • (PF_AuraGroup is empty) Equal to True
                                      • (PF_BuffGroup is empty) Equal to True
                                      • (PF_NegBuffGroup is empty) Equal to True
                                • Then - Actions
                                  • Trigger - Turn off (This trigger)
                                • Else - Actions
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) has buff Power Fuel ) Equal to False
                            • Then - Actions
                              • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                              • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                              • Unit - Add Power Fuel (Buff) to (Last created unit)
                              • Unit - Order (Last created unit) to Human Priest - Inner Fire (Picked unit)
                            • Else - Actions
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • -------- Checking if unit is dead and checking if this trigger still needs to be on. --------
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) is dead) Equal to True
                        • Then - Actions
                          • Unit Group - Remove (Picked unit) from PF_BuffGroup
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • And - All (Conditions) are true
                                • Conditions
                                  • (PF_AuraGroup is empty) Equal to True
                                  • (PF_BuffGroup is empty) Equal to True
                                  • (PF_NegBuffGroup is empty) Equal to True
                            • Then - Actions
                              • Trigger - Turn off (This trigger)
                            • Else - Actions
                        • Else - Actions
                      • Custom script: call RemoveLocation (udg_PF_TempPoint)
                      • Custom script: call DestroyGroup (udg_PF_TempGroup)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (PF_NegBuffGroup is empty) Not equal to True
                • Then - Actions
                  • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                  • -------- Checking if buff unit is not within range of a Power Fuel, if true, the unit will get negative buff if he is missing the buff, this is prevent Purge and Abolish Maigc. --------
                  • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                  • Unit Group - Pick every unit in PF_NegBuffGroup and do (Actions)
                    • Loop - Actions
                      • Set PF_TempPoint = (Position of (Picked unit))
                      • Set PF_TempGroup = (Random 1 units from (Units within PF_Range of PF_TempPoint matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in PF_AuraGroup) Equal to True)) and ((Owner of (Matching unit)) Equal to (Owner of (Picked unit))))))
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (PF_TempGroup is empty) Equal to True
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • ((Picked unit) has buff Power Fuel (Negative Effect)) Not equal to True
                            • Then - Actions
                              • Unit - Create 1 Dummy for (Owner of (Picked unit)) at PF_TempPoint facing Default building facing degrees
                              • Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
                              • Unit - Add Power Fuel (Negative Effect) to (Last created unit)
                              • Unit - Order (Last created unit) to Neutral Dark Ranger - Silence PF_TempPoint
                            • Else - Actions
                        • Else - Actions
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • -------- Checking if unit is dead and checking if this trigger still needs to be on. --------
                      • -------- -------------------------------------------------------------------------------------------------------------------------------------------------------------- --------
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • ((Picked unit) is dead) Equal to True
                        • Then - Actions
                          • Unit Group - Remove (Picked unit) from PF_NegBuffGroup
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • And - All (Conditions) are true
                                • Conditions
                                  • (PF_AuraGroup is empty) Equal to True
                                  • (PF_BuffGroup is empty) Equal to True
                                  • (PF_NegBuffGroup is empty) Equal to True
                            • Then - Actions
                              • Trigger - Turn off (This trigger)
                            • Else - Actions
                        • Else - Actions
                      • Custom script: call RemoveLocation (udg_PF_TempPoint)
                      • Custom script: call DestroyGroup (udg_PF_TempGroup)
                • Else - Actions

ok then
This one looks even better
nice one
 
Status
Not open for further replies.
Top