HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero Creation Trigger problem...

01-13-2007, 02:48 PM#1
Elhyse
Hello uhm I've been trying to fix this error for hours now. I followed the instructions on one of the guides i saw on how to make an arena type map. My problem is...

When my wisp enters the circle of power to choose a hero, the hero doesn't appear. Also, the wisp that was supposedly gonna dissapear didn't vanish at all. I'm going to include a copy of my little test map so that you can see for yourself what I mean.

I'm trying to make the hero picking do these set of actions...

Starts game > Wisp enters circle > Hero appears in his Hero Creation Area > Wisp vanishes without a trace.

I really want to fix it but I'm really out of ideas. I'm still kinda new to map making and all but I am willing to learn all about it.

If someone can help me fix my problem, it would be so appreciated.
Attached Files
File type: w3xArena.w3x (484.6 KB)
01-13-2007, 03:10 PM#2
WILL THE ALMIGHTY
you remove a unit from a unit group. try simply removeing it by "unit- remove unit"

I don,t know why you hide a unit...

you should also use a region in the "create 1 (unit) for (player) at (centerof region)" instead of what you,re doing now.

also make a HERO variable (unit variable) with an array of 12. here's a correct code...

Trigger:
Choose Alpha One
Collapse Events
Unit - A unit enters Create Alpha One <gen>
Collapse Conditions
((Unit-type of (Triggering unit)) Equal to Waker) and (Pick_Taken[1] Equal to 0)
Collapse Actions
Set Pick_Taken[1] = 1
Unit - Remove (Triggering unit) from the game
Unit - Create 1 Alpha One for (Owner of (Triggering unit)) at (Center of Region 001 <gen>) facing (Position of (Triggering unit))
Set HERO[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Matching unit)) over 0.00 seconds
01-13-2007, 03:12 PM#3
Naakaloh
Post the trigger that's giving you issues next time instead of the map. People are far more likely to look at it if you do.

First of all, you want to create it for at the position of a "Hero Creation Spawn" owned by the "Owner of (Triggering Unit)" rather than "Triggering Player". The reason probably is that for unit events, the variable used by triggering player is null.

The camera should pan to the "Last created unit".

Next you need to remove the triggering unit from the game rather than removing it from a unit group.
01-13-2007, 09:52 PM#4
Elhyse
Oh okay sorry about that. Here's the trigger...


Trigger:
Choose Alpha One
Collapse Events
Unit - A unit enters Create Alpha One <gen>
Collapse Conditions
((Unit-type of (Triggering unit)) Equal to Waker) and (Pick_Taken[1] Equal to 0)
Collapse Actions
Unit - Create 1 Alpha One for (Owner of (Triggering unit)) at (Position of (Random unit from (Units owned by (Owner of (Triggering unit)) of type Hero Creation Spawn))) facing (Position of (Triggering unit))
Camera - Pan camera for (Owner of (Triggering unit)) to (Position of (Matching unit)) over 0.00 seconds
Unit Group - Remove (Triggering unit) from (Units of type Waker)
Set Pick_Taken[1] = 1
Unit - Hide Alpha One 0018 <gen>

EDIT : Thanks! It works now! Yay!