HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero Selection triggers

10-26-2006, 03:21 PM#1
Zachary_Shadow
So, I got the Hero Selection implemented after some mocking around.

Now, I stand before another problem. I have to detect if a hero is selected, that that hero is applicable for that player, hence, if the hero is a Heaven specific hero, a Hell player shouldn't be able to pick it.

I have tried a long time now to figure out how to detect who the hero is, and then check for who the player picking it is, but I can't figure it out...

Could some of you give it a try? Would be most appreciated

Map attached
Attached Files
File type: w3xSelectionTest.w3x (26.2 KB)
10-26-2006, 03:24 PM#2
Fulla
Add all X units to group X
Add all Y units yo group Y.

Team 1 can only pick X units, team 2 Y units

So have aan event
'Players selects a unit'

If Player 1-6 and unit is in group X
let him fiddle with it

If Player 7-12 and unit is in group Y
let him fiddle with it

There you go?
10-26-2006, 03:30 PM#3
Zachary_Shadow
Quote:
Originally Posted by Fulla
Add all X units to group X
Add all Y units yo group Y.

Team 1 can only pick X units, team 2 Y units

So have aan event
'Players selects a unit'

If Player 1-6 and unit is in group X
let him fiddle with it

If Player 7-12 and unit is in group Y
let him fiddle with it

There you go?

Deffinatly doable that way, but this hero selection system is a tad different than what you see out there... and I'm not sure I could implement this exact way of doing it.. I'll fiddle a bit more with what you've proposed here, try the group thing... :)