halo disappears during movement

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
Helmet
Posts: 331
Joined: December 19th, 2006, 5:28 pm
Location: Florida, USA

halo disappears during movement

Post by Helmet »

In my scenario, a mermaid initiate is caught in a net and dragged onto land. The net is a halo effect added to the mermaid via modify_unit. The problem is, the net disappears during the mermaid's movement, then reappears when she stops. I would like the net to not disappear, but glide along with her, much like the Mage of Light's halo effect.

How do I do that? Thanks.

EDIT: I'm on 1.15.7, just in case it's a bug. Somebody suggested it may be a bug, but I don't know.

Code: Select all

		[modify_unit]
			[filter]
				id=Finya
			[/filter]
			[effect]
				apply_to=halo
				halo=halo/net.png
			[/effect]
		[/modify_unit]
		[move_unit]
			id=Finya
			to_x=6
			to_y=4
		[/move_unit]
		
User avatar
Helmet
Posts: 331
Joined: December 19th, 2006, 5:28 pm
Location: Florida, USA

Re: halo disappears during movement

Post by Helmet »

Tried this. Same result.

Any ideas?

Code: Select all

		[store_unit]
			[filter]
				id=Finya
			[/filter]
			variable=target_finya
		[/store_unit]

		[set_variable]
			name=target_finya.halo
			value="halo/net.png"
		[/set_variable]

		[unstore_unit]
			variable=target_finya
			find_vacant=no
		[/unstore_unit]
User avatar
WhiteWolf
Forum Moderator
Posts: 736
Joined: September 22nd, 2009, 7:48 pm
Location: Hungary

Re: halo disappears during movement

Post by WhiteWolf »

I checked in 1.14, and it's the same. Apparently WML added halos (so the ones that are not directly in [unit_type]) are not rendered when the unit is moved by WML actions. Looks like a bug to me.
Author of the Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
Standalone works: The Ravagers - now for 1.14, with new bugs!
User avatar
Helmet
Posts: 331
Joined: December 19th, 2006, 5:28 pm
Location: Florida, USA

Re: halo disappears during movement

Post by Helmet »

WhiteWolf wrote: December 8th, 2020, 10:44 pm I checked in 1.14, and it's the same. Apparently WML added halos (so the ones that are not directly in [unit_type]) are not rendered when the unit is moved by WML actions. Looks like a bug to me.
Thank you! I was perplexed.

For the cut-scene, I'll make a similar mermaid [unit_type] with a net halo. That should work.

I'll report the bug.
Post Reply