• 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] Can't figgure out what's wrong

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
133
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to The Spell
  • Actions
    • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
    • Unit Group - Add (Last created unit) to Group
    • Unit Group - Pick every unit in Group and do (Actions)
      • Loop - Actions
        • Unit - Order (Picked unit) to Special Archimonde - Rain Of Chaos (Position of (Picked unit))
        • Unit - Add a 10.00 second Generic expiration timer to (Picked unit)
I can't figure out what's wrong. Help me please!
 
Level 6
Joined
Aug 12, 2007
Messages
133
Ok here it goes.
A hero casts a Roar based spell
The spell creates a dummy which creates a rain of Chaos (which does not actually do damage just spawn units)
Skeletons summon for 10 seconds then die.
But just won't work.
The ability does not affect anybody though, just a dummy.
 
Level 11
Joined
Sep 12, 2008
Messages
657
Are you sure the dummy got the spell?
make sure he does, or else it wont work.
if you want him to do it, but not use the spell, tell me and ill send you a map with all the code...

Edit:

you leak 2 points.
 
Level 6
Joined
Aug 12, 2007
Messages
133
@Adiktuz
I tried the "Effect of an ability" and it did not work.

@dardas
I guess there's something wrong with the Archimode-Rain of Chaos spell. I tried a trigger like this:
  • Storm
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Spell
    • Actions
      • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Archimonde - Rain of Chaos (Target point of ability being cast)
This does not work whereas a exact same trigger with Monsoon instead of Rain of Chaos works perfectly. Try it yourself. I believe the spell is the problem and not the trigger itself. Please try.
Edit: The dummy still spawns.
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Try adding a wait between the «Add unit to Group» and the «Pick every unit». I suspect this is the result of the slow triggers. Otherwise, I don't know, I would have to look at it in script form.
I also noticed that in the trigger of your last post, you set the expiration timer before ordering the spell to be cast. I don't know if an expiration timer cancels given orders, but who knows.
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
@Davy Jones: You are correct in thinking that something is wrong with the order string. The order for Archimonde - Rain of Chaos actually turns out to be "rainoffire" instead of "rainofchaos." To issue the correct order, you'll need to use custom script:
  • Custom script: call IssuePointOrder(bj_lastCreatedUnit, "rainofchaos", GetSpellTargetX(),GetSpellTargetY())
Use that instead of the last line you used for the second trigger you posted. I know this because I answered a similar thread.

@Rui: I don't think an expiration timer will affect a unit's order. Whenever I used dummy units for casting spells, I always added an expiration timer before I issued the order.
 
Level 11
Joined
Dec 5, 2009
Messages
846
You leak 2 points. This one:
  • Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
And this one:
  • Unit - Order (Picked unit) to Special Archimonde - Rain Of Chaos (Position of (Picked unit))
And as watermelon said rain of chaos will become rain of fire think :p
 
Status
Not open for further replies.
Top