Renegade Projects Network Forums

Full Version: Trigger for my "Insane AI" gamemode.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Guest

Hello again!

This time I am stuggling with problem with few triggers, meant ONLY for my "Insane AI" gamemode. That game mode is for some extra challenge, AI cheats with money 5 times as much normaly and builds bigger bases, (for example two war factories)

I did a trigger to the AI and I want only the Insane AI to use it.
So, because only my insane AI builds two war factories so I tried to do trigger which will launced only when AI has two war facries (Orginal and the clone)

Code:
[0CDCD916-G]
Name:                Soviet Apocalypse - Insane
TeamType #1:         0666811-G(Soviet Apocalypse - Insane)
TeamType #2:         <none>(no team)
Owner:               Africans
Side:                2 - Soviets / Nod
TechLevel:           7
Trigger Type:        0 - Enemy house owns NUMBER of TECHTYPE
Parameter:           FACTORY     <--------- should be ok?
Condition:           3 - more or equal to NUMBER
Number:              2
Default Probability: 2000.000000
Minimum Probability: 70.000000
Maximum Probability: 2000.000000
Use In Skirmish:     yes
Unknown Flag:        0
Is Base Defense:     no
Use in Easy Diff:    no
Use in Medium Diff:  no
Use in Hard Diff:    yes
-------------------------------

But no, the AI does not use it...Anyone got any ideas? Confused
Africans = Libya, so are you playing against Libya?

If so, then I imagine that FACTORY is probably not okay.
You could always try using an actual prerequisite rather than a prerequisite group. Try it and see if it works.
Is your cloned factory placed in the PrerequisiteFactory= line? If yes, then it seems to suggest that generic prerequisites are not usable in this case.
(Multiple factories for the AI cause other issues anyway.)

(Funny, this is the first time I have ever seen anyone using my AI Editor's Export function Big Grin )

Guest

Well, it seems generic prerequisites do now work. Unhappy Well, no can do. I have to find a another way to solve this.
The AI should always build your second war factory second, right? So just have 1 of those as the trigger condition. It's not perfect, but it's the best I can think of.

Guest

Hmm, not a bad idea! Smile

I just have to copy the Factory's ini's from the gamemode ini to rulesmd.ini Smile