dabber's questions: vision to location

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
dabber
Posts: 464
Joined: April 2nd, 2014, 6:41 pm

Re: dabber's questions: vision to location

Post by dabber »

I don't see a way to use [filter_vision] to detect being able to see a specific location.

But I shouldn't post questions at 3am. Spotting a unit is much easier to figure out after sleeping.
Code:
Spoiler:
gnombat
Posts: 710
Joined: June 10th, 2010, 8:49 pm

Re: dabber's questions: vision to location

Post by gnombat »

dabber wrote: January 23rd, 2024, 1:52 pm I don't see a way to use [filter_vision] to detect being able to see a specific location.
I think there's an example of this in the scenario "Choice in the Fog" (in The South Guard).
User avatar
dabber
Posts: 464
Joined: April 2nd, 2014, 6:41 pm

Re: dabber's questions: vision to location

Post by dabber »

Thanks gnombat. I was definitely not going to figure that out on my own.

Code for reference:
Spoiler:
User avatar
lhybrideur
Posts: 369
Joined: July 9th, 2019, 1:46 pm

Re: dabber's questions: vision to location

Post by lhybrideur »

Interesting. However I would use a enter_hex instead of move_to.
What I did in my campaign is putting a random unit there, and use a sighted event that kills the unit at its beginning.
I will probably replace it with that piece of code.
Post Reply