I know how you can make buildings require that you have another building, but is there anyway to make it so it requires a certain number of a certain building, say for example, 3 refineries to build a factory?
Yes, go to the requirements, go to the requirement you have for your building, and for it to have at least 3 of 1 type of building, change the constant to 2, will post screenshot l8er
Do I go to the actual requirement itself or the place where you can change which requirements the building has under the units build ability? Either way I do not see the constant field. Also, if I wanted to have at least 3 why would I change the value to 2?
to the actual requirement itself, and to be honest, idk, its like that, so say you want at least 1, (like the mothership) the constant is 0, idk why but thats how its like that
I do not see the constant part. Here is a picture of the requirement for the refinery I made.
I noticed that your tree shows the nodes beneath show, but that's to show the button I believe, not if it is useable or not. I don't want it to disappear if the conditions aren't met, I just want it to be grayed out (which it does fine right now, but it only needs one refinery.) I tried setting it up like that anyways and a constant value did not appear.
Thank you, but I followed the post that said to do something along these lines:
Greater Than Or Equal (Tooltip: "3 Supply Depots")
Count Unit "Supply Depot" completed
Constant 3
And I still had no constant value to change. I have no idea what I'm doing wrong.
EDIT: WAIT!
I noticed there is a field I can add myself called constant, but it doesn't seem to be directly associated with anything. Will it just affect the field above it? If so I feel like a complete moron. I am going to test it out.
Alright, yeah, I'm an idiot, it works, but now there is another problem. In the tool tip it says:
- 3 Refineries (in red)
3 (in green)
Even though the tool tip box for the constant is blank, a random 3 that isn't even colored red is displayed below the requirement. Is there anyway to make it only say 3 Refineries?
Yeah, sorry, I meant "use" instead of "show". Put a tooltip in the "greater than or equal to" node, an it will show that only if the requirement is not met.
I know how you can make buildings require that you have another building, but is there anyway to make it so it requires a certain number of a certain building, say for example, 3 refineries to build a factory?
Yes, go to the requirements, go to the requirement you have for your building, and for it to have at least 3 of 1 type of building, change the constant to 2, will post screenshot l8er
Do I go to the actual requirement itself or the place where you can change which requirements the building has under the units build ability? Either way I do not see the constant field. Also, if I wanted to have at least 3 why would I change the value to 2?
to the actual requirement itself, and to be honest, idk, its like that, so say you want at least 1, (like the mothership) the constant is 0, idk why but thats how its like that
@SnyderGuy: Go
Alright, thanks, but you never explained the constant field. I do not see it in the requirement.
@Bagofsheep: Go
For the tree view, it should look something like this
Show
- Greater than
- - Count
- - - Refineries (Completed)
- - Constant: 2
I do not see the constant part. Here is a picture of the requirement for the refinery I made. I noticed that your tree shows the nodes beneath show, but that's to show the button I believe, not if it is useable or not. I don't want it to disappear if the conditions aren't met, I just want it to be grayed out (which it does fine right now, but it only needs one refinery.) I tried setting it up like that anyways and a constant value did not appear.
@Bagofsheep: Go
Right click on Use and add another node, set that one to Constant.
@zorbotron: Go
That's the thing, it won't let me. When I right click on use the add node button is grayed out.
@Bagofsheep: Go
Check this thread:
http://www.sc2mapster.com/forums/development/data/32008-make-requirement-require-x-of-a-unit/#p11
@Kabelkorven: Go
Thank you, but I followed the post that said to do something along these lines:
Greater Than Or Equal (Tooltip: "3 Supply Depots")
Count Unit "Supply Depot" completed
Constant 3
And I still had no constant value to change. I have no idea what I'm doing wrong.
EDIT: WAIT! I noticed there is a field I can add myself called constant, but it doesn't seem to be directly associated with anything. Will it just affect the field above it? If so I feel like a complete moron. I am going to test it out.
Alright, yeah, I'm an idiot, it works, but now there is another problem. In the tool tip it says:
- 3 Refineries (in red)
3 (in green)
Even though the tool tip box for the constant is blank, a random 3 that isn't even colored red is displayed below the requirement. Is there anyway to make it only say 3 Refineries?
@Bagofsheep: Go
Yeah, sorry, I meant "use" instead of "show". Put a tooltip in the "greater than or equal to" node, an it will show that only if the requirement is not met.
@Khalanil1: Go
Alright, it works! Thank you all for your help.