Jump to content

(RA1) How to do this? AI create small team and attack?


atenzor

Recommended Posts

Hi guys, first of all, this looks like an amazing community and fantastic website, I am very happy to be here.

 

I have the latest version of the scenario editor for red alert 1 and pretty much understand how most if not all things work, but couple of things I tried and can't figure out. So here I am asking for your help.

 

What I want to achieve is simple, but not sure how to do it exactly with triggers/teamtypes.

 

I want the AI in single player after a timed period, to start building infantry/vehicles and create a small team everytime 5 of them are built and send them to a certain waypoint and once there, to attack enemy base.

 

Basically I want the AI to create and send enemy troops to my base. Thanks!

 

Link to comment
Share on other sites

If the team management is anything like C&C1, then there are no actual commands to make the AI "build teams". Teams just have their units set to either be produced by the AI, or not, and when creating teams the AI just looks for any available units on the map.

 

Anyway, this might help:

http://cnc.wikia.com/wiki/Red_Alert_Single_Player_Mission_Creation_Guide

Link to comment
Share on other sites

If the team management is anything like C&C1, then there are no actual commands to make the AI "build teams". Teams just have their units set to either be produced by the AI, or not, and when creating teams the AI just looks for any available units on the map.

 

Anyway, this might help:

http://cnc.wikia.com/wiki/Red_Alert_Single_Player_Mission_Creation_Guide

 

Yes the ra1 engine is based on the tiberian dawn engine, however I will do more research into this, I am pretty sure there is a way to do this. It is not of course done with one button/command, but I am sure with a combination of tricks, there is a way to do this, just find out how.

Link to comment
Share on other sites

create some teams and make all teams set "prebuild team members ..." and "only autocreate teams uses teamtype" and Num and Max > 1

 

There are two ways to make the enemy create a team:

1. trigger:

event - time: 25-100

action - create team: ...

 

2. trigger

event - any

action1: production begins ...

action2: autocreate begins ...

 

In the first case you select which team is produced, in the second case AI automatically create one of your teams.

 

RA1 autocreate teamtypes are a bit different than in TD. A iq<5 house seems to prebuild units only for a specified teamtype and creates this teamtype after all units are built. the frequency of autocreating is regulated by an ini tag

AutocreateTime=3        ; average minutes between creating an 'autocreate' team

 

I recommend this excellent video, showing many features of RA mapping.

https://www.youtube.com/watch?v=WVHDVnE6X6s

 

Link to comment
Share on other sites

create some teams and make all teams set "prebuild team members ..." and "only autocreate teams uses teamtype" and Num and Max > 1

 

There are two ways to make the enemy create a team:

1. trigger:

event - time: 25-100

action - create team: ...

 

2. trigger

event - any

action1: production begins ...

action2: autocreate begins ...

 

In the first case you select which team is produced, in the second case AI automatically create one of your teams.

 

RA1 autocreate teamtypes are a bit different than in TD. A iq<5 house seems to prebuild units only for a specified teamtype and creates this teamtype after all units are built. the frequency of autocreating is regulated by an ini tag

AutocreateTime=3        ; average minutes between creating an 'autocreate' team

 

I recommend this excellent video, showing many features of RA mapping.

https://www.youtube.com/watch?v=WVHDVnE6X6s

 

OK nice, but now from the moment the team is created, how to send that team to attack right away the enemy base?

 

Link to comment
Share on other sites

in "orders" you can give them a scripted mission:

patrol to waypoint ... 1
patrol to waypoint ... 2
patrol to waypoint ... 3
patrol to waypoint ... 4
do this ... hunt

or if you want your teamtypes attack a more defined target:

attack... base defences

 

they will find their way in all case.

Link to comment
Share on other sites

I guess I should rephrase what I am looking for exactly:

 

AI has already a barracks

After a certain time passes (looped time, ex: every 10 minutes),

AI builds 5 infantry from the barracks automatically and sends them

to attack my base.

 

And every 10 minutes, this process repeats all automatically. Is there a way to do this?

 

I can achieve all the things you guys suggested, but somehow not exactly like this at the same time.

Let me know if it is possible or remotely possible and thanks.

 

edit: maybe a combination of triggers, cell triggers, teamtypes and additional AI tags in the mission ini?

Link to comment
Share on other sites

First you going to need to make 3 triggers.

 

This will set the Autocreate. This many not be needed but best to make it anyway.

 

Name:      auto
Owner:     USSR
Existence: temporary (any linked event -> switch, destroy)
Type:      simple (event1 => action1 [+ action2])

Event 1:   Elapsed Time (1/10th min)... 0


Action 1:  Autocreate Begins... USSR

 

This will force the game to make team Inf1 every 10 min. This is a constant and will loop over and over.

 

Name:      inf1
Owner:     USSR
Existence: constant (any linked event -> switch)
Type:      simple (event1 => action1 [+ action2])

Event 1:   Elapsed Time (1/10th min)... 100


Action 1:  Create Team... inf1

 

Production trigger will let the AI build units.

 

Name:      prod
Owner:     USSR
Existence: temporary (any linked event -> switch, destroy)
Type:      simple (event1 => action1 [+ action2])

Event 1:   Elapsed Time (1/10th min)... 0


Action 1:  Production Begins USSR

 

This is the Team (TeamType) called for in trigger inf1.

Name:     inf1
Owner:    USSR
Priority: 7
Max:      0
Num:      1
WayPoint: -1

Team:     Mini Gunner           5

Orders:   0 Attack... Buildings - any

Options:  Prebuild team members before team is created.

Linked triggers: inf1

 

With this set up the USSR AI will build a team every 10 mins.

Link to comment
Share on other sites

First you going to need to make 3 triggers.

 

This will set the Autocreate. This many not be needed but best to make it anyway.

 

Name:      auto
Owner:     USSR
Existence: temporary (any linked event -> switch, destroy)
Type:      simple (event1 => action1 [+ action2])

Event 1:   Elapsed Time (1/10th min)... 0


Action 1:  Autocreate Begins... USSR

 

This will force the game to make team Inf1 every 10 min. This is a constant and will loop over and over.

 

Name:      inf1
Owner:     USSR
Existence: constant (any linked event -> switch)
Type:      simple (event1 => action1 [+ action2])

Event 1:   Elapsed Time (1/10th min)... 100


Action 1:  Create Team... inf1

 

Production trigger will let the AI build units.

 

Name:      prod
Owner:     USSR
Existence: temporary (any linked event -> switch, destroy)
Type:      simple (event1 => action1 [+ action2])

Event 1:   Elapsed Time (1/10th min)... 0


Action 1:  Production Begins USSR

 

This is the Team (TeamType) called for in trigger inf1.

Name:     inf1
Owner:    USSR
Priority: 7
Max:      0
Num:      1
WayPoint: -1

Team:     Mini Gunner           5

Orders:   0 Attack... Buildings - any

Options:  Prebuild team members before team is created.

Linked triggers: inf1

 

With this set up the USSR AI will build a team every 10 mins.

 

I don't know how to thank you enough, this is awesome!!! it actually works!!! :)

 

Now I can finally experiment couple of things with this method. Thanks a lot again! Problem solved

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...