Jump to content
We see you're using an ad blocker of some kind. And hey, that's okay! Some of us do, too! We just want you to know
that we don't use conventional spammy ads at CNCNZ.com. We only link to our own internal projects, or other sites
within the Command & Conquer community! Who knows, you might see a mod or download you like! Thanks!
Sign in to follow this  
DustxTesla

AI using modded units(YR)

Recommended Posts

Ok guys , im starting to get bored with the same artificial intelligence´s unit attacks , so i want to add my new units for new types of attacks

And i want the AI to build my new structures:

Soviet Airport + MiG and Cosmonauts

thump_8040145wethicon.png

 

Yuri Airpad + Starflare Bombers , Psi Commando and the ''Psychic Disk''

 

thump_8040181wethicon.png

 

Im Starting with the cosmonaut one , but its not working , looks like this:

 

[TaskForces]

132=0D082BEC-G

 

 

[0D082CEC-G]

Name=5 Cosmonauts

0=5,LUNR

Group=-1

 

 

[09B4E9BC-G]

Name=Soviet Cosmonaut - H1

VeteranLevel=1

MindControlDecision=0

Loadable=no

Full=no

Annoyance=no

GuardSlower=no

House=<none>

Recruiter=no

Autocreate=yes

Prebuild=no

Reinforce=no

Droppod=no

UseTransportOrigin=no

Whiner=no

LooseRecruit=no

Aggressive=no

Suicide=no

Priority=5

Max=1

TechLevel=0

Group=-1

OnTransOnly=no

AvoidThreats=yes

IonImmune=no

TransportsReturnonunload=no

AreTeamMembersRecruitable=no

IsBaseDefense=no

OnlyTargetHouseEnemy=no

Script=0ABA6DBC-G

TaskForce=0D082CEC-G

 

[AITriggerTypes]

0C8B81BC-G=Soviet Cosmonauts - H1,09B4E9BC-G,<all>,3,4,<none>,0000000003000000000000000000000000000000000000000000000000000000,50.000000,10.000000,50.000000,1,0,1,0,0CB246CC-G,0,1,

 

Im very confused and i dont know what to do to make it work ,

 

I know to put a new unit:

 

1 = normaluitUIname

2 = modunitUIname

 

But to add a new taskforce, teamtype, aitriggertype ....?????

Thanks in advance

 

Btw wrong language edit , dont know english very much :P

Edited by DustxTesla

Share this post


Link to post
Share on other sites

The trigger is telling the Allies to use it. That's why it doesn't work. Also, only medium, and, presumably, hard AIs will even try to use it. I think that's intended at least.

 

I don't think you need the secondary TeamType attached either. Probably another reason why you don't see it in use.

 

Also, you don't need to have the same naming style as Westwood. I use my own for sanity and it works just fine.

Share this post


Link to post
Share on other sites

The trigger is telling the Allies to use it. That's why it doesn't work. Also, only medium, and, presumably, hard AIs will even try to use it. I think that's intended at least.

 

I don't think you need the secondary TeamType attached either. Probably another reason why you don't see it in use.

 

Also, you don't need to have the same naming style as Westwood. I use my own for sanity and it works just fine.

 

Please can u show me how the trigger needs to looks like?'

Share this post


Link to post
Share on other sites

SAI00001-G=Soviet Kirov/Choppers E/H 1A,ST000001-G,<all>,9,4,<none>,0000000003000000000000000000000000000000000000000000000000000000,90.000000,50.000000,80.000000,1,0,2,0,<none>,1,0,1

 

Right out of my AI file. You should spot the differences right away.

Share this post


Link to post
Share on other sites

ok , got it work and used the first example for all the other units, now i have another problem , i unlocked the techstolen requeriment for the special units (chrono commando, psi commando , chrono ivan )

 

the point is :I added , for example a chrono commando in a AI unit order , however , doesnt work in game, looks like this:

 

 

[0617E80C-G]

Name=2 GIs, 2 Guards,1 Chrono Commando

0=2,E1

1=2,GGI

2=1,CCOMAND

Group=-1

 

Oh ,and a question:

 

The trigger is telling the Allies to use it. That's why it doesn't work.

 

where is the part the trigger is telling that?? Please show me specifically

Share this post


Link to post
Share on other sites

Look at the trigger closely. See where that 2 is? Just before that none? That's what tells the game which side to use. 1 is Allies, 2 is Soviets, 3 is Yuri and 0 is any.

Share this post


Link to post
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
Sign in to follow this  

×