• 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] Two Questions.

Status
Not open for further replies.
Level 6
Joined
May 31, 2008
Messages
218
The first one is, the range you can determine in object editor, like range of a unit or aoe of a spell. Is that the same range system you use in triggers? Like:
  • Set illusiongroup = (Units within 100.00 of illusionpoint matching ((Owner of (Matching unit)) Equal to (==) Player 2 (Blue)))
Is that 100 range the same as 100 in aoe or attack range for a unit?

The second question is, why is not this trigger working? It seems so easy, but for some reason the unit is not responding to the order that he should create the illusion. And i choose the right use order aswell.
  • Illusions
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Soul Warriors (KINGDOM)
    • Actions
      • Set abilitylevel = (Level of Soul Warriors (KINGDOM) for (Triggering unit))
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • abilitylevel Equal to (==) 1
          • Then - Actions
            • Set illusionpoint = (Target point of ability being cast)
            • Set illusiongroup = (Units within 100.00 of illusionpoint matching ((Owner of (Matching unit)) Equal to (==) Player 2 (Blue)))
            • Custom script: call RemoveLocation (udg_illusionpoint)
            • Unit Group - Pick every unit in illusiongroup and do (Actions)
              • Loop - Actions
                • Set illusionpoint = (Position of (Picked unit))
                • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at illusionpoint facing Default building facing (270.0) degrees
                • Unit - Add Illusions Trigger (KINGDOM) to (Last created unit)
                • Unit - Set level of Illusions Trigger (KINGDOM) for (Last created unit) to 1
                • Unit - Order (Last created unit) to Neutral Pit Lord - Doom (Picked unit)
                • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                • Custom script: call RemoveLocation (udg_bloodpoint)
            • Custom script: call DestroyGroup (udg_illusiongroup)
          • Else - Actions
 
Level 6
Joined
May 31, 2008
Messages
218
1) It's the same. 100.00 attack range is for a melee unit of course.

2) Increase the radius. 100 is way too low, try 180 or more.

But the aoe for the spell is 100, and then i thought if i put it at 100 on trigger aswell it would be the same, aka i see the same units that can be affected by the spell which also can become "illusioned".
But ima try with a lot bigger area and see what happens^^

Not working at all >.>
I have no clue at all why it's not working.
 
Level 6
Joined
May 31, 2008
Messages
218
Oh lol, i thought you could use any order at all, the spell i want to use is illusion, which is obviously based on illusion that you have for item^^
But it didn't have a order command, so i just gave it a random one.
I need to use the item itself?
 
Level 6
Joined
May 31, 2008
Messages
218
No, set the order id back to normal and swap the line "Unit - Order (Last created unit) to .." with the following one:
  • Custom script: call IssueTargetOrderById (GetLastCreatedUnit(), 852274, GetEnumUnit())
Make sure that your targets allowed are Enemy in your Illusions ability.

Woha!
Worked like a charm, but this is not for enemies, and may i ask where you got those lines from? Might come in handy in the future.
 
Status
Not open for further replies.
Top