Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
It's possiible to achieve PointBreak cheat via triggers, but without using the exact cheat? That would let you to train unit even if you don't have food resources for it?
It's possiible to achieve PointBreak cheat via triggers, but without using the exact cheat? That would let you to train unit even if you don't have food resources for it?
What you want is not possible. You cannot build a unit if you do not have enough food for it. You need to modify either food cost of the trained unit to 0 or increase population limit/decrease food used by the player.
I would do:
Remove food costs from units. When a unit enters the map you adjust the food used for the player.
This would allow you to always train units regardless of your food. You would still have the resource indicator show the right value, but in the unit tooltip you would not see the amount of food required for the unit. You can write it in the tooltip though.
The problem is that the moment you want to train the unit you need the food to be able to train this unit.
You have to accept that what you want is not possible in warcraft unfortunatly.
The theoretical solution would be to reduce food used then train the unit then reset the food used to the normal value. But since you cannot reduce the food before someone trains a unit this is not possible.
I found a semi-solution:
This trigger will set food used to 0 and immediatly reset it.
Already queued units will start being trained, because they seem to be started as soon as the required food is available even if the food is reset immediatly. This allows you to go over the food porvided by our food buildings, but not over the food limit.
Test
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Wait 0.01 seconds
Player - Set Player 1 (Red) Food cap to ((Player 1 (Red) Food cap) + 1000)
Player - Set Player 1 (Red) Food cap to ((Player 1 (Red) Food cap) - 1000)
You can make a unit not cost food, but only after it's built.
Alternatively, you could have some dummy units that you replace with the real one the moment they appear. Then use enable/disable to switch which one is trainable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.