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

Dungeon triggering

Status
Not open for further replies.
Level 8
Joined
Jun 13, 2010
Messages
344
Hey!

I am doing some kind of copy of Twililight Eve system.

I want it to add the units in the region to a unit group when you type -enter.
It works and everything. But when you kill the boss, and I do this trigger.

Unit - Move (Picked unit) instantly to (Center of Stoneflail Second Boss <gen>)

But for some reason when I do this trigger, it only affects 1 unit from the group....
How do I make it all units? I tried Hashtable but couldn't really find anything.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Hey!

I am doing some kind of copy of Twililight Eve system.

I want it to add the units in the region to a unit group when you type -enter.
It works and everything. But when you kill the boss, and I do this trigger.

Unit - Move (Picked unit) instantly to (Center of Stoneflail Second Boss <gen>)

But for some reason when I do this trigger, it only affects 1 unit from the group....
How do I make it all units? I tried Hashtable but couldn't really find anything.

Judging by your description it should work. I guess you should just post the triggers.
 
Level 8
Joined
Jun 13, 2010
Messages
344
Okay, so I have done this in different chapters ofcause.

1) - Enter Stoneflail Dungeon

Events
Player - Player 1 (Red) types a chat message containing -enter as An exact match
Actions
Unit Group - Pick every unit in (Units in Enter Stoneflail <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Stoneflail Spawn <gen>)
Game - Display to (All players matching ((Owner of (Picked unit)) Equal to (Matching player))) the text: Dungeon: |cff995500...
Trigger - Turn off (This trigger)


2) - Mark Stoneflail

Mark Stoneflail
Events
Unit - A unit enters Stoneflail Spawn <gen>
Conditions
Actions
Trigger - Turn off (This trigger)
Unit Group - Add (Entering unit) to Stoneflail


3) - Defeat Boss

Defeat Areliaw
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Areliaw (Stoneflail)
Actions
Unit Group - Pick every unit in Stoneflail and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Stoneflail Second Boss <gen>)


4) - Clear

Clear
Events
Unit - A unit Dies
Conditions
Actions
Unit Group - Remove (Dying unit) from Stoneflail
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Stoneflail) Equal to 0
Then - Actions
Trigger - Turn on Enter Stoneflail Dungeon <gen>
Trigger - Turn on Mark Stoneflail <gen>
Else - Actions



Okay, so this was my setup.
Hope it will make it easier for you.
 
Level 8
Joined
Jun 13, 2010
Messages
344
I tested a bit and it seems like you only need to do it like this and it should work

  • Mark Stoneflail
    • Events
      • Unit - A unit enters Stoneflail Spawn <gen>
    • Conditions
    • Actions
      • Unit Group - Add (Entering unit) to Stoneflail

As I did in 2.
But that is not the problem. The problem is that when I kill the boss, they don't follow the move trigger.
 
Level 8
Joined
Jun 13, 2010
Messages
344
There is only 1 unit in your Snowflail group. That is the explanation for your issue.

And no your second trigger still has the Trigger - Turn off (This Trigger) line. I think removing it should solve your issue.

Ahhh..
So only 1 got marked, because when the first unit enters the region, he gets marked and turns it off for the others. Hm. Thought it was instant for everybody.
Always so much that needs to be though through! :)
Thank you!
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Ahhh..
So only 1 got marked, because when the first unit enters the region, he gets marked and turns it off for the others. Hm. Thought it was instant for everybody.
Always so much that needs to be though through! :)
Thank you!

In that case I would do it like this:
When the first unit enters, then it activates a very quick periodic trigger. The trigger turns itself and the entering trigger off, that's all it does.
What does this achieve? It guarantees that all units get added to group.
 
Status
Not open for further replies.
Top