Why this trigger does not work

Fhxy

New Member
Reaction score
1
Code:
Horrifying Possession
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Horrifing Possession (LOA)
    Actions
        Set TempLoc[1] = (Position of (Triggering unit))
        Set TempGroup[1] = (Random 10 units from (Units within 1000.00 of TempLoc[1] matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))))
        Unit - Create 1 Dummy Caster (Common) for (Owner of (Triggering unit)) at TempLoc[1] facing Default building facing degrees
        Unit - Add Horrifying Possession  to (Last created unit)
        Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
        Unit Group - Pick every unit in TempGroup[1] and do (Actions)
            Loop - Actions
                Unit - Order (Last created unit) to Orc Shadow Hunter - Hex (Picked unit)
        Custom script:   call DestroyGroup(udg_TempGroup[1])
        Custom script:   call RemoveLocation(udg_TempLoc[1])

it only can hex 1 unit
 

Septimus

New Member
Reaction score
58
From what I seen from your trigger, it seem like there is only 1 dummy for it. This could be the reason of why your spell only able to hext 1 unit perhaps.

Also, can your spell hex a structure ? :confused:
 

Fhxy

New Member
Reaction score
1
From what I seen from your trigger, it seem like there is only 1 dummy for it. This could be the reason of why your spell only able to hext 1 unit perhaps.

Also, can your spell hex a structure ? :confused:
Code:
Horrifying Possession
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Horrifing Possession (LOA)
    Actions
        Set TempLoc[1] = (Position of (Triggering unit))
        Set TempGroup[1] = (Random 10 units from (Units within 1000.00 of TempLoc[1] matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))))
        Unit Group - Pick every unit in TempGroup[1] and do (Actions)
            Loop - Actions
                Unit - Create 1 Dummy Caster (Common) for (Owner of (Triggering unit)) at TempLoc[1] facing Default building facing degrees
                Unit - Add Horrifying Possession  to (Last created unit)
                Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                Unit - Order (Last created unit) to Orc Shadow Hunter - Hex (Picked unit)
        Custom script:   call DestroyGroup(udg_TempGroup[1])
        Custom script:   call RemoveLocation(udg_TempLoc[1])

this also does not work
 

Fhxy

New Member
Reaction score
1
Try increasing the expiration timer to 2.00 seconds. Maybe the dummies don't have enough time to cast

i can only hex 1 unit......so the dummy exactly cast the ability but i think is the group thing wrong ?
 

vypur85

Hibernate
Reaction score
803
Nothing's wrong with your trigger (except it leaks one Unit Group). So, it should be Object Editor problem. Try re-checking all OE stats.

Also, can your spell hex a structure ?
Does it? It is indeed meant for building right? Or did you forgot to change the 'True' to 'False'.

Check 'Targets allowed' for the Hex. Make sure it's correct.

What player is casting the ability? User controlled or Computer controlled?
 

Fhxy

New Member
Reaction score
1
Nothing's wrong with your trigger (except it leaks one Unit Group). So, it should be Object Editor problem. Try re-checking all OE stats.


Does it? It is indeed meant for building right? Or did you forgot to change the 'True' to 'False'.

Check 'Targets allowed' for the Hex. Make sure it's correct.

What player is casting the ability? User controlled or Computer controlled?

targets allowed :air,ground,enemy,organic,neutral
player is casting the ability
if this trigger does not work , can some1 help me create the spell
concept is mass hex

random 10 units around the casting hero
thanks
i believe it is very simple
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top