{./utils.cfg} [tutorial] id=tutorial name= _ "Basic Training" map_data="{maps/Tutorial/Basic_Training}" turns=12 music=wesnoth-4.ogg experience_modifier=50 {DAWN} {MORNING} {AFTERNOON} {DUSK} {FIRST_WATCH} {SECOND_WATCH} victory_when_enemies_defeated=no [side] type=Fighter description=Konrad canrecruit=1 side=1 recruit=Elvish Fighter controller=human [/side] [side] type=Elder Mage description=Delfador canrecruit=1 side=2 team_name=1 [ai] passive_leader=yes [/ai] [/side] [side] no_leader=yes side=3 [ai] passive_leader=yes aggression=1 caution=0 leader_value=0 [target] type=Elvish Fighter value=100 [/target] [target] description=Delfador value=.1 [/target] [target] description=Konrad value=.1 [/target] [avoid] x=15-18 y=7-11 [/avoid] [/ai] [/side] [event] name=start [message] description=Konrad message= _ "I am here to learn how to fight in a battle. As an experienced elder mage, surely you can explain the art of combat to me..." [/message] [message] message= _ "Before entering any battle, you need to recruit units. To recruit a unit, right click on the castle tile on which you wish to recruit the unit. Then select Recruit, and select 'OK'. You can only recruit units on castle tiles connected to the keep your leader is on." [/message] {SET_OBJECTIVE (_"Recruit a unit")} [/event] [event] name=recruit [message] description=Delfador message= _ "Excellent! You have recruited an Elvish Fighter." [/message] {QUESTION_OPTIONS_START (_"What do I do next?")} {RECRUIT_QUESTIONS} {QUESTION_OPTIONS_END} #will be changed once 'role' bug is fixed [set_recruit] recruit=Elvish Archer,Elvish Shaman [/set_recruit] [message] description=Delfador message= _ "Since units cannot move on the turn they are recruited, you must end your turn. To do this, simply click the 'End Turn' button in the lower-right hand corner." [/message] {SET_OBJECTIVE (_"End your turn")} [event] name=new turn [message] description=Delfador message= _ "You have successfully ended your turn." [/message] {QUESTION_OPTIONS_START (_"What do I do next?")} {TURN_QUESTIONS} {QUESTION_OPTIONS_END} [message] description=Delfador message= _ "Your next task is to move your Elvish Fighter. To move a unit, first select it, then select his destination. In this case, his destination is the forest next to the Elvish Shaman, Merle." [/message] {SET_OBJECTIVE (_"Move your Elvish Fighter next to Merle")} [move_unit_fake] x=09,10,10,11,11 y=04,04,05,06,07 type=Elvish Shaman [/move_unit_fake] [unit] description=Merle type=Elvish Shaman x,y=11,7 side=3 #canrecruit=1 [/unit] [event] name=moveto [filter] x=10,10,11,11,12,12 y=06,07,06,08,06,07 type=Elvish Fighter [/filter] [message] description=Delfador message= _ "Excellent! You have successfully moved your Elvish Fighter. However, since he moved next to an enemy unit, he has lost all his movement for this turn; this is called the 'zone of control'." [/message] {QUESTION_OPTIONS_START (_"What do I do next?")} {MOVE_QUESTIONS} {QUESTION_OPTIONS_END} [message] description=Delfador message= _ "Now, you need to attack with your fighter. To attack, first select a unit, then select its target, which must be next to the attacking unit. You will then see the attack options box, where you must select an attack to use." [/message] {SET_OBJECTIVE (_"Attack Merle")} [event] name=attack [kill] description=Merle [/kill] [unit] type=Elvish Shaman description=Merle x,y=11,7 side=3 [/unit] [message] description=Delfador message= _ "You have successfully attacked Merle." [/message] {QUESTION_OPTIONS_START (_"What do I do next?")} {ATTACK_QUESTIONS} {QUESTION_OPTIONS_END} [message] description=Delfador message= _ "End your turn, and wait for Merle to attack you." [/message] [event] name=new turn [message] description=Delfador message= _ "Your fighter has survived Merle's attack. Whenever a unit survives a battle, it receives experience from the combat. Once a unit gains enough experience, it advances to the next level, and becomes more powerful." [/message] {QUESTION_OPTIONS_START (_"What do I do next?")} {XP_QUESTIONS} {QUESTION_OPTIONS_END} [message] description=Delfador message= _ "Move your fighter onto a village." [/message] {SET_OBJECTIVE (_"Move your fighter onto a village.")} [event] name=moveto [filter] # terrain=v x=01,09,16,22,19,13,16,21,06 y=01,04,05,06,08,09,11,15,20 type=Elvish Fighter [/filter] [message] description=Delfador message= _ "Villages heal the units on them." [/message] {QUESTION_OPTIONS_START (_"What do I do next?")} {VILLAGE_QUESTIONS} {QUESTION_OPTIONS_END} [message] description=Delfador message= _ "Now, you must defeat Merle by reducing her to 0 HP or lower. Just attack repeatedly." [/message] {SET_OBJECTIVE (_"Defeat Merle")} [/event] [/event] [/event] [/event] [/event] [/event] [event] name=moveto first_time_only=no [filter] description=Konrad [/filter] [message] description=Delfador message= _ "Oops! You moved your leader off of the keep. Remember, when your leader is not on a keep, you cannot recruit. Also remember that if your leader dies, you lose. In order to continue the tutorial, I will have to teleport you back onto your keep." [/message] [teleport] [filter] description=Konrad [/filter] x,y=17,10 [/teleport] [/event] [event] name=die [filter] description=Konrad [/filter] [message] description=Delfador message= _ "Unfortunately, you lost, because your leader was defeated. Hopefully you have gained wisdom from my teachings anyway." [/message] [/event] [event] name=time over [message] description=Delfador message= _ "Unfortunately, you lost, because you ran out of time. Hopefully you have gained wisdom from my teachings anyway." [/message] [/event] [event] name=die [filter] side=3 [/filter] [message] description=Delfador message= _ "You have successfully completed the first training scenario." [/message] {QUESTION_OPTIONS_START (_"Hooray!")} {VICTORY_QUESTIONS} {QUESTION_OPTIONS_END} [message] description=Delfador message= _ "Do you want to review any of the skills learned in this scenario?" [option] message= _ "Yes" [command] {QUESTION_OPTIONS_START (_"I'm done reviewing skills!")} {RECRUIT_QUESTIONS} {TURN_QUESTIONS} {MOVE_QUESTIONS} {ATTACK_QUESTIONS} {XP_QUESTIONS} {VILLAGE_QUESTIONS} {VICTORY_QUESTIONS} {QUESTION_OPTIONS_END} [/command] [/option] [option] message= _ "No" [/option] [/message] [message] description=Delfador message= _ "Although you have completed your first scenario, your training is not yet over. We will now proceed to the next scenario, in which you will fight me in a mock battle." [/message] [endlevel] next_scenario=tutorial-2 bonus=yes [/endlevel] [/event] [/tutorial]