[closed] Last breath [have_unit]
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.
- ZombieKnight
- Posts: 180
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
[closed] Last breath [have_unit]
Hi,
I'd like to filter if unit with id=$my_unit_id is visible for side=1 in [event] name=last breath [filter] id=$my_unit_id
And apparently [have_unit], [filter_vision] doesn't recognize units with HP<0
How to do so?
I'd like to filter if unit with id=$my_unit_id is visible for side=1 in [event] name=last breath [filter] id=$my_unit_id
And apparently [have_unit], [filter_vision] doesn't recognize units with HP<0
How to do so?
Last edited by ZombieKnight on March 31st, 2024, 12:24 pm, edited 1 time in total.
I had saurian in profile before, but I've merged my discord profile with forum one...
Re: Last breath [have_unit]
Dont use have_unit then.
- ZombieKnight
- Posts: 180
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: Last breath [have_unit]
But how to show a dialog only if I see that unit?
I had saurian in profile before, but I've merged my discord profile with forum one...
- ZombieKnight
- Posts: 180
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: Last breath [have_unit]
Not sure if thats what you advise, but I can store units location and then [have_location] [filter_vision]...
I'll try it today
I'll try it today
I had saurian in profile before, but I've merged my discord profile with forum one...
- ZombieKnight
- Posts: 180
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: Last breath [have_unit]
Code: Select all
[store_unit]
[filter]
id=progi
[/filter]
variable=is_this_unit_visible
[/store_unit]
[if]
[have_location]
x,y=$is_this_unit_visible.x,$is_this_unit_visible.y
[filter_vision]
side=1
[/filter_vision]
[/have_location]
I had saurian in profile before, but I've merged my discord profile with forum one...