SlimJax
  • SlimJax
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
Hi. And ye as you can see from the subject, I have a question about AI to create custom teams. When I say create, I mean build, like vehicles from War Factory. I have managed to copy the scripting style of Generals Challenge (GC_) wich goes like this:

Team Rebels
2 GLAinfantryrebel

Automatically Reinforce Whenever Possible.
Team Members Are AI Recruitable
Team Created Once And Once Only
Execute Assiocated Actions

Priority: 600

Home Position: Waypoint 3

Condition: Condition (SCRIPT)

--> Behavior

On Create: Create (SCRIPT)

Intial Team Behavior: Agressive

Focus Single Target

--> Scripts

Condition (SCRIPT)

[S A n d] [E N H]
*** IF ***
True.
*** THEN ***
Null operation. (Does nothing.)



Create (SCRIPT)

[S A n d] [E N H]

*** IF ***
True.
*** THEN ***
Team '' begins hunting using Ability 'Command_GLAInfantryRebelCaptureBuilding'.


---> Build List

GLA Barracks(Unlimited Rebuilds)
GLA Command Center (Already Built)(Unlimited Rebuilds)
GLA Supply Depot (Unlimited Rebuilds)

---> Player List

Player0002 (No Enemies) (AI Controlled)(Faction GLA)
Player0001 (No Enemies) (Faction USA)
PlyCivilian (No Enemies) (Faction Civilian)



Back to the topic. The AI does build the structures from Build List, but after that he does not produce the rebel team nor workers.

I'd appreciate help. No mods were applied.

Sorry for bad english I'm from Finland and I am only fifteen years old.

Sponsor
i^love^mixery
13 years ago
not bad for fifteen years, both the english and the understanding how building teams works.

but i cant do anything about this unless i see the map. you will have to attach it. ill have to do some testing myself since i am not really used to scripting AI.
BR-Alexandre
13 years ago



--> Scripts

Condition (SCRIPT)

[S A n d] [E N H]
*** IF ***
True.
*** THEN ***
Null operation. (Does nothing.)



Create (SCRIPT)

[S A n d] [E N H]

*** IF ***
True.
*** THEN ***
Team '' begins hunting using Ability 'Command_GLAInfantryRebelCaptureBuilding'.



Originally Posted by: SlimJax 



the 1st script must be set as a condition to make a team. the AI should make it whenever possible. the 2nd scripts must be put in behavior tab of a team, in this case, of rebels.

according to your post the scripts are fine but if they don't build the team maybe you put wrong unit in the team, like player is GLA stealth and you put toxic rebels as team members.one thing i can tell, if they don't build the team, the problem to be fixed is in this area...

for the workers, make the team and set no behavior, condition or priority just create the team and put some workers on it.
"The Only Way To Have Peace is Prepare for War" <---I forgot who said this...
"Lasers make superior weapons!" <--- Townes
"Laser crusader ready for engagement" <--- Laser Crusader Tank
"Tactical lasers online" <--- Avenger Support Venhice
"Storm climbed mountain" <--- Pathfinder Elite Infantry
"Ready for covert mission" <--- Stealth Fighter Tactical Support
i^love^mixery
13 years ago
he did that correctly already, BR-Alexandre. i will take a look into it if you attach the map, SlimJax.
SlimJax
  • SlimJax
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
Thanks for all who replied. Here is the map as attachment.   testmap_MD.zip (6kb) downloaded 8 time(s).
i^love^mixery
13 years ago
took me some time, now i got it:

"Team created once and only once" is marked, that causes the error.

because of this thing the comp attempts to build the team ONCE and that is at the start of the game because of the condition (= true) but he fails to build it because he has no barracks yet.

just deselect "Team created once and only once" for this team0002 and it works fine 🙂
SlimJax
  • SlimJax
  • 50.25% (Neutral)
  • Private Topic Starter
13 years ago
Thank you :)this will help me doing the campaign.