Command & Conquer™ Remastered Collection

Command & Conquer™ Remastered Collection

Command & Conquer™ Remastered Collection Workshop
Create, share, and play mods for a custom C&C experience! A new Map Editor is also included. Welcome back, Commander.
Learn More
Varaosa 21 Oct, 2024 @ 4:49am
How to make AI to build unit(s) in map editor?
Yush, i just wondering to ask how to make AI to build unit in map editor?

I got enemy spawn area or base build, where AI could build units but, when i reach there my units, AI not was build noting there, even AI could or can do so.

What i miss there or this editor to make this happend?
Last edited by Varaosa; 21 Oct, 2024 @ 4:49am
< >
Showing 1-5 of 5 comments
Cat 13 21 Oct, 2024 @ 6:59am 
You decide which unit each computer player builds in the team type option. Be sure to have a production trigger.
Varaosa 21 Oct, 2024 @ 8:13am 
Originally posted by Cat:
You decide which unit each computer player builds in the team type option. Be sure to have a production trigger.

-Okay one but, could you tell me more about production trigger & set this? c:
Nyerguds 8 23 Oct, 2024 @ 5:14am 
Which game are you talking about? Scripting is a bit different in TD and in RA.

But, basically, in Triggers, you make a trigger than enables Production for that House. If you want that from the start of the mission, just use a "Time: 1" trigger; that's the easiest, but for scenario reasons it's possible you want to delay it until something happens later in the mission.

Then, in Teamtypes, you make your team. You make sure it has "Max Allowed" set to "1", so the AI produces it. You fill in some units, give them a path of waypoints to follow, and an order to execute at the end of it. And you're done. If you have no waypoints on the map yet, well, place some down to define a path to guide your units towards the enemy, to make sure they take the route you want without getting stuck.

The existence of the TeamType with an "Max Allowed" set, combined with the Production trigger, is enough to make the AI produce the units in the team. But to send them out to do their stuff, you need one more step:

Again in Triggers, you can add a "Create Team" trigger, again, for the easiest example, just set it as "Time: 40" or something, and tell it to create a team of the teamtype you defined. This will make the AI combine the produced units into a team with orders to execute, and so they'll be sent out to do the things you scripted in the Teamtype.

Note: "Time: 40" will trigger it after a few minutes. The official measurement unit is "1/10th of a minute", which would make each "time unit" 6 seconds, and "40" would be four minutes, but this is only on Moderate game speed, and in RA, it's also somehow affected by the difficulty level, so it's a bit wonky. Also note that each higher game speed setting will double the speed of the game compared to the previous step.
Last edited by Nyerguds; 23 Oct, 2024 @ 5:41am
Varaosa 23 Oct, 2024 @ 9:52am 
Originally posted by Nyerguds:
Which game are you talking about? Scripting is a bit different in TD and in RA.

But, basically, in Triggers, you make a trigger than enables Production for that House. If you want that from the start of the mission, just use a "Time: 1" trigger; that's the easiest, but for scenario reasons it's possible you want to delay it until something happens later in the mission.

Then, in Teamtypes, you make your team. You make sure it has "Max Allowed" set to "1", so the AI produces it. You fill in some units, give them a path of waypoints to follow, and an order to execute at the end of it. And you're done. If you have no waypoints on the map yet, well, place some down to define a path to guide your units towards the enemy, to make sure they take the route you want without getting stuck.

The existence of the TeamType with an "Max Allowed" set, combined with the Production trigger, is enough to make the AI produce the units in the team. But to send them out to do their stuff, you need one more step:

Again in Triggers, you can add a "Create Team" trigger, again, for the easiest example, just set it as "Time: 40" or something, and tell it to create a team of the teamtype you defined. This will make the AI combine the produced units into a team with orders to execute, and so they'll be sent out to do the things you scripted in the Teamtype.

Note: "Time: 40" will trigger it after a few minutes. The official measurement unit is "1/10th of a minute", which would make each "time unit" 6 seconds, and "40" would be four minutes, but this is only on Moderate game speed, and in RA, it's also somehow affected by the difficulty level, so it's a bit wonky. Also note that each higher game speed setting will double the speed of the game compared to the previous step.

-I play just for Red Alert but, thank you & i try someting like this & ask if i had someting in my mind. :3
Nyerguds 8 24 Oct, 2024 @ 11:33pm 
If you get the upgraded Mobius Map Editor, you can use the "Open From Mix" function to open all the original missions as scripting examples.
< >
Showing 1-5 of 5 comments
Per page: 1530 50