I'm freaking out! I am looking at this for an hour or something but i cant find any mistakes.
Short explanation what the trigger does:
- There are 5 regions on the map wich can be conquered by putting units inside
- The more units a team puts inside a region the faster it is conquered (<- doesnt work like it should)
- Booleans Red/True store if there are any Red/Blue units inside the region
Don't have time to go in depth and really look and I am not completely sure what your trying to do with this trigger. Ill try to help later when I get off of work.
Taking a quick look however, you set UnitsofTeamInsideRegion (and all of Booleans and other variabls) to 0 every .8 seconds, then you try to modify it by +1 and/or True/False. Are you only trying to count the number of units in a region for .8 seconds? If not, those will become 0 (or true/false) every .8 seconds not matter what so it doesn't make sense to try to modify them.
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
this trigger checks how many units there are in a region and sets the "incrementForRegion"-variable
incrementForRegion is used in another trigger where it is added to the variable storing the ownership (+XX if team 1 is conquering, -XX if red team 0 is conquering)
In this trigger im checking if there are any units of any team inside the regions (at the moment) and set everything that is needed to adjust ownership. I have to do this periodically because conquering should stop/start but I guess i could have done this with unit enters/leaves region ...
It looks like you've included an extra negative when you set the variable (if you want to add/subtract from a variable use modify not set). On a couple other notes, yes you are correct in doing this style of system without a unit enters/leaves trigger but you should move this to a threaded definition. Also what bulletbutter said is correct in that you do not need a number of the things you have included as extra such as setting the booleans from the start.
I asked a friend (who is more familiar with the editor than me) sent him the map and we skyped about this for about one hour: still didnt work.
We were both quite sure the logic is correct (Units are counted correctly and setting IncrementForRegion to a fix value like ±1 works fine) so I decided not to adjust the capture speed and always use ±1
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey!
I'm freaking out! I am looking at this for an hour or something but i cant find any mistakes.
Short explanation what the trigger does: - There are 5 regions on the map wich can be conquered by putting units inside - The more units a team puts inside a region the faster it is conquered (<- doesnt work like it should) - Booleans Red/True store if there are any Red/Blue units inside the region
Don't have time to go in depth and really look and I am not completely sure what your trying to do with this trigger. Ill try to help later when I get off of work.
Taking a quick look however, you set UnitsofTeamInsideRegion (and all of Booleans and other variabls) to 0 every .8 seconds, then you try to modify it by +1 and/or True/False. Are you only trying to count the number of units in a region for .8 seconds? If not, those will become 0 (or true/false) every .8 seconds not matter what so it doesn't make sense to try to modify them.
Hey Bulletbutter
My system for control points is the following:
In this trigger im checking if there are any units of any team inside the regions (at the moment) and set everything that is needed to adjust ownership. I have to do this periodically because conquering should stop/start but I guess i could have done this with unit enters/leaves region ...
It looks like you've included an extra negative when you set the variable (if you want to add/subtract from a variable use modify not set). On a couple other notes, yes you are correct in doing this style of system without a unit enters/leaves trigger but you should move this to a threaded definition. Also what bulletbutter said is correct in that you do not need a number of the things you have included as extra such as setting the booleans from the start.
Thanks four having a look at this!
I asked a friend (who is more familiar with the editor than me) sent him the map and we skyped about this for about one hour: still didnt work. We were both quite sure the logic is correct (Units are counted correctly and setting IncrementForRegion to a fix value like ±1 works fine) so I decided not to adjust the capture speed and always use ±1