I wonder if anyone here would mind helping me make a (hopefully) simple point system. I usually make everything in the data editor in my maps and mods, but this point system requires triggers. I have made a very basic trigger so far, but I am not skilled enough to make this system work.
Short explanation of how the point system works in my mod:
Players play in two teams vs each other.
Out on the map, there are special structures players can take control of by using an ability. (Adds a behavior to the structure so it now belongs to the player)
Every X seconds, these structures give "points" to the team who controls them. (The more structures your team controls, the more points your team collects)
The total points of both teams are displayed on the screen, throughout the game, so players can see which team is leading. (See picture below of how it looks so far)
Required triggers:
1. One trigger displays and updates both teams current points in a window on the screen.
2. One trigger adds points to both teams every X seconds, depending on how many special structures all players in that team control. (Maybe have a behavior on the structure that adds 1 terrazine every X seconds to the controlling player / team?)
3. When 15 minutes have passed, the game ends and the team with most points are the winners.
I would appreciate if someone can upload a test map with a basic structure for the triggers
OP, how do you decide who controls a structure?
Whoever has the most units within X range? If both teams have units close to a structure, noone gets points?
Is it necessary to keep units close to the structure, or does the team keep getting points after capturing it even if noone is there?
@SackBaggins - The game ends after 15 minutes and a victory/defeat screen shall appear for winners and losers
@joey101d - Thank you! I will use this as a base and try to build more on it
@Rabbit - All players in a team has an ability on their "hero", which allows them to take control over structures. (It adds a behavior to the structure that changes who controls it.) One thing that concerns me is that the structure needs to belong to EVERYONE in the team, for the sake of vision and scoring points. So if player A takes control of it, player B, C and D should also gain the benefit from it
I dont understand the problem with this, except there are so many different ways of doing it.
I would just share vision of the structure with the relevant player group on unit behavior change, for example, save the team in a global variable and have a periodic trigger that runs and gives them "points", whatever that means.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
I wonder if anyone here would mind helping me make a (hopefully) simple point system. I usually make everything in the data editor in my maps and mods, but this point system requires triggers. I have made a very basic trigger so far, but I am not skilled enough to make this system work.
Short explanation of how the point system works in my mod:
Players play in two teams vs each other.
Out on the map, there are special structures players can take control of by using an ability. (Adds a behavior to the structure so it now belongs to the player)
Every X seconds, these structures give "points" to the team who controls them. (The more structures your team controls, the more points your team collects)
The total points of both teams are displayed on the screen, throughout the game, so players can see which team is leading. (See picture below of how it looks so far)
Required triggers:
1. One trigger displays and updates both teams current points in a window on the screen.
2. One trigger adds points to both teams every X seconds, depending on how many special structures all players in that team control. (Maybe have a behavior on the structure that adds 1 terrazine every X seconds to the controlling player / team?)
3. When 15 minutes have passed, the game ends and the team with most points are the winners.
I would appreciate if someone can upload a test map with a basic structure for the triggers
Thanks
So does the game restart after 15mins or do you need a victory screen after that?
this may help
OP, how do you decide who controls a structure? Whoever has the most units within X range? If both teams have units close to a structure, noone gets points? Is it necessary to keep units close to the structure, or does the team keep getting points after capturing it even if noone is there?
@SackBaggins - The game ends after 15 minutes and a victory/defeat screen shall appear for winners and losers
@joey101d - Thank you! I will use this as a base and try to build more on it
@Rabbit - All players in a team has an ability on their "hero", which allows them to take control over structures. (It adds a behavior to the structure that changes who controls it.) One thing that concerns me is that the structure needs to belong to EVERYONE in the team, for the sake of vision and scoring points. So if player A takes control of it, player B, C and D should also gain the benefit from it
I dont understand the problem with this, except there are so many different ways of doing it.
I would just share vision of the structure with the relevant player group on unit behavior change, for example, save the team in a global variable and have a periodic trigger that runs and gives them "points", whatever that means.