Hey! Thanks for the reply, I did it and it worked.
But now I have a new problem that I will explain.
There are some building in the map that a player unit can "cap" . "Capping" require the unit to stay near the building (attached to a region) for 10 sec. After 10 sec, the building will become to the player.
I've made a trigger to do this function and it work in some way. When one of my unit enter the region of the building, i now own him.
But, my problem is that even if I specified a timer for the capping duration, it do not work. And I also want to do that if there is already some units on the region, the "capping" phase can't begin until no unit are attached to the region.
Do you understand my problem? And can someone help me find out a way to resolve this problem?
I think the basic of the trigger would be something like:
Event - Any unit enter region 01 (there is a supply depot on the region that is controlled by a neutral player)
Action - Change ownership of supply depot to player 1
I think that I need to put a "If then Else" condition that specify two things: If 10 sec elapsed, give supply depot to the triggering player. Also, I need to put that If there is some hostile units on the region, the trigger can't activate or is in a pause state.
I need to make an income system via trigger editor (Not the data editor).
I want to do a trigger that activate every 30 sec game time.
It will look for each player how many building they have and give + 10 mineral for every building they have.
For example, timer expire. Player one have 4 supply depot, he then get + 40 mineral. Etc.
I've tried several way to do this, and checked on the forums for similar post, but I am not able to make my trigger work.
I would like to have some help from someone that is good with trigger, but in a form of tutorial or at least an image of how the trigger would look like.
Thank you very much!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Wow, Thank you for the answer man !
I will try that soon and give a feedback :)
Hey! Thanks for the reply, I did it and it worked.
But now I have a new problem that I will explain.
There are some building in the map that a player unit can "cap" . "Capping" require the unit to stay near the building (attached to a region) for 10 sec. After 10 sec, the building will become to the player.
I've made a trigger to do this function and it work in some way. When one of my unit enter the region of the building, i now own him.
But, my problem is that even if I specified a timer for the capping duration, it do not work. And I also want to do that if there is already some units on the region, the "capping" phase can't begin until no unit are attached to the region.
Do you understand my problem? And can someone help me find out a way to resolve this problem?
I think the basic of the trigger would be something like:
Event - Any unit enter region 01 (there is a supply depot on the region that is controlled by a neutral player)
Action - Change ownership of supply depot to player 1
I think that I need to put a "If then Else" condition that specify two things: If 10 sec elapsed, give supply depot to the triggering player. Also, I need to put that If there is some hostile units on the region, the trigger can't activate or is in a pause state.
Anyways, I need help !
Hey,
I need to make an income system via trigger editor (Not the data editor).
I want to do a trigger that activate every 30 sec game time.
It will look for each player how many building they have and give + 10 mineral for every building they have.
For example, timer expire. Player one have 4 supply depot, he then get + 40 mineral. Etc.
I've tried several way to do this, and checked on the forums for similar post, but I am not able to make my trigger work.
I would like to have some help from someone that is good with trigger, but in a form of tutorial or at least an image of how the trigger would look like.
Thank you very much!