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 Mon Feb 10, 2025 8:58 pm
All times are UTC + 0
Is there anyway to stop ai from selling when their engineer capture my structure?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Wed Oct 25, 2023 11:10 am    Post subject:  Is there anyway to stop ai from selling when their engineer capture my structure? Reply with quote  Mark this post and the followings unread

Is there anyway to stop ai from selling when their engineer capture my structure and instead use them to their advantage?

Back to top
View user's profile Send private message
McPwny
Chem Warrior


Joined: 29 Jan 2018

PostPosted: Wed Oct 25, 2023 12:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

actually there is. that tag needsengineer=yes,which is used for tech buildings, has the function
of making the AI not sell the building when captured. it also makes engineers consider it a target
in certain script cases

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Oct 26, 2023 11:40 am    Post subject: Reply with quote  Mark this post and the followings unread

And why would you want the AI to keep it? Like if they capture your power plant, wouldn't you destroy/recapture it? How have they benefited from the initial attack then?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Tue Oct 31, 2023 6:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

its more meant to structures like war factory, nuclear silo, barracks. actual structures that benefit the enemy

Back to top
View user's profile Send private message
McPwny
Chem Warrior


Joined: 29 Jan 2018

PostPosted: Wed Nov 01, 2023 12:28 am    Post subject: Reply with quote  Mark this post and the followings unread

in order to make, for example, a soviet AI build allied units through a captured barracks, you will need to also write a bunch of AI
triggers for the AI. I recall doing this once and the outcome was quite amusing. though when the AI has two or more the same factory
type, any units or buildings it makes will be cloned by each factory, so its a bit game-breaking.

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Nov 01, 2023 10:38 am    Post subject: Reply with quote  Mark this post and the followings unread

But because the AI ignores prerequisite, those triggers would have to explicitly check they own the captured structure instead of some other meaningful trigger. And my point still stands, if they capture it from you, you probably have an easier time destroying it anyway, so they can't really benefit...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
McPwny
Chem Warrior


Joined: 29 Jan 2018

PostPosted: Wed Nov 01, 2023 3:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

thats exactly what i did, and it worked great. albeit it was for a mod map where the AI captured random base buildings around the map and used them.
I can see it working out if the AI captures forward bases or other AI structures. Its just that the AI has the multiple factory bug, plus it calculates its base
center off of some weighted average of it's buildings locations meaning having structures scattered across the map can cause some abnormal unit rallying
behavior.

_________________
visit my moddb profile for .shp downloads and stuff

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 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.1702s ][ Queries: 11 (0.0084s) ][ Debug on ]