HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with a new hero

01-05-2003, 02:14 AM#1
EvilNed
Hey, I just made a map and added a few units and heroes to the now existing races, but the problem is that you can build as many as you want of the new heroes. So you could have like 5 of the new kind. But you can still only build 1 of the old ones. So, how do I set it so that you can only build one of the new heroes?
01-05-2003, 02:23 AM#2
pvxc
If you have enough room you can completely edit existing heros and they would be old ones and you could only have one of them.
01-05-2003, 02:40 AM#3
Holimion
Events: Map Initialization
Conditions: None
Actions:
Player - For Player 1 (Red), set the maximun number of YourHero to 1
Player - For Player 2 (Blue), set the maximun number of YourHero to 1
....
Player - For Player 12 (Brown), set the maximun number of YourHero to 1

There is another way to do it too... but it's too long. it's like.. unit enters entire map... conditions is owned by player 1 and it's youhero then.. disable training. but you have to do x triggers where x is the numbers of players capable of training the unit...
My English Sucks
01-05-2003, 04:35 AM#4
Dinadan87
You wouldn't really need a trigger for every player, just do away with the condition and use "Owner of (Triggering Unit)" as the player :)
01-05-2003, 11:59 AM#5
EvilNed
I can't find that Trigger under "Actions"... Are you sure it starts with "Player"?
01-05-2003, 05:41 PM#6
Holimion
...
you need umswe 3.5 you can download it here
i'm very newbie at triggers Dinadan87 i'm messing with the triggers since friday :)

but here is it (fixed):
Eventes: Map initialization
Actions :Player - For (Owner of (Triggering Unit)) set the maximum number of YourHero to 1
01-05-2003, 05:42 PM#7
EvilNed
Thanks for the link and info!
01-05-2003, 07:17 PM#8
Dinadan87
Quote:
Originally posted by Holimion
...
you need umswe 3.5 you can download it here
i'm very newbie at triggers Dinadan87 i'm messing with the triggers since friday :)

but here is it (fixed):
Eventes: Map initialization
Actions :Player - For (Owner of (Triggering Unit)) set the maximum number of YourHero to 1


Sorry that's not what I meant. I meant use Owner of (Trigger Unit) instead of the alternate method you mentioned which required 12 different triggers. If your using that trigger you still need an action for each player, Sorry for the confusion