Help with a Couple Triggers

ImmortaL_GoD

New Member
Reaction score
4
No idea why these two triggers won't work:

Code:
Eowyn Bane
    Events
        Unit - A unit Is attacked
    Conditions
        (Attacking unit) Equal to Lady of the Mark 0093 <gen>
        Or - Any (Conditions) are true
            Conditions
                (Attacked unit) Equal to Er-Murâzor 0145 <gen>
                (Attacked unit) Equal to Second of the Nine 0137 <gen>
                (Attacked unit) Equal to Third of the Nine 0138 <gen>
                (Attacked unit) Equal to Fourth of the Nine 0139 <gen>
                (Attacked unit) Equal to Fifth of the Nine 0140 <gen>
                (Attacked unit) Equal to Sixth of the Nine 0141 <gen>
                (Attacked unit) Equal to Seventh of the Nine 0142 <gen>
                (Attacked unit) Equal to Eighth of the Nine 0143 <gen>
                (Attacked unit) Equal to Ninth of the Nine 0144 <gen>
    Actions
        Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 50.00 damage of attack type Magic and damage type Normal
        Unit - Set (Triggering unit) movement speed to 130.00
        Wait 3.00 seconds
        Unit - Set (Triggering unit) movement speed to (Default movement speed of (Triggering unit))

Code:
The Gray Company
    Events
        Unit - Halbarad Dunadan 0482 <gen> Begins casting an ability
    Conditions
        (Ability being cast) Equal to The Gray Company 
    Actions
        Unit - Create 12 Ranger of the Gray Company for Neutral Extra at temp_point facing (Facing of (Casting unit)) degrees
        Set temp_point = (Target point of ability being cast)
        Set temp_group = (Units owned by Neutral Extra)
        Unit Group - Pick every unit in temp_group and do (Actions)
            Loop - Actions
                Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
                Unit - Add a 10.00 second Generic expiration timer to (Picked unit)
                Unit - Change color of (Picked unit) to (Color of Player 9 (Gray))
                Unit - Order (Picked unit) to Attack-Move To temp_point
                Special Effect - Destroy (Last created special effect)
        Custom script: call DestroyGroup (udg_temp_group)
        Custom script: call RemoveLocation (udg_temp_point)

The first one there is no attack or slow. The second one, the unit casts, but no units appear, and it's based off Blizzard. =/
 

Azlier

Old World Ghost
Reaction score
461
For the second one, it may be because you create rangers at the temp point before you set it. As for the first one, I don't know what is going wrong, exactly. The first one should work, as far as I know.
 

ImmortaL_GoD

New Member
Reaction score
4
Nope, I had it the other way at first, then Accname told me to change it around for this particular trigger because of the Neutral Extra.
 

Azlier

Old World Ghost
Reaction score
461
Are the rangers being created at all? If so, they are definitely appearing at the center of the map. You really have to set the temp point then spawn the rangers.

Code:
    Actions
        Set temp_point = (Target point of ability being cast)
        Unit - Create 12 Ranger of the Gray Company for Neutral Extra at temp_point facing (Facing of (Casting unit)) degrees
        Set temp_group = (Units owned by Neutral Extra)
        Unit Group - Pick every unit in temp_group and do (Actions)
 

ImmortaL_GoD

New Member
Reaction score
4
Nope, just switched it around, still didn't appear.

Code:
The Gray Company
    Events
        Unit - Halbarad Dunadan 0482 <gen> Begins casting an ability
    Conditions
        (Ability being cast) Equal to The Gray Company 
    Actions
        Set temp_point = (Target point of ability being cast)
        Unit - Create 12 Ranger of the Gray Company for Neutral Extra at temp_point facing (Facing of (Casting unit)) degrees
        Set temp_group = (Units owned by Neutral Extra)
        Unit Group - Pick every unit in temp_group and do (Actions)
            Loop - Actions
                Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
                Unit - Add a 10.00 second Generic expiration timer to (Picked unit)
                Unit - Change color of (Picked unit) to (Color of Player 9 (Gray))
                Unit - Order (Picked unit) to Attack-Move To temp_point
                Special Effect - Destroy (Last created special effect)
        Custom script: call DestroyGroup (udg_temp_group)
        Custom script: call RemoveLocation (udg_temp_point)
 

Azlier

Old World Ghost
Reaction score
461
I just realized you cant use Begins casting an ability, you must use Starts the effect of an ability.
 

ImmortaL_GoD

New Member
Reaction score
4
Have tried that too =p. As well as switching the Neutral Extra to an actual player, and basically all kinds of events. I think it has something to do with the spell itself, although I have used blizzard as a base before to make this sort of spell.
 

Azlier

Old World Ghost
Reaction score
461
So, you tried Starts the effect of an ability AND setting the temp point first? And it still didn't work? I fear we may need someone with more experience in here.
 

ImmortaL_GoD

New Member
Reaction score
4
Yeah, maybe, but I dunno what it could possibly be.. the units won't even summon.

EDIT: Nevermind, I figured it out.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top