Acquiring illumination

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
Geos
Posts: 115
Joined: March 20th, 2008, 1:58 pm
Location: Italy

Acquiring illumination

Post by Geos »

I made a unit acquire the illumination ability when picking up an object, and it works fine. The only problem is that the unit doesn't develop the illuminating halo, so I tried with {MODIFY_UNIT theunit halo halo.png), but just doesn't work.
The unit doesn't necessarily have a previous halo= (don't know if this is relevant)
Is halo one of the only values that can not be modified with [set_variable]?
That's ridiculous, dragons have no windows...
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Acquiring illumination

Post by zookeeper »

Code: Select all

[effect]
	apply_to=new_animation
	
	[standing_anim]
		start_time=0
		
		[frame]
			halo=illuminatehaloimagefile.png
			duration=100
		[/frame]
	[/standing_anim]
[/effect]
No, don't try to directly poke the unit's variables. This is one area where doing that usually won't work.
User avatar
Geos
Posts: 115
Joined: March 20th, 2008, 1:58 pm
Location: Italy

Re: Acquiring illumination

Post by Geos »

Thanks
That's ridiculous, dragons have no windows...
Post Reply