Page 1 of 1

How to add AI/bots to Tiberian Dawn custom map

Posted: Sat Apr 11, 2020 8:29 am
by R55
Hello,

I couldn't find any 'options' in the map editor for Tiberian Dawn to add AI / bots to the map.

I figured I had to add the (un)packed construction yard to positions on the map. I couldn't select or set any 'teams' anywhere either.

There's only 'Creeps' and 'Neutral' I believe.

I couldn't find any instructions anywhere on the internet either, or is there some documentation?

I was secretly hoping it could all be done in the editor, I'm not the coding type of guy.

Thanks.

Re: How to add AI/bots to Tiberian Dawn custom map

Posted: Sat Apr 11, 2020 2:46 pm
by abcdefg30
Sadly this is currently not possible to do via the ingame editor. You would have to save the map as unpacked, then go to the folder and edit "map.yaml" and add "Team: <number>" and "Bot: <botname>" to each player definition. Then you need to go back to the editor and save the map as packed again.
Example (untested):

Code: Select all

Players:
	PlayerReference@Neutral:
		Name: Neutral
		OwnsWorld: True
		NonCombatant: True
		Faction: allies
	PlayerReference@Creeps:
		Name: Creeps
		NonCombatant: True
		Faction: allies
		Enemies: Multi0, Multi1
	PlayerReference@Multi0:
		Name: Multi0
		Playable: True
		Faction: Random
		Team: 1
		Enemies: Creeps
	PlayerReference@Multi1:
		Name: Multi1
		Playable: False
		Faction: Random
		Bot: rush
		Team: 2
		Enemies: Creeps