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

Need some SERIOUSLY help over here

Status
Not open for further replies.
Level 8
Joined
Jul 3, 2004
Messages
404
If i try to work on this trigger anymore without getting it to work, my head will explode in anger.

This is the 1st trigger, the "move units (hero) to

arena"
Start Duell
Code:
Events
Time - Timer expires
Conditions
Actions
Unit Group - Pick every unit in (Random 1 units from team1) and do (Unit - Move (Picked unit) instantly to (Center of Arena spawn 1 Copy <gen>))
Unit Group - Pick every unit in (Random 1 units from team2) and do (Unit - Move (Picked unit) instantly to (Center of Arena spawn 1 <gen>))
Unit Group - Pick every unit in (Random 1 units from team3) and do (Unit - Move (Picked unit) instantly to (Center of Arena spawn 1 Copy Copy <gen>))
Unit Group - Pick every unit in (Random 1 units from team4) and do (Unit - Move (Picked unit) instantly to (Center of Arena spawn 2 <gen>))
Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
Loop - Actions
Unit - Pause all units
Unit Group - Pick every unit in (Units in Region 013 <gen>) and do (Actions)
Loop - Actions
Unit - Unpause all units
Unit Group - Pick every unit in (Units in Region 013 <gen>) and do (Unit - Unpause (Picked unit))
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - Set the camera bounds for (Picked player) to Region 013 <gen>
Trigger - Turn on Remove summoned units <gen>
Trigger - Turn on End Duell <gen>


And it works youst fine.

And here's what's gonna happen when there's only one hero left in the arena.

Add gold to the owner of the hero, teleport the hero to owner of hero

Plz answer fast. I need this for my new version of my map
 
Level 4
Joined
Aug 31, 2004
Messages
106
I don't understand your question. First you say it doesn't work, then you say it works just fine. I saw one thing you could fix though. There's a lot of redundancy in pausing/unpausing units. you're making it pause/unpause them in the loop over and over again. Either "pick all units in group and do actions:"
"unit - unpause picked unit" or "unpause all units", but not both at the same time.
 
Level 3
Joined
Aug 14, 2004
Messages
34
Create a new variable (temp interger-inter variable) and a new triggor that start as of. New triggor:

Event: Unit-generic unit dies
Condition: Unit-type equal to hero
Action: Set temp interger to[Temp interger + 1]
If all conditions are true then do actions
Conditions: temp interger equal to 3
Actions: Add X gold to random unit in Region 13.
Set variable Temp interger to 0
Turn off this triggor

after all this move units back to base or whatever. also insert turn on triggor when the dual starts so it only works whilst dualing.
 
Level 9
Joined
Sep 8, 2004
Messages
633
Guys, sheesh...

The heroes, each give them a variable, make the following variable:

Playerhero (x) (x = array 1~4) Type: Unit

Do you choose the units? if so choose unit, set chosen hero to (that variable)

Now, the trigger:

E: Every x seconds of the game
C: If number of heroes in playable map area = 1
A: If/then/else multiple functions
If unit in playable map area is = Playerhero (1)
Then move Playerhero (1) to -X-
Player add -property- to owner of Playerhero (1)

---

Yaay. :)
 
Status
Not open for further replies.
Top