IPB

Welcome Guest ( Log In | Register )


> Editing AI
Warlord
post May 8 2007, 07:34 PM
Post #1


Artillery
Group Icon

Group: Members
Posts: 988
Joined: 21-October 06
From: Barnsley, UK
Member No.: 61
Alliance: GDI
Favorite game: Tiberian Sun



I need some AI on the second version of my map, i need it so that they will attack every so often. smile.gif (Like in the TS skirmish) How can i do this? Or is there even a way to do this? huh.gif


--------------------

Signature By Aro^

"So long as there are men, there will be wars." - Albert Einstein.

Flying Saucer..
Go to the top of the page
 
: | +Quote Post
 
Start new topic
Replies
Robo fish
post May 8 2007, 10:24 PM
Post #2


Attack Cycle
Group Icon

Group: Members
Posts: 304
Joined: 21-October 06
From: Quebec, Canada
Member No.: 22
Alliance: Scrin
Favorite game: Tiberian Sun



QUOTE (Warlord @ May 8 2007, 03:34 PM) *
I need some AI on the second version of my map, i need it so that they will attack every so often. smile.gif (Like in the TS skirmish) How can i do this? Or is there even a way to do this? huh.gif

Yes there is. Simply make the following Triggers :
Autocreate : When the Trigger is activated, the computer player randomly creates a team from the TeamType section.

Name : *auto : you can change the name

Event : Time : I suggest 3 for already made players base so it harder. Other than that, set the value to 30-50.

Action : Autocreate

Side : AI side

Teamtype : None


Production : Reproduce destroyed buildings with using BaseIt, enables the associated side to create teams.

Name : *prod : you can change the name

Event : *Time : I suggest 3 for already made players base so it harder. Other than that, set the value to 30-50.

Action : Production

Side : AI side

Temtypes : None

Just create Teams that you want the AI to attack with. The more teams there are, the more fun you will get in destroying them. (create a lot for variety).

Don't forget in the teamtypes window, to select "Create Team" so it won't come out as reinforcement.


--------------------

QUOTE(Ixith)
dude.......get this.......in my Latin class tomorrow........wer having an Orgi
Go to the top of the page
 
: | +Quote Post
Robo fish
post May 9 2007, 06:36 PM
Post #3


Attack Cycle
Group Icon

Group: Members
Posts: 304
Joined: 21-October 06
From: Quebec, Canada
Member No.: 22
Alliance: Scrin
Favorite game: Tiberian Sun



QUOTE (Robo fish @ May 8 2007, 06:24 PM) *
Event : Time

Was it this you were looking for.
QUOTE (Robo Fish)
Production : Reproduce destroyed buildings with using BaseIt,enables the associated side to create teams.

You must have a production trigger for the AI to create team.


--------------------

QUOTE(Ixith)
dude.......get this.......in my Latin class tomorrow........wer having an Orgi
Go to the top of the page
 
: | +Quote Post
Nyerguds
post Dec 8 2007, 02:42 PM
Post #4


Cyborg
Group Icon

Group: Members
Posts: 370
Joined: 22-October 06
From: Flanders (Belgium)
Member No.: 97
Alliance: Nod
Favorite game: Tiberian Dawn



QUOTE (Robo fish @ May 9 2007, 07:36 PM) *
You must have a production trigger for the AI to create team.

Wrong. Production is PURELY to enable (re)building the buildings in the [BASE] section list. Create Team and Autocreate triggers work fine without it.
Not to mention "Create Team" doesn't even necessarily mean the team is built from a factory. In missions without a base, teams are often made from units that are already on the map.

The full list of triggers & what they do can be found here:
http://cnc2sw.planetcnc.gamespy.com/stuff/ccmanual.txt



Another note... I strongly advise against giving Time triggers a specific side. It frequently causes triggers never to be executed.

To make this perfectly clear... the specified side of a trigger is NOT THE SIDE WHO GETS THE TRIGGER EFFECT. It is the ONLY side that can ACTIVATE the trigger.

Easy example: if you see this in a GDI mission

holy=Player enters,Nuclear Missile,0,GoodGuy,None,0

it means GDI is the one that has to enter the cell. When a Nod player enters the cell, nothing will happen.
And the GDI player will NOT receive a nuclear missile to launch, he will get it launched at his base. This is not just for this trigger, the logic applies to ALL triggers.

As for Lin Kuei Ominae's example up there... I 'm not sure if a 'Discovered' trigger will work when no team is specified. It is possible though. I suspect that in single player, 'Discovered' just means that the specified unit is not in the shroud area, so it might work. As far as I know the game doesn't keep a map shroud status for the AI.

This post has been edited by Nyerguds: Dec 8 2007, 03:00 PM


--------------------
Go to the top of the page
 
: | +Quote Post



Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2025 - 09:50 AM


XGhozt.com