mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 01:47:13 +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]
|
[/show_if]
|
||||||
[/message]
|
[/message]
|
||||||
|
|
||||||
|
[if]
|
||||||
|
[not]
|
||||||
|
[have_location]
|
||||||
|
terrain=^V
|
||||||
|
[/have_location]
|
||||||
|
[/not]
|
||||||
|
[then]
|
||||||
[message]
|
[message]
|
||||||
speaker=Galdrad
|
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= _ "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]
|
[/message]
|
||||||
|
|
||||||
{PRINT ( _ "Capture a village")}
|
{PRINT ( _ "Capture a village")}
|
||||||
|
|
||||||
|
[disallow_end_turn]
|
||||||
|
reason=_"You still have to capture a village!"
|
||||||
|
[/disallow_end_turn]
|
||||||
|
[/then]
|
||||||
|
[/if]
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
[event]
|
[event]
|
||||||
name=capture
|
name=capture
|
||||||
|
first_time_only=no
|
||||||
|
|
||||||
[filter]
|
[filter]
|
||||||
side=1
|
side=1
|
||||||
[/filter]
|
[/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?
|
# 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]
|
[message]
|
||||||
speaker=Galdrad
|
speaker=Galdrad
|
||||||
message= _ "Excellent! As Delfador mentioned earlier, each captured village will support one unit and provide you with 1 extra gold per turn."
|
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
|
name=side 1 turn end
|
||||||
{CLEAR_PRINT}
|
{CLEAR_PRINT}
|
||||||
[/event]
|
[/event]
|
||||||
|
[/else]
|
||||||
|
[/if]
|
||||||
|
|
||||||
|
[on_undo]
|
||||||
|
{CLEAR_PRINT}
|
||||||
|
|
||||||
|
{PRINT ( _ "Recruit or recall your troops")}
|
||||||
|
[/on_undo]
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
[event]
|
[event]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user