Clearing Fog with AI Ally?

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
Glen
Posts: 77
Joined: August 20th, 2011, 10:59 pm

Clearing Fog with AI Ally?

Post by Glen »

In my scenario, I want the players to have vision of ally AI sides through the fog. But for some reason, the player cannot see the AI through the fog.
share_maps is set to yes and share_view is set to yes. I don't understand what I did wrong. Side tags is below.

Code: Select all

[side]
	controller="human"
	fog=yes
	gold=0
	hidden=no
	income=2
	share_maps=yes
	share_view=yes
	shroud=yes
	side=1
	team_name="1"
	user_team_name=""
	gold = 100
[/side]

[side]
	controller="human"
	fog=yes
	gold=0
	hidden=no
	income=2
	share_maps=yes
	share_view=yes
	shroud=yes
	side=2
	team_name="2"
	user_team_name=""
	canrecruit=yes
	gold = 100
[/side]

[side]
	 controller=ai
	  [ai]
            aggression=1
            caution=0.0
			[goal]
			[criteria]
			side = 4
			[/criteria]
			value=15
			[/goal]
        [/ai]
	fog=no
	gold=0
	hidden=no
	income=2
	no_leader=yes
	share_maps=yes
	share_view=yes
	shroud=no
	side=3
	team_name="1"
	user_team_name=""
[/side]

[side]
	 controller=ai
	  [ai]
            aggression=1
            caution=0.0
			[goal]
			[criteria]
			side = 3
			[/criteria]
			value=15
			[/goal]
        [/ai]
	fog=no
	gold=0
	hidden=no
	income=2
	no_leader=yes
	share_maps=yes
	share_view=yes
	shroud=no
	side=4
	team_name="2"
	user_team_name=""
[/side]
Last edited by Glen on August 13th, 2016, 1:21 pm, edited 1 time in total.
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Clearing Fog with AI Ally?

Post by gfgtdf »

fog= must be yes to make share_view=yes work. on both sides.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
User avatar
Glen
Posts: 77
Joined: August 20th, 2011, 10:59 pm

Re: Clearing Fog with AI Ally?

Post by Glen »

Thanks, it works now
Post Reply