I wanna make my bunkers costs 150 mineralz initially. When u build 1 it costs 50 mineralz more and buil the next one adds again 50 mineralz to the costs but only for each player seperate. The more bunkers u have, the more expensive they are. I cant imagine any solution for that.
Make the bunkers cost 0 minerals in the data editor. Then create a trigger. Set the event to Any Unit construction progress started. For conditions, use Unit Type of triggering unit == Bunker. Under actions, create an if/then/else statement. For conditions, check if the owner of (triggering unit) minerals < (150 + (number of Bunkers owned by triggering player in Playable Map Area * 50)). MAKE SURE YOUR PARENTHESES ARE IN THE RIGHT PLACES. If true, remove (triggering unit) from the game, play an error sound, send a message to the player ("You can't build that!!! OMGz") or whatever. Should work.
ok, sounds nice. Is there a way to show the price in the tooltip? I need a price thats the same amount like the playerkills variable. so the price of the unit is the amount of ur kills.
I wanna make my bunkers costs 150 mineralz initially. When u build 1 it costs 50 mineralz more and buil the next one adds again 50 mineralz to the costs but only for each player seperate. The more bunkers u have, the more expensive they are. I cant imagine any solution for that.
Make the bunkers cost 0 minerals in the data editor. Then create a trigger. Set the event to Any Unit construction progress started. For conditions, use Unit Type of triggering unit == Bunker. Under actions, create an if/then/else statement. For conditions, check if the owner of (triggering unit) minerals < (150 + (number of Bunkers owned by triggering player in Playable Map Area * 50)). MAKE SURE YOUR PARENTHESES ARE IN THE RIGHT PLACES. If true, remove (triggering unit) from the game, play an error sound, send a message to the player ("You can't build that!!! OMGz") or whatever. Should work.
ok, sounds nice. Is there a way to show the price in the tooltip? I need a price thats the same amount like the playerkills variable. so the price of the unit is the amount of ur kills.
You could also use this method with a few tweaks (such as using the Unit Is Created event).
http://forums.sc2mapster.com/development/data/22500-show-cost-set-by-trigger-on-command-card/#p11
@DeProgrammer:
Hahaha, hello Playless. I have a feeling we're making the same map. ¦3