《命令与征服™:重制版》

《命令与征服™:重制版》

《命令与征服™》重制版合集工作坊
创建、共享和畅玩各种模组,尽情享受自定义的《命令与征服》游戏体验!还内含全新地图编辑器。欢迎回来,指挥官。
了解更多
Varaosa 2024 年 10 月 21 日 上午 4:49
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?
最后由 Varaosa 编辑于; 2024 年 10 月 21 日 上午 4:49
< >
正在显示第 1 - 5 条,共 5 条留言
Cat 16 2024 年 10 月 21 日 上午 6:59 
You decide which unit each computer player builds in the team type option. Be sure to have a production trigger.
Varaosa 2024 年 10 月 21 日 上午 8:13 
引用自 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 2024 年 10 月 23 日 上午 5:14 
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.
最后由 Nyerguds 编辑于; 2024 年 10 月 23 日 上午 5:41
Varaosa 2024 年 10 月 23 日 上午 9:52 
引用自 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 2024 年 10 月 24 日 下午 11:33 
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.
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50