Hey,
I'm currently working on a map and so far i've got everything figured out and going good, buuuut, a big snag i've run into is the upgrades.
Example:
I've got an upgrade at the command centre to upgrade the rate at which scv's gather resources. The button is there, the requirements work, the upgrade works, but it upgrades in the que (like building an scv, which I dont really mind) but the button doesn't go away afterwards. I can keep purchasing it, and because I have the max level set as 1 then it won't stack the effect (thankfully)
So just wondering how to disable the button after the upgrade has started so you can't keep doing it.
Sorry, (sound nooby) but I don't quite follow you there, I've torn the button and the upgrade appart and I'm not quite sure where I'm sposed to find this. Or if you are wanting an actual "Requirement" set up for it.
You'll need a Requirement data object like soul carverr said.
Requirement - "CanLearn<YourUpgradeHere>"
Show
* Count <YourUpgradeHere> (in progress or better) < 1
What this means is that as soon as the ability is in progress, the requirement will return false (since count will be >= 1), and then it will hide the button.
Just be sure to associate the requirement with the button either on the ability or on the command card of the unit.
Hey, I'm currently working on a map and so far i've got everything figured out and going good, buuuut, a big snag i've run into is the upgrades.
Example: I've got an upgrade at the command centre to upgrade the rate at which scv's gather resources. The button is there, the requirements work, the upgrade works, but it upgrades in the que (like building an scv, which I dont really mind) but the button doesn't go away afterwards. I can keep purchasing it, and because I have the max level set as 1 then it won't stack the effect (thankfully)
So just wondering how to disable the button after the upgrade has started so you can't keep doing it.
Thanks
in the requirements on the button that says goes like this
show - training/ completed upgrade "of this type" < 1
Sorry, (sound nooby) but I don't quite follow you there, I've torn the button and the upgrade appart and I'm not quite sure where I'm sposed to find this. Or if you are wanting an actual "Requirement" set up for it.
@Rathma666: Go
well youve done the requirement nodes that control when it shows / hides the button right?
You'll need a Requirement data object like soul carverr said.
Requirement - "CanLearn<YourUpgradeHere>"
What this means is that as soon as the ability is in progress, the requirement will return false (since count will be >= 1), and then it will hide the button.
Just be sure to associate the requirement with the button either on the ability or on the command card of the unit.