You dont, requirements are made/edited in the data editor, take a look at some of the other tech requirements, its a little tricky at first, see if i can explain :)
Lets take a look at the Learn Protoss Ground Weapons 3 requirement.
under the first Folder, of the same name. You will see 2 More folders, one is Use, and one is Show.
When a button has this requirement, it will show in the command card if the conditions under the "Show" Folder return true, in this case. If the count of the protossgroundwepaonslevel3 is que'd or better, meaning its been que'd up somewhere, or its been completed already (the better portion of the statement) is equal to 0, it will show up. If that statement returns false, meaning we DO have it que'd up somewhere(because now the count is not equal to 0), or we have it competed, the button will be hidden.
The use folder functions the same way, if the statements inside it, return true, the ability is usable, in our example, the ProtossGrounWeaponsLevel2 must be complete and any amount of (notice there's no constant with the unit count statement) TwilightCouncils are equal to complete.
At least that's how i understand it, Ive only made a few requirements myself.
This could work, but may cause some problems/bugs if the research is then canceled. Ide recommend reading up on how to make your own requirement, its fairly straight forward and you can do exactly what you want done, the tooltip will even display why the player cannot research the mutually exclusive research item.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@Darkling155: Go
You dont, requirements are made/edited in the data editor, take a look at some of the other tech requirements, its a little tricky at first, see if i can explain :)
Lets take a look at the Learn Protoss Ground Weapons 3 requirement.
under the first Folder, of the same name. You will see 2 More folders, one is Use, and one is Show.
When a button has this requirement, it will show in the command card if the conditions under the "Show" Folder return true, in this case. If the count of the protossgroundwepaonslevel3 is que'd or better, meaning its been que'd up somewhere, or its been completed already (the better portion of the statement) is equal to 0, it will show up. If that statement returns false, meaning we DO have it que'd up somewhere(because now the count is not equal to 0), or we have it competed, the button will be hidden.
The use folder functions the same way, if the statements inside it, return true, the ability is usable, in our example, the ProtossGrounWeaponsLevel2 must be complete and any amount of (notice there's no constant with the unit count statement) TwilightCouncils are equal to complete.
At least that's how i understand it, Ive only made a few requirements myself.
@HeyRevolver: Go
True :)
@HeyRevolver: Go
This could work, but may cause some problems/bugs if the research is then canceled. Ide recommend reading up on how to make your own requirement, its fairly straight forward and you can do exactly what you want done, the tooltip will even display why the player cannot research the mutually exclusive research item.