Skip to content

Commit

Permalink
T S1: preliminary reduction of 'hand holding'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 30, 2014
1 parent 04ca78b commit e282931
Showing 1 changed file with 28 additions and 135 deletions.
163 changes: 28 additions & 135 deletions data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg
Expand Up @@ -5,16 +5,6 @@
# wmllint: no-syntax-rewrite
# wmllint: directory spelling quintain

#define TARGET_HEX X Y
{VARIABLE target_hex.x {X}}
{VARIABLE target_hex.y {Y}}
{VARIABLE target_hex.is_set yes}
#enddef

#define NO_TARGET_HEX
{VARIABLE target_hex.is_set no}
#enddef

#define STUDENT_START_LOC
9,6
#enddef
Expand Down Expand Up @@ -149,8 +139,6 @@

{CLEAR_VARIABLE student_loc}

{LABEL (_"Delfador") (13,6)}

[objectives]
side=1
summary= _"You will learn the basics of:
Expand Down Expand Up @@ -216,22 +204,20 @@

[unhide_unit][/unhide_unit]

{LABEL $student {STUDENT_START_LOC}}

{GENDER (
[message]
speaker=narrator
caption= _"Welcome to Wesnoth!"
message= _"For this tutorial, you are playing Konrad.
You are standing in the keep, and your mentor Delfador is on the east side of the river." +
You are standing on the keep, and your mentor Delfador is on the east side of the river." +
{CONTINUE_MSG}
[/message]
) (
[message]
speaker=narrator
caption= _"Welcome to Wesnoth!"
message= _"For this tutorial, you are playing Li’sar.
You are standing in the keep, and your mentor Delfador is on the east side of the river." +
You are standing on the keep, and your mentor Delfador is on the east side of the river." +
{CONTINUE_MSG}
[/message]
)}
Expand All @@ -249,8 +235,6 @@ You are standing in the keep, and your mentor Delfador is on the east side of th
side=1
[/filter]

{UNLABEL {STUDENT_START_LOC}}

{CLEAR_PRINT}

{GENDER (
Expand All @@ -269,71 +253,45 @@ The places she can move to are highlighted." +
[/message]
)}

{LABEL (_"Here") {MARKER_LOC}}

{GENDER (
[message]
speaker=narrator
message= _"Move Konrad next to Delfador by clicking on the tile marked <b>Here</b>." +
message= _"Move Konrad next to Delfador. Note that you can always press <b>u</b> to undo a move if you move to the wrong place." +
{CONTINUE_MSG}
[/message]
) (
[message]
speaker=narrator
message= _"Move Li’sar next to Delfador by clicking on the tile marked <b>Here</b>." +
message= _"Move Li’sar next to Delfador. Note that you can always press <b>u</b> to undo a move if you move to the wrong place." +
{CONTINUE_MSG}
[/message]
)}

{TARGET_HEX 12 5}

{PRINT (_"Left click on tile labeled <b>Here</b>")}
{PRINT (_"Left click on a hex adjacent to Delfador to move there")}
[/event]

# General catch for them moving to the wrong place.
# General catch to always allow undo
[event]
name=moveto
first_time_only=no
[filter]
side=1
[filter_location]
[not]
find_in=target_hex
[/not]
[/filter_location]
[/filter]

[allow_undo][/allow_undo]

[filter_condition]
[variable]
name=target_hex.is_set
boolean_equals=yes
[/variable]
[/filter_condition]

[message]
speaker=narrator
caption= _"Oops!"
message= _"You moved to the wrong place! After this message, you can press <b>u</b> to undo, then try again." +
{CONTINUE_MSG}
[/message]
[/event]

[event]
name=moveto
[filter]
side=1
x,y={MARKER_LOC}
[filter_adjacent]
id=Delfador
[/filter_adjacent]
[/filter]

{CLEAR_PRINT}

{UNLABEL {MARKER_LOC}}
{UNLABEL {DELFADOR_LOC}}

{NO_TARGET_HEX}

[message]
id=student
message= _"Good morning, Delfador! Is it time to attack things?"
Expand Down Expand Up @@ -396,8 +354,6 @@ The places she can move to are highlighted." +
side=2
[/unit]

{LABEL (_"Quintain") {QUINTAIN_LOC}}

[message]
id=Delfador
message= _"... this quintain!"
Expand Down Expand Up @@ -438,21 +394,6 @@ The places she can move to are highlighted." +
)}

{MODIFY_UNIT id=student moves 0}

[event]
name=select
[filter]
side=1
[/filter]

{PRINT (_"Click on the quintain to attack it")}
[/event]

{GENDER (
{PRINT (_"Left click on Konrad")}
) (
{PRINT (_"Left click on Li’sar")}
)}
[/event]

# We track student's hitpoints so Delfador can explain them.
Expand Down Expand Up @@ -484,10 +425,6 @@ The places she can move to are highlighted." +
id=student
[/filter]

{CLEAR_PRINT}

{UNLABEL {QUINTAIN_LOC}}

[message]
id=student
message= _"Hey! This quintain fights back!"
Expand Down Expand Up @@ -546,7 +483,7 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every

[allow_end_turn][/allow_end_turn]

{PRINT (_"Click on the <b>End Turn</b> button in the bottom right of the screen")}
{PRINT (_"Click on the <b>End Turn</b> button on the bottom right of the screen to end your turn")}
[/event]

# TURN 2: lesson in healing
Expand All @@ -564,34 +501,17 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every
message= _"Ouch! I need to heal! Only $student_hp hitpoints left!"
[/message]

{LABEL (_"Village") {VILLAGE_LOC}}

[message]
id=Delfador
message= _"There is a village on the other side of the river. Visiting villages is a good idea, and ending your turn in one will heal you. To the village!"
[/message]

{GENDER (
{PRINT (_"Left click on Konrad")}
{PRINT (_"Move Konrad to the village")}
) (
{PRINT (_"Left click on Li’sar")}
{PRINT (_"Move Li’sar to the village")}
)}

[event]
name=select
[filter]
side=1
[/filter]

{GENDER (
{PRINT (_"Click on the village to move Konrad")}
) (
{PRINT (_"Click on the village to move Li’sar")}
)}
[/event]

{TARGET_HEX 11 7}

[event]
name=moveto
[filter]
Expand All @@ -601,8 +521,6 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every

{CLEAR_PRINT}

{NO_TARGET_HEX}

[message]
speaker=narrator
caption= _"Villages"
Expand All @@ -613,7 +531,7 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every

[allow_end_turn][/allow_end_turn]

{PRINT (_"Click on the <b>End Turn</b> button")}
{PRINT (_"End your turn")}
[/event]
[/event]

Expand All @@ -625,8 +543,6 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every

{CLEAR_PRINT}

{UNLABEL {VILLAGE_LOC}}

[store_unit]
[filter]
id=student
Expand Down Expand Up @@ -657,15 +573,11 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every
message= _"I’ll recruit some elves!"
[/message]

{LABEL (_"Keep") {KEEP_LOC}}

[message]
id=Delfador
message= _"A splendid idea! Since it’s probably best not to attempt attacking the quintain this turn, you can recruit two units if you return to the keep. You have plenty of gold for that."
[/message]

{TARGET_HEX 9 6}

{GENDER (
{PRINT (_"Move Konrad to the keep")}
) (
Expand All @@ -680,8 +592,6 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every

{CLEAR_PRINT}

{UNLABEL {KEEP_LOC}}

[set_recruit]
recruit=Elvish Fighter
side=1
Expand All @@ -694,7 +604,7 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every
{CONTINUE_MSG}
[/message]

{PRINT (_"Right click on a castle tile and select <b>Recruit</b>")}
{PRINT (_"Recruit two Elvish Fighters")}
[/event]

[event]
Expand Down Expand Up @@ -723,33 +633,25 @@ Now, this quintain gets 5 chances to hit you for 3 damage each. If it hits every
[filter]
side=1
[/filter]

[if]
[filter_condition]
[have_unit]
role="Recruit 2"
[/have_unit]
[then]
{CLEAR_PRINT}
[/filter_condition]

[message]
speaker=narrator
caption= _"New Recruits"
message= _"New units cannot act in the turn they appear; you will gain control of them next turn.
After this dialog, you can move the mouse over a unit to see a summary of its abilities on the right of the screen." +
{CONTINUE_MSG}
[/message]
{CLEAR_PRINT}

# They can move to the village if they're smart
{NO_TARGET_HEX}
[message]
speaker=narrator
caption= _"New Recruits"
message= _"New units cannot act in the turn they appear; you will gain control of them next turn.
After this dialog, you can move the mouse over a unit to see a summary of its abilities on the right of the screen." +
{CONTINUE_MSG}
[/message]

[allow_end_turn][/allow_end_turn]
[allow_end_turn][/allow_end_turn]

{PRINT (_"Click on the <b>End Turn</b> button")}
[/then]
[else]
{PRINT (_"Right click on the other castle tile and recruit another unit")}
[/else]
[/if]
{PRINT (_"End your turn")}
[/event]
[/event]

Expand Down Expand Up @@ -786,7 +688,7 @@ After this dialog, you can move the mouse over a unit to see a summary of its ab
message= _"And which would that be? The sword (5–4) or the bow (3–3)? I suppose you’ll find out..."
[/message]

{PRINT (_"Left click on an Elvish Fighter")}
{PRINT (_"Attack the quintain with one of your fighters")}

{VARIABLE trying_to_be_a_wiseguy yes}

Expand All @@ -809,15 +711,6 @@ After this dialog, you can move the mouse over a unit to see a summary of its ab
[/message]
[/event]

[event]
name=select
[filter]
type=Elvish Fighter
[/filter]

{PRINT (_"Left click on the quintain to attack it.")}
[/event]

[event]
name=attack
[filter]
Expand Down Expand Up @@ -1226,7 +1119,7 @@ Now, Li’sar, I will leave you with more dummies to practice on! After that, we
id=skip_item
[/clear_menu_item]

{CLEAR_VARIABLE target_hex,trying_to_be_a_wiseguy}
{CLEAR_VARIABLE trying_to_be_a_wiseguy}
[/event]

[event]
Expand Down

0 comments on commit e282931

Please sign in to comment.