a way to limit the number of specific units?
Moderator: Forum Moderators
a way to limit the number of specific units?
Hi, I'm new to the forum and the game, but I'm fiddling with the creative aspect of it. I'm wondering if there is a way to limit how many of a specific unit a player can buy/recruit? For example, a hero-type unit. Is there a way or script to only let the player have one of this unit at any one time. So if/when the unit dies, the player must re-recruit it again, and there is always only one of this unit on the board. Or maybe I would limit it to two or nine, for example, on the board at any one time.
Thanks!
Thanks!
Re: a way to limit the number of specific units?
Very possible, you can create a recruit event that disallows further recruiting, and a die event that re-allows it again. There are actual some official macros that do something similar.
Re: a way to limit the number of specific units?
There are two core macros that should make this easy. Look for LIMIT_RECRUITS here
"If gameplay requires it, they can be made to live on Venus." -- scott
Re: a way to limit the number of specific units?
Put the hero into the player's recall list.
When it dies, put it back into the recall list.
Or you could use any other method. But I think this one is more appropriate for your purpose. The disadvantage though, is that the hero would cost 20 gold no matter what.
When it dies, put it back into the recall list.
Or you could use any other method. But I think this one is more appropriate for your purpose. The disadvantage though, is that the hero would cost 20 gold no matter what.
Why did the fish laugh? Because the sea weed.
Re: a way to limit the number of specific units?
All helpful. Thanks guys! I'm not much of a programmer or scripter (I'm a piano player!) but i'll have a gander over the easter weekend...
Re: a way to limit the number of specific units?
PS but if anyone has any more suggestions it would really help! me scripting is mostly trial and error...