filter_vision wiki question..

Discussion of all aspects of the website, wiki, and forums, including support requests and new ideas.

Moderators: Forum Moderators, Developers

Post Reply
enclave
Posts: 934
Joined: December 15th, 2007, 8:52 am

filter_vision wiki question..

Post by enclave » September 8th, 2016, 2:04 pm

I was looking for filter_vision examples and found some examples on forum:
viewtopic.php?f=21&t=30060&hilit=hidden+status
There is used "viewing_side=2" and I am wondering if it exists and missing from help or it was deprecated by now?
https://wiki.wesnoth.org/StandardLocati ... ter_vision
https://wiki.wesnoth.org/FilterWML#Filtering_Vision
I was also mislead by location filter, because I thought that I need to use [filter_vision] only inside [filter_location]..
may be a good idea to put link from filter location on to filtering_vision in filterWML.. to avoid such confusions for others..
turned out i can just use filter_vision inside of [filter] and no need for [filter_location].. plus it says something about fog and that it may not work properly with fog if inside [filter_location]...
Anyway thanks for your time and reading it.

By the way I tried to replace wiki example with

Code: Select all

[event]
name=moveto
first_time_only=no
[filter]
[filter_location]
x,y=$x1,$y1
[filter_vision]
[enemy_of]
side=$side_number
[/enemy_of]
[/filter_vision]
[/filter_location]
[/filter]
[message]
message="Enemy spotted you!"
[/message]
[/event]
and seem to work.. just in case if anyone googles for filter_vision examples..
just keep in mind it should not work for ai side if used with [filter_location].. according to wiki.. ( https://wiki.wesnoth.org/FilterWML#Filtering_Vision )

enclave
Posts: 934
Joined: December 15th, 2007, 8:52 am

Re: filter_vision wiki question..

Post by enclave » September 8th, 2016, 7:48 pm

I also think that unlike described in https://wiki.wesnoth.org/Eventwml#turn_refresh
healing (regenerate ability) happens after turn refresh..
maybe I did something wrong in my coding, but so far I believe I did everything right..
please correct me if i'm wrong..

Post Reply