- Joined
- Feb 7, 2005
- Messages
- 409
hey guys, I want to make a building with a bunch of upgrades available, some of these upgrades have multiple levels. I want to make it so that you can't queue two of the same upgrade, and here's why.
I made an upgrade that increases unit attack damage by 1 and costs 10 minerals
in the events of that upgrade, it also increases the resource cost of itself by 10 minerals upon completion of the research
The bug is that, if you queue the research 5 times when it costs 10 minerals, you get 5 upgrades for the cost of 10 minerals each. Instead of the wanted 10 minerals for the first, 20 for the second, so on and so forth.
so I'm looking for a way for the game to apply the additional resource cost upon queuing the same research twice, or a way to make it so you cant queue the same research twice.
I made an upgrade that increases unit attack damage by 1 and costs 10 minerals
in the events of that upgrade, it also increases the resource cost of itself by 10 minerals upon completion of the research
The bug is that, if you queue the research 5 times when it costs 10 minerals, you get 5 upgrades for the cost of 10 minerals each. Instead of the wanted 10 minerals for the first, 20 for the second, so on and so forth.
so I'm looking for a way for the game to apply the additional resource cost upon queuing the same research twice, or a way to make it so you cant queue the same research twice.