Chapter IV

.ini file examples

by mgP <parker@telis.org>


******************************

Introduction

Here are some examples of triggers / teamtypes in an .ini file. These are
only here to guide you, and give you an idea on how triggers / teamtypes
work.

******************************

ALSO, IF YOU HAVE ANY QUESTIONS ABOUT ANYTHING HERE, OR ANYTHING NOT
LISTED HERE, DO NOT EMAIL ME. INSTEAD, ASK THEM AT OUR WEB BOARD AT
http://www.io.org/~isarog/c-c/php.cgi/~isarog/c-c/wwwboard/wwwboard2.html

******************************

   Table of Contents 
     1.  .ini file examples
     2.  You're done!

******************************

Every 150 time units, GDI will Ion strike you. 

[TRIGGERS] 
ion=Time,Ion Cannon,150,GoodGuy,None,2 

******************************

Every 280 time units, Nod nukes you. 

[TRIGGERS] 
nuke=Time,Nuclear Missile,280,BadGuy,None,2 

******************************

Every 120 time units, GDI sends 4 A-10s to Napalm your units. 

[TRIGGERS] 
air=Time,Reinforce.,120,GoodGuy,a10,2 

 
[TEAMTYPES] 
a10=BadGuy,1,0,0,0,0,7,0,0,0,1,A10:4,0,0 

******************************

Every time I destroy 4 Nod buildings, they create a team of 3 engineers
and attack my base for 90 time units.

[TRIGGERS] 
engi=# Bldgs Dstr.,Create Team,4,BadGuy,atck,2 

[TEAMTYPES] 
atck=BadGuy,1,0,0,1,0,15,1,0,0,1,E6:3,1,Attack Base:90,0,0 

******************************

Nod has a production trigger activated after 3 time units:

[TRIGGERS] 
prod=Time,Production,3,BadGuy,None,0 

******************************

After 10 time units, GDI will land a Chinook at cell 814 and unload 1 MCV. 

[WAYPOINTS] 
3=814 

[TRIGGERS] 
mcv=Time,Reinforce.,10,GoodGuy,drop,0 
 
[TEAMTYPES] 
drop=GoodGuy,0,0,0,0,0,7,0,0,0,2,TRAN:1,MCV:1,2,Move:3,Unload:3,0,0 

******************************

When the Mammoth Tank in cell 219 is destroyed, a flare will light up at
cell 1500 for Nod.

[WAYPOINTS] 
25=1500 

[UNITS] 
003=GoodGuy,HTNK,256,219,0,Area Guard,flre 

[TRIGGERS] 
flre=Destroyed,DZ at 'Z',0,BadGuy,None,0 

******************************

When all of Nod forces are destroyed, you win the mission. 

[TRIGGERS] 
win=All Destr.,Win,0,BadGuy,None,0 

******************************

When all GDI forces are destroyed, you lose the mission.

[TRIGGERS] 
lose=All Destr.,Lose,0,GoodGuy,None,0 

******************************

At 40 time units, a GDI Chinook drops 3 Mammoth Tanks and 1 Commando
at waypoint 1 (cell 200), those units then move to waypoint 5 (cell 500)
and attack my base.

[TRIGGERS] 
doom=Time,Reinforce.,40,GoodGuy,raid,0 

[TEAMTYPES] 
raid=GoodGuy,0,0,0,0,0,7,0,0,0,3,TRAN:1,HTNK:3,RMBO:1,4,Move:1,Unload:1,
Move:5,Attack Base:90,0,0

******************************

Every 80 time units Nod creates a team of 5 Nod Buggys which go to cell 100,
then 200, then 400, then 600, and then attack my units.

[WAYPOINTS] 
1=100 
2=200 
3=400 
4=600 

[TRIGGERS]
buggy=Time,Create Team,80,BadGuy,kill,0 

[TEAMTYPES]
kill=BadGuy,1,0,0,1,0,15,1,0,0,1,BGGY:5,5,Move:1,Move:2,Move:3,Move:4,
Attack Units:90,0,0

******************************

If side Nod is discovered, a nuke hits your base. 

[TRIGGERS] 
nuke=House Discovered,Nuclear Missile,0,BadGuy,None,0 

******************************

When you (Nod) enter cell 185, 186, 187, or 188, GDI creates a team of 3
Minigunners and 1 Medium Tank and attacks your units.

[CELLTRIGGERS] 
185=atck 
186=atck 
187=atck 
188=atck 

[TRIGGERS]
atck=Player Enters,Create Team,0,BadGuy,zoop,0 

[TEAMTYPES]
zoop=GoodGuy,1,0,0,1,0,15,1,0,0,2,E1:3,MTNK:1,1,Attack Units:90,0,0

******************************

2. You're done!

Well, that is all I'm going to do for .ini entry examples. Remember, this
was only for reference, and you should expand beyond these entries in your
mission.

