Problems with 'sighted' events

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
Ringcaat
Posts: 68
Joined: August 21st, 2004, 11:54 am
Location: Minneapolis, Minnesota
Contact:

Problems with 'sighted' events

Post by Ringcaat »

I can't seem to get any of my 'sighted' events working properly. I recall that a year ago, the [filter] and [filter_second] tags were reversed from what the Wiki said about them. So as it happened, they would trigger when primary_unit is sighted by secondary_unit, and not vice versa.

Now, it doesn't seem to work either way. I use code like this:

Code: Select all

	[event]
		name=sighted
		[filter]
			description=Neliflua
		[/filter]
		[filter_second]
			description=Haji-Renga
		[/filter_second]
		[message]
			speaker=Haji-Renga
			message="There you are!  About time.  Everything is ready for you, captain."
		[/message]
	[/event]
...and it does nothing when Neliflua moves within sight range of Haji-Renga. Switching the two filters doesn't help. The only times I've gotten 'sighted' events to work are when I only include one filter, and not always even then. Help?
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Post by zookeeper »

I'm pretty sure the sighted events are still broken. They should work with fog, but probably won't with just shroud (but even then, the filters might indeed be reversed or something like that).

These have been broken for a really long time now, which is a pity. I hope we can attract some coder into finally fixing this though.
Free
Posts: 82
Joined: October 30th, 2005, 1:51 am

Post by Free »

Zookeeper, what if a unit is in ambush or submerged, then the unit shows themself? Will that work?
Post Reply