I have shops(GUI type is Modal) that get created when you enter a region, and destroyed when you leave the region. This works flawlessly. However in my shops there is 10 buttons buy and sell x 5. Just working on getting the first one working however it only lets me sell Stim-Packs once, even though when the map starts your Stim-Packs variable is at 3. I should be able to sell 3 times.
"Stim-Pack1" is the variable that starts at 3. This is also only player 1's stockpile of stimpacks.
"stim-pack price" is the variable that changes ever 15 seconds. (price fluctuation so you can make moneys)
Trigger looks like this.
(relative dialog item "sell Stim" for player "1") is used by any "player" with event type "clicked"
Modify player "1" minerals "add": "stim-pack price"
Korhal, a city ravaged by chemical addiction. There is lots of money to be made selling chemicals. You are a chemical salesmen, go around to the different chemical shops around town buying in bulk. Prices always change buy low, sell high. You arrive in the city with 3 stim packs in your inventory. Go sell those, and start making money finding good deals! Beware there is other chemical salesmen(other players) who will get jealous of your success they will try and rob you. Addicts will also try and rob you, although they are pretty weak from there chemical addictions.
5 Different Fictional Chemicals
Stim-Packs - Used commonly by military types.
Liquid Vespene - Protoss love this liquefied form of vespene.
Zergling Adrenaline - Gain the strength and speed of a zergling.
Blood of Kerrigan - Now synthesized no longer actual blood of kerrigan, causes profound hallucinations.
Nitro-Packs - Reapers used these in the war, they have since broken out of the military's control.
Upgrade you Weapons and Vehicles
3 different weapon upgrades
3 different speed upgrades
Automatically hire mercenary at every landmark mineral level
First at 10k minerals, Second at 50k minerals, Third at 200k minerals, Fourth at 500k minerals.
PVP with skills!
Kill and enemy player to receive 30% of the chemicals he is carrying, an EZ way to get ahead of the competition. Kill addicts(NPC) to receive a easy 100 minerals! I havent decided if im going to add police yet.
How do you win?
After 15 minutes, any remaining chemicals in a players inventory will get sold at a average amount. Player with the most money wins! If i can get this map working i will also put up a leaderboard for the top scores of the game across all of bnet.
OK so i just tried this, made it so when i sold it gave me 2x the minerals, and walla it worked for sell everytime it would give me double minerals. But heres the weird part when i hit buy it gave me 1x minerals when clearly in the trigger it says subtract not add.
So does anyone know why it would be adding and not subtracting?
OK so i delete buy and load map, and the first time i sell it sells for 1075? the trigger says add stim pack price, however stim pack price is 375, i have no idea how its comming up with 1075. Did i break the editor? The second time it sells it sells for 375. its like the editor cant handle all my variables and im not even using that many. It also seems to not be able to grasp the idea of simple math.