Search found 371 matches

by ZombieKnight
April 26th, 2025, 5:11 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

You filter side by is_local. How the hell is that supposed to shrink the f*cking side list? $ wesnoth.sides.find({is_local=true}) {side: <1 Bandits>,side: <2 Humans>,side: <3 Wenrys>,side: <4 Dwarves>,side: <5 Dwarves>,side: <6 Dwarves>,side: <7 Nagas>,side: <8 Wild>,side: <9 Wild>,side: <10 Wild>}
by ZombieKnight
April 26th, 2025, 5:08 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Still, this is f*cking complicated, why does [filter_side] has to have that stupid [has_unit] tag which does nothing new, only restricts existing tag??? Aaand I can't find a way to do this simply... how should I do it? (First iterate through sides and then iterate through units, time is even worse a...
by ZombieKnight
April 26th, 2025, 2:39 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 26th, 2025, 1:14 pm If unit filter returns 1 unit, then side can see the unit. If unit filter returns 0 units, then side cant see the unit.
Ok, dumb me (this really makes sense to do with the local side )...
Is it absolutelly bug free and does it not bring any syncing issues/ problems with replay?
by ZombieKnight
April 26th, 2025, 1:05 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

wml.tag.filter_vision{side=i} Could you tell me the whole condition that returns true only if side 1 sees my unit? I can't drop out filter_vision out of nowhere, the standalone tag makes no sence. Where should it be used? (Presumably in unit filter, but where tge hell to use the whole filter? And w...
by ZombieKnight
April 26th, 2025, 5:59 am
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 25th, 2025, 5:26 pm check if it(side) can see unit.
How fo check for whether side can see unit?
by ZombieKnight
April 25th, 2025, 8:37 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 25th, 2025, 5:26 pm For each side that is local, check if it can see unit. Then decide if you want all or any local side see unit.
But, to the very question of this post... How do I do that?
by ZombieKnight
April 25th, 2025, 5:24 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 25th, 2025, 4:49 pm With wml.tag.filter_vision{side=i}
Ok, but used where, I kinda don't get first step, the obvious thing?
by ZombieKnight
April 25th, 2025, 4:44 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 25th, 2025, 4:42 pm You filter side by side number.
Ok, and how to find out which sides see the unit then???
by ZombieKnight
April 25th, 2025, 4:16 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 25th, 2025, 7:35 amIt doesnt.
Correction: [have_unit] isn't valid side filter, side filter features only [has_unit] which...
[has_unit]:

StandardUnitFilter: filter matches only if side controls a unit matched by it
by ZombieKnight
April 25th, 2025, 7:05 am
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

lhybrideur wrote: April 25th, 2025, 6:58 am Maybe [have_unit][filter_vision]
Sadly, it states in wiki that [have_unit] automatically excludes all non side's units.
by ZombieKnight
April 23rd, 2025, 5:39 am
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 23rd, 2025, 5:38 am You filter side by is_local.
Yes and how to filter, whether my is_local side actually sees the unit?
by ZombieKnight
April 23rd, 2025, 5:13 am
Forum: Lua Labs
Topic: Unit movement animation problem
Replies: 2
Views: 2083

Re: Unit movement animation problem

Sadly, this is unsupported. Even 9487 wouldn't enable what you want. Maybe you can get the desired effect via some complicated workaround but I'm not sure how you'd go about that. I don't see why resolving one unit weird movement animation, wouldn't resolve two unit animations? (The greatest featur...
by ZombieKnight
April 23rd, 2025, 4:32 am
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 22nd, 2025, 8:46 pm You know which side is_local, and then you can check if that side can see unit.
Yrah... but how?
There's no [filter_vision] in side filter.
by ZombieKnight
April 22nd, 2025, 8:23 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

Re: [scroll_to_unit] seeing side filter

Ravana wrote: April 22nd, 2025, 7:47 pm For unsynced code its bettter to use Lua. That runs on each client independently.
Oh, didn't knew that.
I do run it in Lua actually.
But I still don't know how to filter the sides for which to scroll the screen for.
by ZombieKnight
April 22nd, 2025, 6:36 pm
Forum: WML Workshop
Topic: [scroll_to_unit] seeing side filter
Replies: 26
Views: 5122

[scroll_to_unit] seeing side filter

Hi I have [scroll_to_unit], for unit vith invisible ability and I want to highlight it's action (coded teleport) but only for sides, who actually do see the unit. How to do so? There's [filter_side] but I can't find a way to filter for sides, which do see my unit. Docs: https://wiki.wesnoth.org/Inte...