mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 11:56:03 +00:00
Add PRINT messages, disallow_end_turn messages
Add more reminding PRINT messages, disallow_end_turn messages, and fix a bug where player can just capture village and end turn without recruiting/recalling units.
This commit is contained in:
parent
9171733e35
commit
d3f053fa1e
@ -382,16 +382,31 @@ A full list of abilities and weapons specials, along with traits, may be found i
|
||||
[/show_if]
|
||||
[/message]
|
||||
|
||||
[if]
|
||||
[not]
|
||||
[have_location]
|
||||
terrain=^V
|
||||
[/have_location]
|
||||
[/not]
|
||||
[then]
|
||||
[message]
|
||||
speaker=Galdrad
|
||||
message= _ "While none of your recruited units can move yet, you still can. You need more income; there are some villages near the keep you can capture."
|
||||
[/message]
|
||||
|
||||
{PRINT ( _ "Capture a village")}
|
||||
|
||||
[disallow_end_turn]
|
||||
reason=_"You still have to capture a village!"
|
||||
[/disallow_end_turn]
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=capture
|
||||
first_time_only=no
|
||||
|
||||
[filter]
|
||||
side=1
|
||||
[/filter]
|
||||
@ -400,6 +415,24 @@ A full list of abilities and weapons specials, along with traits, may be found i
|
||||
|
||||
# NOTE: maybe give live income stats?
|
||||
|
||||
[if]
|
||||
[not]
|
||||
[have_unit]
|
||||
side=1
|
||||
race=elf
|
||||
count=5
|
||||
[/have_unit]
|
||||
[/not]
|
||||
[then]
|
||||
{PRINT ( _ "You forgot to recruit troops! You can press <b>u</b> to undo your last move.")}
|
||||
|
||||
[disallow_end_turn]
|
||||
reason=_"You still have to recruit troops!"
|
||||
[/disallow_end_turn]
|
||||
|
||||
[allow_undo] [/allow_undo]
|
||||
[/then]
|
||||
[else]
|
||||
[message]
|
||||
speaker=Galdrad
|
||||
message= _ "Excellent! As Delfador mentioned earlier, each captured village will support one unit and provide you with 1 extra gold per turn."
|
||||
@ -426,6 +459,14 @@ A full list of abilities and weapons specials, along with traits, may be found i
|
||||
name=side 1 turn end
|
||||
{CLEAR_PRINT}
|
||||
[/event]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[on_undo]
|
||||
{CLEAR_PRINT}
|
||||
|
||||
{PRINT ( _ "Recruit or recall your troops")}
|
||||
[/on_undo]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
Loading…
x
Reference in New Issue
Block a user