Multiple Fog Clearers

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
boru
Posts: 788
Joined: November 19th, 2009, 11:02 pm

Multiple Fog Clearers

Post by boru »

Do fog clearers have a limit of one? The first one displays fine (meaning you can't see it at all), but any others I add to my cutscene will appear with an ellipse and a green ball. There's a move_unit in there and it really doesn't look good without multiple fog clearers.

EDIT: After taking a closer look at the macro, I don't think the [hide_unit] tag is working properly.
“It is written in my life-blood, such as that is, thick or thin; and I can no other.” - J.R.R. Tolkien

My campaign: Swamplings - Four centuries before the founding of Wesnoth, the first wolf rider emerges from a tribe of lowly swamp goblins.
User avatar
Simons Mith
Posts: 821
Joined: January 27th, 2005, 10:46 pm
Location: Twickenham
Contact:

Re: Multiple Fog Clearers

Post by Simons Mith »

Doesn't the presence of an ellipse and orb mean it's a friendly fog clearer on the player's side? Perhaps you should only be using hostile enemy fog clearers. I wonder if you're not getting the side set correctly for your extra clearers. Possibly an oversight in the fog clearer macro? Setting the correct side should remove the orb, but I'm not sure what else you could do about the ellipse, however.

Edit: Ninja'd by the OP.
 
User avatar
boru
Posts: 788
Joined: November 19th, 2009, 11:02 pm

Re: Multiple Fog Clearers

Post by boru »

Enemy fog clearers, like the enemy, are invisible in the fog.
“It is written in my life-blood, such as that is, thick or thin; and I can no other.” - J.R.R. Tolkien

My campaign: Swamplings - Four centuries before the founding of Wesnoth, the first wolf rider emerges from a tribe of lowly swamp goblins.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Multiple Fog Clearers

Post by Anonymissimus »

It's a bug. Move the two clear_variables from CLEAR_FOG to UNCLEAR_FOG. The one for fog_clearer_i at least.
I've reported it btw.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
User avatar
boru
Posts: 788
Joined: November 19th, 2009, 11:02 pm

Re: Multiple Fog Clearers

Post by boru »

You're right, moving those tags to the other macro fixed it perfectly. Thanks!
“It is written in my life-blood, such as that is, thick or thin; and I can no other.” - J.R.R. Tolkien

My campaign: Swamplings - Four centuries before the founding of Wesnoth, the first wolf rider emerges from a tribe of lowly swamp goblins.
Post Reply