Special notes.

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
BajMic
Posts: 69
Joined: January 24th, 2023, 1:22 am

Special notes.

Post by BajMic »

Hello,
The special note does not show for this unit. May I ask what am I doing wrong?

Code: Select all

		[unit]
			type=Skeleton Archer
			x,y=30,30
			max_moves=0
			upkeep=free
			facing=sw
                 	[modifications]
                     		[object]
                         		[effect]
                             			apply_to=profile
						[special_note]
							note=_ "This particular skeleton is bound its post and will not move."
						[/special_note]
                         		[/effect]
                     		[/object]
                 	[/modifications]
		[/unit]
Thanks in advance,
Soliton
Site Administrator
Posts: 1708
Joined: April 5th, 2005, 3:25 pm
Location: #wesnoth-mp

Re: Special notes.

Post by Soliton »

Where do you expect to see it? Note that the help shows unit types. The help will not show anything about a specific unit.
"If gameplay requires it, they can be made to live on Venus." -- scott
User avatar
Ravana
Forum Moderator
Posts: 3170
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Special notes.

Post by Ravana »

Unit shows this note.
User avatar
octalot
General Code Maintainer
Posts: 809
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: Special notes.

Post by octalot »

Soliton wrote: September 4th, 2024, 11:27 am Where do you expect to see it? Note that the help shows unit types. The help will not show anything about a specific unit.
Unit-specific special notes should show up in the tooltip when hovering over the unit_type's name in the sidebar. I haven't checked what the syntax is to add them though.
BajMic
Posts: 69
Joined: January 24th, 2023, 1:22 am

Re: Special notes.

Post by BajMic »

Soliton wrote: September 4th, 2024, 11:27 am Where do you expect to see it? Note that the help shows unit types. The help will not show anything about a specific unit.
I expected it to show when player hovers over this unit and selects "show description".
User avatar
lhybrideur
Posts: 396
Joined: July 9th, 2019, 1:46 pm

Re: Special notes.

Post by lhybrideur »

AFAIK "show description" open the help menu which deals with unit_type, so your modification would not show there.
BajMic
Posts: 69
Joined: January 24th, 2023, 1:22 am

Re: Special notes.

Post by BajMic »

I see. I checked after reading Ravana's&Octalot's posts and realized, it does show in pop-ups on the side. I wasn't quite aware of these popups in the first place, but now it makes sense. Thx.
Post Reply