Hiding a Single Tile
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.
Hiding a Single Tile
I wanted to edit the 6 player sacrifice survival map to have the sacrifice altar tile hidden from other players(with shroud and fog turned off), so players can't expect whats coming.
The only way I have seen to do this is [place_shroud] but that requires shroud to be turned on for the side. I don't want shroud in general turned on.
I just want this 1 tile to be hidden. I have not seen a method of adding fog or shroud to single tiles. Is there any easy with to edit in a fog or shroud overlay with WML like with [terrain]?
-Glen
The only way I have seen to do this is [place_shroud] but that requires shroud to be turned on for the side. I don't want shroud in general turned on.
I just want this 1 tile to be hidden. I have not seen a method of adding fog or shroud to single tiles. Is there any easy with to edit in a fog or shroud overlay with WML like with [terrain]?
-Glen
Re: Hiding a Single Tile
Last I looked that map already has such shroud. https://wiki.wesnoth.org/DirectActionsW ... fy_side.5D can place it.
Re: Hiding a Single Tile
There is a shroud fog overlay as terrain, but everyone will see it as shroud and fog, including "not other player", all sides I assume..Glen wrote: ↑May 15th, 2018, 8:22 am I wanted to edit the 6 player sacrifice survival map to have the sacrifice altar tile hidden from other players(with shroud and fog turned off), so players can't expect whats coming.
The only way I have seen to do this is [place_shroud] but that requires shroud to be turned on for the side. I don't want shroud in general turned on.
I just want this 1 tile to be hidden. I have not seen a method of adding fog or shroud to single tiles. Is there any easy with to edit in a fog or shroud overlay with WML like with [terrain]?
-Glen
The way you want it to be I would use
[item]
and specify the team_name
(https://wiki.wesnoth.org/InterfaceActionsWML#.5Bitem.5D)But it may make your code much more complicated... depends on many things.. let me know what you think.
I actually just realized that I don't understand what exactly you want.. So just in case it helps try:
Code: Select all
[terrain]
terrain=^_s
x,y=25,25
layer=overlay
[/terrain]
Re: Hiding a Single Tile
Yeah Shroud overlay hides the tile from all sides including the specified player's side, making it not ideal
Anyhow I got it to work as intended by enabling shroud to yes for all [side] and then
[remove_shroud] for all tiles except the tile with the altar's terrain in a 1st turn event.
Was a lot more simple than I thought
Anyhow I got it to work as intended by enabling shroud to yes for all [side] and then
[remove_shroud] for all tiles except the tile with the altar's terrain in a 1st turn event.
Was a lot more simple than I thought
Code: Select all
[event]
name = turn 1
[remove_shroud]
side = 2,3,4,5,6,7
[not]
terrain = Chr
[/not]
[/remove_shroud]
[/event]