Merge pull request #4637 from Earth-Cake/tutorial-undo_reminder

Tutorial - remove repeating help messages
This commit is contained in:
nemaara 2019-12-15 21:31:56 -05:00 committed by GitHub
commit 259ea6f628
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 6 deletions

View file

@ -178,6 +178,8 @@
[disallow_end_turn]
reason=_"You cannot end your turn until you have recruited troops and captured a village!"
[/disallow_end_turn]
{VARIABLE undo_option yes}
[/event]
[event]
@ -1304,5 +1306,6 @@ Please report the bug."
{CLEAR_VARIABLE low_hp_unit_message,lhpu_msg_i}
{CLEAR_VARIABLE spoke_about_income,spoke_about_orcs_crossing_river}
{CLEAR_VARIABLE undo_option}
[/event]
[/scenario]

View file

@ -52,12 +52,22 @@
#enddef
#define UNDO_REMINDER
[message]
speaker=narrator
caption= _"Undo"
image=wesnoth-icon.png
message= _"Dont forget, you can press <b>u</b> to undo most things if you make a mistake."
[/message]
[if]
[variable]
name=undo_option
equals=yes
[/variable]
[then]
[message]
speaker=narrator
caption= _"Undo"
image=wesnoth-icon.png
message= _"Dont forget, you can press <b>u</b> to undo most things if you make a mistake."
[/message]
{CLEAR_VARIABLE undo_option}
[/then]
[/if]
[allow_undo][/allow_undo]
#enddef