• 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.

[Trigger] Endo/Exo Help

Status
Not open for further replies.
Im having some bug issues with this trigger. What i want is that the caster casts the ability and the damage dealt to the targeted unit is equal to "75 x the number of units around the targeted unit".

  • ENDOEXO
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Exothermic/Endothermic
    • Actions
      • Set ENDOEXOran = (Random integer number between 1 and 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ENDOEXOran Equal to 1
        • Then - Actions
          • Region - Center ENDOEXO Region <gen> on (Position of (Target unit of ability being cast))
          • Player Group - Pick every player in (All enemies of (Owner of (Casting unit))) and do (Actions)
            • Loop - Actions
              • Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (ENDOEXO Region <gen> contains (Picked unit)) Equal to False
                    • Then - Actions
                      • Skip remaining actions
                    • Else - Actions
          • Player Group - Pick every player in (All enemies of (Owner of (Casting unit))) and do (Actions)
            • Loop - Actions
              • Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Picked unit) Not equal to (Target unit of ability being cast))) and do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (ENDOEXO Region <gen> contains (Picked unit)) Equal to True
                    • Then - Actions
                      • Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius (Width of ENDOEXO Region <gen>) at (Center of ENDOEXO Region <gen>), dealing 75.00 damage of attack type Magic and damage type Cold
                      • Set numofunits2 = (Number of units in (Units owned by (Picked player) matching ((Picked unit) Not equal to (Target unit of ability being cast))))
                    • Else - Actions
          • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real(numofunits2)) x 75.00) damage of attack type Spells and damage type Fire
          • Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
        • Else - Actions
If someone could help me that would be great!!
Thanks
 
Level 7
Joined
Jun 16, 2008
Messages
253
Out of curiosity, why does ENDOEXOran = (Random integer between 1 and 1)? Why don't you just put 1?
 
Level 7
Joined
Jun 16, 2008
Messages
253
You're a crazy person! o.0

Well all I know is that I had problems with the Worldedit recognising the cast ability thing, but it would pick up on channeling one. But that was on an earlier patch. If you have latest one, then that can't be it.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
That trigger is generally junk.
You need to do these:
Set a group variable =every unit in some range of triggering unit matching some condition. Or use some of the other ways of putting units in a group.
Conditions must include matching unit is not equal to triggering unit and may include some other stuff like is alive etc.
Than:
Cause triggering unit to damage target of ability being cast for 75*Unit count of units in group(the group) blablabla.
 
Level 3
Joined
May 12, 2006
Messages
31
Vampireheart what is the problem with your trigger? By they way, its a 'little bit' chaotic, and a lot-working trigger. There are also some bugs in this trigger. For example, the 2nd player group trigger is not in the else - actions...
The selection of units should be only in that region, not on the full map, and you don't need a rect variable. -> position of unit with offset, or something like this. You can configure a rect that you want. -> and make this a rect maybe
the units: pick every unit in the 'rect' (or you hould use x radius position of targeted unit) with condition: unit belongs to enemy of casting player.
this catches all the enemy units in the area.
Then remove the target unit.
and now you can damage them...

by the way spiwn says also the right way.
 
Status
Not open for further replies.
Top