Remove Shroud - Issue

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
Vold
Posts: 20
Joined: December 31st, 2013, 3:23 pm

Remove Shroud - Issue

Post by Vold »

Hello Guys, I have been trying to remove the shroud from different locations of my map for hours and I finally gave up.

Code: Select all

[event]
name=prestart
[remove_shroud]
[filter_location]
x=21,25,1,45,21,25
y=1,1,23,23,45,45
[/filter_location]
side=1,2,3,4
[/remove_shroud]
[/event]
It removes all the shroud; and I can't find the mistake. Please :eng: me.
User avatar
Adamant14
Posts: 970
Joined: April 24th, 2010, 1:14 pm

Re: Remove Shroud - Issue

Post by Adamant14 »

Just remove the [filter_location]
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
Vold
Posts: 20
Joined: December 31st, 2013, 3:23 pm

Re: Remove Shroud - Issue

Post by Vold »

Thanks! :P
User avatar
Adamant14
Posts: 970
Joined: April 24th, 2010, 1:14 pm

Re: Remove Shroud - Issue

Post by Adamant14 »

Though single un-shrouded spots are nearly invisible, I would suggest you to add a radius= to the tag.

Example:

Code: Select all

	[event]
		name=prestart
		[remove_shroud]
			x=21,25,1,45,21,25
			y=1,1,23,23,45,45
			radius=2
			side=1,2,3,4
		[/remove_shroud]
	[/event]
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
Vold
Posts: 20
Joined: December 31st, 2013, 3:23 pm

Re: Remove Shroud - Issue

Post by Vold »

Awesome; I was adding the surrounding hexes one by one. :lol:
User avatar
Adamant14
Posts: 970
Joined: April 24th, 2010, 1:14 pm

Re: Remove Shroud - Issue

Post by Adamant14 »

radius=2 is just an example of course.
You can change the 2 to any radius you like. :)
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
Vold
Posts: 20
Joined: December 31st, 2013, 3:23 pm

Re: Remove Shroud - Issue

Post by Vold »

radius=2 is what I needed. :p
Post Reply