#textdomain wesnoth-tutorial

#define TEACHER MESSAGE
[message]
	description=Galdrad
	message={MESSAGE}
[/message]
#enddef

#define STUDENT MESSAGE
[message]
	description=student
	message={MESSAGE}
[/message]
#enddef

#define NARRATOR MESSAGE
[message]
	speaker=narrator
	message={MESSAGE}
[/message]
#enddef

#define UNDO_REMINDER
{NARRATOR (_"*Remember:
You can press 'u' to undo most things: useful to correct mistakes.")}
[allow_undo][/allow_undo]
#enddef

#define TALK_ABOUT UNIT MESSAGE
[scroll_to_unit]
	description={UNIT}
[/scroll_to_unit]
# Pretend this is narrator, since otherwise we scroll back.
[message]
	speaker=narrator
	image=units/elves-wood/captain.png~TC(3,magenta)
	message=_ "*Galdrad" + "
" + {MESSAGE}
[/message]
#enddef

#define TALK_NO_MOVE MESSAGE
# Pretend this is narrator, since otherwise we scroll back.
[message]
	speaker=narrator
	image=units/elves-wood/captain.png~TC(3,magenta)
	message=_ "*Galdrad" + "
" + {MESSAGE}
[/message]
#enddef

#define TALK_ABOUT_LOC LOC MESSAGE
[scroll_to]
	x,y={LOC}
[/scroll_to]
# Pretend this is narrator, since otherwise we scroll back.
[message]
	speaker=narrator
	image=units/elves-wood/captain.png~TC(3,magenta)
	message=_ "*Galdrad" + "
" + {MESSAGE}
[/message]
#enddef

#define EXPLAIN_STRONG_INTELLIGENT DESCRIPTION
[if]
	[variable]
		name=strongint_explained
		not_equals=done
	[/variable]
[then]
	{TEACHER ({DESCRIPTION} + _", your new recruit, has two traits: strong and intelligent. Strong means a unit does more damage, and intelligent means it requires less experience to advance a level.")}
	{VARIABLE strongint_explained done}
[/then]
[/if]
#enddef

#define EXPLAIN_QUICK_RESILIENT DESCRIPTION
[if]
	[variable]
		name=quickres_explained
		not_equals=done
	[/variable]
[then]
	{TEACHER ({DESCRIPTION} + _" has two traits: quick and resilient. Quick means a unit can move one tile further each turn, and resilient means it has more hitpoints.")}
	{VARIABLE quickres_explained done}
[/then]
[/if]
#enddef

