Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Tue Jul 07, 2026 1:44 pm
All times are UTC + 0
Help with AI Trigger
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ousagi
Flamethrower


Joined: 02 Nov 2022

PostPosted: Fri Jul 03, 2026 2:01 pm    Post subject:  Help with AI Trigger Reply with quote  Mark this post and the followings unread

I was able to make AI Triggers to work on a map before back in 2023 but I don't understand why I could make it work anymore

Things that I did:
    - Set the Basic->Ignore global ai Triggers to yes.
    - Created an AI Trigger Type to create a Rhino Tank if the player has 0 or more credits.
    - Have the weights set to 1500, 1300, 1500.
    - Also have that AI Trigger Type enabled.
    - Have a trigger with the action 3 Production Begins, 74 AI triggers begin, and 38 Make Enemy.
    - Gave both Russia and America(Me) credits in House.
I think this is all that I need to do to make the AI work correct?
Changing Basic->Ignore global ai Triggers to no does make the AI create units but I need the AI to be using the local ones only.

Below I provide a map that could just be put in the directory to test immediately.
It can be played in the Allied first mission for YR. This is down to the things I did,
narrowing it down to just those.

Please help. I had been practicing on another mod since I wanted to actually push forward.
Working on my personal mod made me realize I was more hesitant to do anything since I'm afraid it wouldn't be what I wanted. So I started practicing on a different mod.
Even adding new stuff(tilesets, as in completed tileset and other stuff for practice) I couldn't make in my personal mod because I'm thinking too much on what should be added.

Just need to make the AI actually use the local AI Triggers and that should be enough.



ICFRA Practice 2.png
 Description:
Completed tilesets with new ore and gem + fence, and other miscellaneous stuff
 Filesize:  365.42 KB
 Viewed:  93 Time(s)

ICFRA Practice 2.png



ICFRA Practice.png
 Description:
Actually use WAE now. I found out what was causing the slowdown
 Filesize:  2.28 MB
 Viewed:  93 Time(s)

ICFRA Practice.png



all01umd.map
 Description:

Download
 Filename:  all01umd.map
 Filesize:  83.11 KB
 Downloaded:  2 Time(s)


Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Sun Jul 05, 2026 7:36 am    Post subject: Reply with quote  Mark this post and the followings unread

Here is a test map created sometime ago. I have kept team as base defense and 5000 weights for testing. If it works, make changes one by one and use.



SP_AITriggerTest.7z
 Description:

Download
 Filename:  SP_AITriggerTest.7z
 Filesize:  11.61 KB
 Downloaded:  2 Time(s)


Back to top
View user's profile Send private message
Ousagi
Flamethrower


Joined: 02 Nov 2022

PostPosted: Sun Jul 05, 2026 8:53 am    Post subject: Reply with quote  Mark this post and the followings unread

Tried your map and your map has the Basic->Ignore Global AI Trigger set to no,
which would've use the Global ones with the Local ones. Check image below.

Setting it to yes makes the AI not build anything at all. I had made a map before that I could still use,
that had the Ignore Global AI Trigger set to yes and it works. Problem is that I couldn't recreate it anymore.

I wanted the AI to use the Local AI Triggers only. Like I had done on my map before.

The map I provided had Ignore Global AI Trigger set to yes. But if it was changed, then yes it would work,
but with Global AI Triggers as well.

PS. It does actually build something, which is the 2 Conscripts. Which is weird because
I thought it worked because it had IsBaseDefense checked but no. Another things that's
weird is that if I change it to the 2 HTNK Taskforce it doesn't work anymore. What does it mean?

Does your map work with Ignore Global AI Trigger set to yes? Like it only creates the Local AI Triggers?

UPDATE: Nevermind, IT DOES WORK! Shocked In ICFRA. Hold on I'll update if the I can recreate it in my map.
UPDATE 2: Tried to recreate your map but it still doesn't work. I don't understand what I'm missing.
Your map works great! But when I set mine it doesn't work. Please check the map file below.

Retry the steps you do when you try to make the AI Triggers to see which step I am missing or done incorrectly



Tesla Tank from Global.png
 Description:
 Filesize:  1.03 MB
 Viewed:  43 Time(s)

Tesla Tank from Global.png



ALL01UMD.7z
 Description:

Download
 Filename:  ALL01UMD.7z
 Filesize:  2.69 KB
 Downloaded:  1 Time(s)


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.2359s ][ Queries: 16 (0.0136s) ][ Debug on ]