0C92C45C-G=Allied Spy vs Allied Power,0CE1F59C-G,<all>,10,0,GAPOWR,0100000003000000000000000000000000000000000000000000000000000000,70.000000,10.000000,70.000000,1,0,1,0,<none>,0,1,1
This is just one of many triggers with this problem.
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Fri Jan 04, 2008 8:59 am Post subject:
It's the trigger that causes that. The normal Spy triggers say that when the enemy has that building, it must build it. It doesn't look if it has an Battle Lab then. If you want the AI only to build spies when it has a battle labe, you must have this:
Quote:
0C92C45C-G=Allied Spy vs Allied Power,0CE1F59C-G,<all>,10,1,GATECH,0100000003000000000000000000000000000000000000000000000000000000,70.000000,10.000000,70.000000,1,0,1,0,<none>,0,1,1
See what I have changed? The 0 is a 1, which mean that the AI will check if he has the building after the comma (dunno how to call that in English).
I also advise to use Deezire's INI guide. I've got it uploaded at some topic, I will give you the link when I find it...
EDIT: this is the topic. Scroll down untill you see an attachment by me...
clicky QUICK_EDIT
Well, infact ive read the guide and since its a spy trigger the action should be taken when the enemy owns an Allied Powerplant, otherway it will build spys even when not needed, and according to Deezire's guide the Techlevel described in the trigger is the value deciding wether the action can be triggered or not (Stopping the AI from building Prisms before battle lab, etc). And, it doesent do like this with all the triggers for example with the Floating discs vs power, which is triggered when the enemy owns 1 or more power plants (It still won't be triggered unless the AI owns a Yuri Battle Lab). _________________ R.I.P Xeno.
The Example code i posted is an Techceating trigger, even though the techlevel is set to 10 it still trains spys in the beginning of the game when only having barracks, this is an WW orginal trigger, only changed the techlevel from 3 to 10 trying to prevent it from Techcheating, with no success.
EDIT: A snippet from Deezires AI Guide about this:
Determines the TechLevel= setting which is required in order for this trigger to be used. Although the TechLevel= setting is partly useless to human players in Red Alert 2, this is used by the AI when it assembles TaskForces. The trigger will only be used when the AI has reached this TechLevel= setting through construction of the required structures in its tech tree - setting this value below that required for a particular unit can often lead to the AI using units for which it has not met the Prerequisite= requirements. It is best to set this to at least the setting required to build any units in the associated TaskForce(s). _________________ R.I.P Xeno.
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Fri Jan 04, 2008 4:57 pm Post subject:
Ehmm, in RA2 you can't set the TechLevel anymore, so that doesn't matter... (ok, you can set the TL with RP/NP, but it's still buggy)
EDIT: Ow, you just edited while I was posting...
*reads edit*
Huh, I didn't know that... QUICK_EDIT
After me and Hogo doing some research i think the Techlevel tag in the trigger is Obsolete, just look at theese 2 triggers:
Code:
0C92C45C-G=Allied Spy vs Allied Power,0CE1F59C-G,<all>,10,0,GAPOWR,0100000003000000000000000000000000000000000000000000000000000000,70.000000,10.000000,70.000000,1,0,1,0,<none>,0,1,1
Well, The Yuri Disc trigger is following the rules (Building after the Battle Lab is built)
The Allied Spy trigger isn't.
And, when looking into theese 2 triggers the Yuri Disc has techlevel 2 which is far below battle lab, and the Allied Spy has tech level 10 which is above the Battle Lab. If you when they are triggered the Yuri Disc is triggered when the AI owns a Yuri Battle Lab, and the Allied Spy is triggered when the enemy owns a powerplant (Which is in the beginning of the game).
This is why i think the Techlevel tag is Obsolete, but i need an confirmation. _________________ R.I.P Xeno.
Actially, there is an way. Change all the "When the enemy owns a certain object" tag to "When the AI itself owns a certain object". _________________ R.I.P Xeno.
Not my mod, a special AI project i'm and hogo are busy with, my mod is mostly onhold. And, your like never on MSN so its kindof hard to contact you _________________ R.I.P Xeno.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum