share_vision doesn't work

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
Anagkai
Posts: 58
Joined: February 12th, 2012, 10:05 am

share_vision doesn't work

Post by Anagkai »

In one of my scenarios, I want a AI faction to share vision with the player. It doesn't work the way I tried, though.
I'm using 1.14, so share_vision should exist. Also the faction is allied to the player. Any help is appreciated.

This is the side definition:

Code: Select all

	[side]
		side=2
		controller=ai
		team_name=1
		user_team_name= _ "Undead" 

#ifdef EASY
		type=Hurricane Drake
#else
		type=Sky Drake
#endif
		id=Manager
		name=_"Draken Ressources Manager"
		canrecruit=yes

		recruit=Drake Burner, Drake Glider
		
		share_vision=all
		
		{GOLD 50 40 30}
		{INCOME 5 4 3}
		
		[ai]
			recruitment_pattern=scout,archer
			passive_leader=yes
		[/ai]
	[/side]
My campaigns: Princess Nilwyn (available) & Home of the Undead (available)
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: share_vision doesn't work

Post by josteph »

Is team_name=1 for side 1?
Anagkai
Posts: 58
Joined: February 12th, 2012, 10:05 am

Re: share_vision doesn't work

Post by Anagkai »

Yes, it is. But I think this is necessary anyway, for the faction to be allied to the player.
My campaigns: Princess Nilwyn (available) & Home of the Undead (available)
Post Reply