Renegade Projects Network Forums
Trigger for my "Insane AI" gamemode. - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Modding (https://forums.renegadeprojects.com/forumdisplay.php?fid=3)
+--- Forum: Red Alert 2 & Yuri's Revenge Editing (https://forums.renegadeprojects.com/forumdisplay.php?fid=8)
+--- Thread: Trigger for my "Insane AI" gamemode. (/showthread.php?tid=631)



Trigger for my "Insane AI" gamemode. - Guest - 11.02.2007

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


RE: Trigger for my "Insane AI" gamemode. - Marshall - 11.02.2007

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.


RE: Trigger for my "Insane AI" gamemode. - DCoder - 11.02.2007

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 )


RE: Trigger for my "Insane AI" gamemode. - Guest - 13.02.2007

Well, it seems generic prerequisites do now work. Unhappy Well, no can do. I have to find a another way to solve this.


RE: Trigger for my "Insane AI" gamemode. - Marshall - 13.02.2007

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.


RE: Trigger for my "Insane AI" gamemode. - Guest - 13.02.2007

Hmm, not a bad idea! Smile

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