HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Problem

02-21-2003, 03:16 AM#1
Zero
Ok here is the trigger I used:

Event - Unit enter region "X"
Condition -
Action - Pick every unit in the entire map and do if picked unit is a hero = to true and owner of picked unit = to player 3 then move picked unit to region "X"

Why dosen't this work??? I don't get it :(

What I am trying do establish here is I want to move all players heros to region X.

Can anyone help emote_sweat
plz
02-21-2003, 06:59 AM#2
Spectralist
Quote:
Originally posted by Zero
Ok here is the trigger I used:

Event - Unit enter region "X"
Condition -
Action - Pick every unit in the entire map and do if picked unit is a hero = to true and owner of picked unit = to player 3 then move picked unit to region "X"

Why dosen't this work??? I don't get it :(

What I am trying do establish here is I want to move all players heros to region X.

Can anyone help emote_sweat
plz


try

Event - Unit enter region "X"
Condition -
Action - Pick every unit in (Units in (playable map area) matching (((Triggering unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of (REGION)))

or when you make the heros add them to a unit group and move the unit group
02-21-2003, 03:23 PM#3
Zero
Ok well here is the delema. Each player picks 1 out of 6 heros. Then he has to choose between 6 other heros. I could make a unit group for lets say all hero types. But how would I move that 1 hero in the group of 6 that is a player and not the rest.

Action - Pick every unit in (Units in (playable map area) matching (((Triggering unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of (REGION)))

This wont work.. It will move every single hero on the map to the region..

Ok I know Draken know how to do this. In your heroquest episode 1 map. The cutscene the players have to watch when you are in the room with the previous 8 heros after you kill the necro. How did you move the heros of the players?
02-23-2003, 07:44 PM#4
Zero
Ok I know someone here knows how to do this. I really need help... I can't finish my current map without knowing how to do this.

PLEASE
02-24-2003, 06:12 PM#5
Zero
Ok well after several long hard and frustrating hours I got it to work. I learned that you can't use more then one condition in the Unit Group - Pick every unit in an area and preform an action. So what I did is I put each 6 heros in a unit group. Then I added all the unit groups into one unit group. I reduced a 45 trigger process down to one simple trigger.

The modified and completed trigger looks like this:

Event - Unit enters region
Condition -
Action - Pick every unit in (Heros) and do if controller = to user then preform action.

This is from memeory since I am at school but this is the general idea behind it. What a pain to figure out and with no help from anyone either...