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.
EVENT:
(relative dialog item "sell Stim" for player "1") is used by any "player" with event type "clicked"
ACTION:
Modify player "1" minerals "add": "stim-pack price"
I have found out if I leave the shop and come back I can use the button once more? After a price fluctuation happens. I haven't been able to use it a third time.
I need to be able to buy 100 stim packs within 15 seconds and then sell 100 stim packs within 15 seconds, not 1 ever 15 seconds. =?
Here is my price fluctuation trigger:
EVENT
Timer - Every "15" seconds of Game Time
ACTION
Set "stim-pack price" : "random integer" between "200" and "440"
Also keep in mind this is only 1 price, i have 10 chemical dealers with 5 different price fluctuations so 50 in total. But all under same trigger of Timer - Every 15 seconds.
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.
Your "Sell" and "Buy" trigger both proc when you try and sell the stim. You gain 1 and lose 1. Doesn't make sense to me why though as the variables all match.
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.
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.
Bump
I have found out if I leave the shop and come back I can use the button once more? After a price fluctuation happens. I haven't been able to use it a third time.
I need to be able to buy 100 stim packs within 15 seconds and then sell 100 stim packs within 15 seconds, not 1 ever 15 seconds. =?
Here is my price fluctuation trigger:
Also keep in mind this is only 1 price, i have 10 chemical dealers with 5 different price fluctuations so 50 in total. But all under same trigger of Timer - Every 15 seconds.
Sounds like an oversight to me. Can you upload the map?
Chem Wars
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
Upgrade you Weapons and Vehicles
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.
Found your problem. I have no clue why though.
Your "Sell" and "Buy" trigger both proc when you try and sell the stim. You gain 1 and lose 1. Doesn't make sense to me why though as the variables all match.
@Eiviyn: Go
oh weird well that is awesome u found it ill try and fudge with it see if i can fix it. Thank you so much for identifying the problem.
@RailTracer: Go
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.
@RailTracer: Go
OK here is the map file for anyone wanting to see if u can fix it, i broke the editor somehow. It cant even do simple math anymore....
http://www.sc2mapster.com/maps/chem-war/
Lay off the chemicals maybe...
@SouLCarveRR: Go
I should revise that, I broke galaxy it cant even do simple math anymore. =D