i was wondering if it's possible to setup a concept where if an enemy captures ONE particular command post, their reinforcement could rise by a set amount....but once again, i'll repeat, just one command post on the map like that, and it only happens when one team captures it.....
AJay
Command Posts vs. Reinforcements
Moderator: Moderators
-
Aussie_Irishman
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
-
Rekubot
- Jedi

- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
RE: Command Posts vs. Reinforcements
LoL Zerted, somehow I get the feeling that Aussie was wondering exactly how to do such a thing
. Are you willing to help him out or was the blunt 'yes' a subtle meaning for 'it's in the docs'? 
-
Qdin
- Old School Staff
- Posts: 2059
- Joined: Wed Feb 23, 2005 9:54 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Command Posts vs. Reinforcements
It's in the .lua files for some of the shipped maps
In some of the missions it adds X amount of reinforcements when an objective is done, or a CP is taken.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
RE: Command Posts vs. Reinforcements
The blunt yes was just answering the question he asked. I don't know if Aussie_Irishman wants to learn how to do it himself, but doesn't want to spend the time trying then discover it isn't possible. Now that he knows its possible, he might want to try to figure it out on his own. If not, he could just look at the quote contained in the post. (By the way, read the scripting system documentation. There is a whole section on commands posts.)
(Oh and admins, don't just lock this thread becasue I posted one possible solution)
I haven't tested this ingame, but I think I spelled everything correctly. Don't just paste this code into your map. Read it over and if you don't/can't understand it, say so.OnFinishCaptureName(
function(post, holding)
if [ENEMY TEAM NUMBER] ~= GetCommandPostTeam(post) then return end
AddReinforcements( [THE TEAM NUMBER TO ADD REINFORCEMENTS TO], [THE AMOUNT OF REINFORCEMENTS TO ADD TO THE TEAM] )
end, "[YOUR CP NAME]"
)
(Oh and admins, don't just lock this thread becasue I posted one possible solution)
-
Aussie_Irishman
RE: Command Posts vs. Reinforcements
thank you very much Zerted, and well looking back on it i never really asked for anything further than a "yes or no", but the solution is good nonetheless...i needed to know if it was possible for the design on my new map in a series.
AJay
AJay
-
Qdin
- Old School Staff
- Posts: 2059
- Joined: Wed Feb 23, 2005 9:54 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
RE: Command Posts vs. Reinforcements
Interesting, nonetheless
We'll keep it up for more solutions with adding reinforcemnts 
