I'd like to make a trigger that limits the amount of Queens a player can build. I basically want it to limit you so that you can have as many queens as you have hatcheries, plus one.
For example:
example 1: player 1 owns 5 hatcheries, player 1 may own up to 6 queens.
example 2: player 2 owns 1 hatchery, player 2 may own up to 2 queens.
This is the effect I'd like to accomplish but frankly I have no idea how to accomplish this. My map is complete except for this minor detail. :)
Have a look at the mothership, it does the same using data requirements. I am sure you can get the number of hatcheries in those requirements as well (current mothership requirement is like number of motherships ==0, you will make number of queens <= number of hatcheries +1)
Yeah I wasnt too descriptive.... but if you work your way through it you should learn something.
Pick one unit you want to limit. work on getting it there. If you have any problems post back here Ill be monitering this post so see if you get it done.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
Give it whatever name and ID you want and then open the requirement field.
1st line -> Add term -> Equals
2nd line -> CountUnit -> <Unit you want to limit> (Change the field under this to either "completed" or "queued or better")
3rd line -> Constant -> The max units of that type that you want.
Now, put this requirement onto your build ability info+ tag. To elaborate, if you want to limit marines from a barracks, then go to the Barracks - Train ability, hit Info+, select Marine, and under "Requirements", place the thing you just made. Don't bother adding requirements to command cards. They're visual only.
Yeah, I got the queen limitation done, except I couldn't get it set to hatchery,lair, or hive total + 1. Oh well, I learned something but decided to scrap the idea anyway. Thanks for the inputs :)
I'd like to make a trigger that limits the amount of Queens a player can build. I basically want it to limit you so that you can have as many queens as you have hatcheries, plus one.
For example: example 1: player 1 owns 5 hatcheries, player 1 may own up to 6 queens.
example 2: player 2 owns 1 hatchery, player 2 may own up to 2 queens.
This is the effect I'd like to accomplish but frankly I have no idea how to accomplish this. My map is complete except for this minor detail. :)
Have a look at the mothership, it does the same using data requirements. I am sure you can get the number of hatcheries in those requirements as well (current mothership requirement is like number of motherships ==0, you will make number of queens <= number of hatcheries +1)
€
Button requirements are purely visual, you have to apply the requirement for the build ability or you can still build the queen.
You can create a validator/ requirement (not sure which one) on the build button for this unit.... that requires there to be less then "x"
so when they go to build something and theres less then "x" of that unit the button will be available.
when there are "x" of that unit the button would be greyed out
this would require a validator/require for each type of unit you want to do this with.
But it would work for each player.
The wording is something like
Player has somemany units trained/qued
@SouLCarveRR: Go
You guys are super helpful. Thanks a bunch!
Yeah I wasnt too descriptive.... but if you work your way through it you should learn something.
Pick one unit you want to limit. work on getting it there. If you have any problems post back here Ill be monitering this post so see if you get it done.
You can accomplish it by using this expression in requirements:
Requirements
Make a new element.
Give it whatever name and ID you want and then open the requirement field.
1st line -> Add term -> Equals
2nd line -> CountUnit -> <Unit you want to limit> (Change the field under this to either "completed" or "queued or better")
3rd line -> Constant -> The max units of that type that you want.
Now, put this requirement onto your build ability info+ tag. To elaborate, if you want to limit marines from a barracks, then go to the Barracks - Train ability, hit Info+, select Marine, and under "Requirements", place the thing you just made. Don't bother adding requirements to command cards. They're visual only.
@SouLCarveRR: Go
Yeah, I got the queen limitation done, except I couldn't get it set to hatchery,lair, or hive total + 1. Oh well, I learned something but decided to scrap the idea anyway. Thanks for the inputs :)
yeah well you have to place the requirement.... on where the button is used
for hatchery you would have to put it on the drone > morph > hatchery button..... if then it may not go into effect depending on the dependancies