- Joined
- Apr 2, 2013
- Messages
- 25
He Everybody,
my last thread was a kinda vague, so i made a new more specific one..
My idea was to let units spawn by timer by adding an upgrade to a building which the player can click for a mineral cost.
For exemple:
You got a barrack. The barrack has got an upgrade button which cost 100 minerals and you only can do once, which will spawn a marine every 30 sec..
What i got now is this:
I made a Global Var:
Timer: New Timer
x = timer Marine P1
Trigger (Name: Acting timer after upgrade):
Event - UI - player 1 presses train marine.
Local var -
Conditions -
Actions - Start 'var = timer marine P1' as a repeating timer that will expire in 30.0 sec of game time
Next trigger (Name: Spawn):
Event: Timer - When timer marine P1 expires
Local var -
Conditions -
Actions - Create 1 Marine for Player 1 at (location of my barrack) using default facing.
What happens now, if I test document. When i train a marine, there will be a spawn of a marine every 30 secs.. Yes i am happy that works.. But..
I want to do this with an upgrade which will do nothing, cuz now i train a marine what i dont want.. The triggers will spawn the marine and i dont want a marine when u press train marine.. I know its logical that will happen, cuz its the ability i chose.. I only made this to check if my triggers were working, and they work..
But now for the question i have. I tried to make en upgrade button for the barracks which do nothing, because my triggers will do the spawnings, but unfortunate it doesnt work.. I tried with data to make a new upgrade, but cant figure it out how i can make an upgrade which will do nothing.. The only thing i want the upgrade will do is let the button be actually an option at me barrack, plus it costs a specific amount of minerals and take sum time when its completed... For some reason when i make an upgrade button, which doensnt have any ability or effect attached to it.. The button isnt there on me barracks.. Even when i change the ability buttons from the barrack to my own upgrade..
So can someone help me out how to make an new upgrade button which will work but do not have an ability nor effect and can be clicked once!!!, but can be triggered by me triggers when researched in the game..
I would be gratefull
Kind regards,
me
my last thread was a kinda vague, so i made a new more specific one..
My idea was to let units spawn by timer by adding an upgrade to a building which the player can click for a mineral cost.
For exemple:
You got a barrack. The barrack has got an upgrade button which cost 100 minerals and you only can do once, which will spawn a marine every 30 sec..
What i got now is this:
I made a Global Var:
Timer: New Timer
x = timer Marine P1
Trigger (Name: Acting timer after upgrade):
Event - UI - player 1 presses train marine.
Local var -
Conditions -
Actions - Start 'var = timer marine P1' as a repeating timer that will expire in 30.0 sec of game time
Next trigger (Name: Spawn):
Event: Timer - When timer marine P1 expires
Local var -
Conditions -
Actions - Create 1 Marine for Player 1 at (location of my barrack) using default facing.
What happens now, if I test document. When i train a marine, there will be a spawn of a marine every 30 secs.. Yes i am happy that works.. But..
I want to do this with an upgrade which will do nothing, cuz now i train a marine what i dont want.. The triggers will spawn the marine and i dont want a marine when u press train marine.. I know its logical that will happen, cuz its the ability i chose.. I only made this to check if my triggers were working, and they work..
But now for the question i have. I tried to make en upgrade button for the barracks which do nothing, because my triggers will do the spawnings, but unfortunate it doesnt work.. I tried with data to make a new upgrade, but cant figure it out how i can make an upgrade which will do nothing.. The only thing i want the upgrade will do is let the button be actually an option at me barrack, plus it costs a specific amount of minerals and take sum time when its completed... For some reason when i make an upgrade button, which doensnt have any ability or effect attached to it.. The button isnt there on me barracks.. Even when i change the ability buttons from the barrack to my own upgrade..
So can someone help me out how to make an new upgrade button which will work but do not have an ability nor effect and can be clicked once!!!, but can be triggered by me triggers when researched in the game..
I would be gratefull
Kind regards,
me