Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline LetsPopSomeTanks  
#1 Posted : Sunday, January 26, 2020 10:19:49 PM(UTC)
LetsPopSomeTanks
Private
Joined: 1/22/2020(UTC)
Posts: 14

Is there a way to script a time limit that prevents AI from being able to fight each other? I'm trying to make a map that involves setting up a large defense, but I can't get it set up before the AI starts attacking. I have tried to circumvent this by adding other AI and having them fight each other while I set up a defense, but this isn't a great solution. Another thing I tried was creating a bunch of structures blocking their path that they would have to destroy. Again, not an ideal solution.

I'm sure there is something pretty simple, but I'm new to WorldBuilder and can't really find it in the scripts.
Sponsor
Offline AdrianeMapMaker  
#2 Posted : Tuesday, January 28, 2020 8:45:30 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
is this a skirmish map or a mission map?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline LetsPopSomeTanks  
#3 Posted : Tuesday, January 28, 2020 10:01:47 AM(UTC)
LetsPopSomeTanks
Private
Joined: 1/22/2020(UTC)
Posts: 14

Originally Posted by: adrianemapmaker Go to Quoted Post
is this a skirmish map or a mission map?


Just for a skirmish map.
Offline zero hour mad map maker  
#4 Posted : Tuesday, January 28, 2020 5:56:03 PM(UTC)
zero hour mad map maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 681
Canada
Location: MLP

Thanks: 181 times
Was thanked: 143 time(s) in 119 post(s)
I know it's easier to pull off in a mission map because you can just make it to where the AI doesn't attack before a desired trigger; however there are a lot of creative approaches to this.

As for Skirmish, if you want to get detailed, you can import the Skirmish scripts for your specific map and edit it to where you increase the attack timers on the AI.

The AI scripts can be found here: http://www.cnclabs.com/d...oads/details.aspx?id=391

Once you download that you can then go the script menu of your specific map and import them.

You can find the counters in each AI difficulty level that sets the AI to attack in waves. For example, here we can see the counter's escalation in the China Easy AI.

UserPostedImage

Now, I personally have never played around with this, but in THEORY the slower you make these counters escalate, the slower the AI will send out waves to attack you. This is where things can be fun.

Edited by user Wednesday, January 29, 2020 5:27:24 PM(UTC)  | Reason: added info/grammar

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
Offline SkyMix_RMT  
#5 Posted : Wednesday, January 29, 2020 6:01:56 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
If it is for skirmish, have a script trigger right at the beginning overriding all AI relationships to regard you as Neutral. Than after X amount of time override the relationship again so they regard you as enemy.
Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Offline zero hour mad map maker  
#6 Posted : Wednesday, January 29, 2020 5:20:01 PM(UTC)
zero hour mad map maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 681
Canada
Location: MLP

Thanks: 181 times
Was thanked: 143 time(s) in 119 post(s)
I just want to point out, that while overriding the player's relationships with the AI does indeed work, however, that does not stop the AI from sending troops over to your base and gathering their forces.

The reason I posted the other method is in case you wanted to get more detailed than just having hordes of AI units around your base perimeters; sitting there until the relationships change again. You can play around with delaying their overall recruitment and build process in the Skirmish Scripts if you'd like.

Do whatever method fits what you're looking for and your time the best. Thumb Up
Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
Offline SkyMix_RMT  
#7 Posted : Friday, January 31, 2020 10:29:45 PM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
Originally Posted by: Zero Hour Mad Map Maker Go to Quoted Post
that does not stop the AI from sending troops over to your base and gathering their forces.


Oh nice I didn't know about that, thx for pointing out

Check out:

My Music (Techno/House/Experimental)

My Website (GeneralsCentral)

My Youtube Channel (Inactive)

World Builder Community Discord
Offline zero hour mad map maker  
#8 Posted : Saturday, February 1, 2020 1:37:10 PM(UTC)
zero hour mad map maker
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 12/27/2013(UTC)
Posts: 681
Canada
Location: MLP

Thanks: 181 times
Was thanked: 143 time(s) in 119 post(s)
Originally Posted by: SkyMix_RMT Go to Quoted Post
Originally Posted by: Zero Hour Mad Map Maker Go to Quoted Post
that does not stop the AI from sending troops over to your base and gathering their forces.


Oh nice I didn't know about that, thx for pointing out



Yeah np! It's quite funny to see them go over to your base and just move around taking a tour of it lol

Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.