35 -- mission objectives |
35 -- mission objectives |
36 local goals = { |
36 local goals = { |
37 [dialog01] = {missionName, loc("Ready for Battle?"), |
37 [dialog01] = {missionName, loc("Ready for Battle?"), |
38 loc("Captain Lime offered his help if you assist him in battle.").."|".. |
38 loc("Captain Lime offered his help if you assist him in battle.").."|".. |
39 loc("What do you want to do?").."| |".. |
39 loc("What do you want to do?").."| |".. |
40 loc("Fight: Press [Left]").."|".. |
40 loc("Fight: Press [Attack]").."|".. |
41 loc("Flee: Press [Right]"), 1, 9999000}, |
41 loc("Flee: Press [Jump]"), 1, 9999000}, |
42 [dialog02] = {missionName, loc("Battle Starts Now!"), loc("You have chosen to fight!").."|"..loc("Lead the Green Bananas to battle and eliminate all the enemies!"), 1, 5000}, |
42 [dialog02] = {missionName, loc("Battle Starts Now!"), loc("You have chosen to fight!").."|"..loc("Lead the Green Bananas to battle and eliminate all the enemies!"), 1, 5000}, |
43 [dialog03] = {missionName, loc("Time to run!"), loc("You have chosen to flee.").."|"..loc("You have to reach the left-most place on the map."), 1, 5000}, |
43 [dialog03] = {missionName, loc("Time to run!"), loc("You have chosen to flee.").."|"..loc("You have to reach the left-most place on the map."), 1, 5000}, |
44 ["fight"] = {missionName, loc("Ready for Battle?"), loc("You have chosen to fight!"), 1, 2000}, |
44 ["fight"] = {missionName, loc("Ready for Battle?"), loc("You have chosen to fight!"), 1, 2000}, |
45 ["flee"] = {missionName, loc("Ready for Battle?"), loc("You have chosen to flee."), 1, 2000}, |
45 ["flee"] = {missionName, loc("Ready for Battle?"), loc("You have chosen to flee."), 1, 2000}, |
46 ["flee_final"] = {missionName, loc("Time to run!"), loc("Knock off the enemies from the left-most place of the map!") .. "|" .. loc("Stay there to flee!"), 1, 6000}, |
46 ["flee_final"] = {missionName, loc("Time to run!"), loc("Knock off the enemies from the left-most place of the map!") .. "|" .. loc("Stay there to flee!"), 1, 6000}, |
515 SaveCampaignVar("Mission3", "10") |
515 SaveCampaignVar("Mission3", "10") |
516 SaveCampaignVar("Mission4", "1") |
516 SaveCampaignVar("Mission4", "1") |
517 end |
517 end |
518 |
518 |
519 |
519 |
520 function onRight() |
520 function onLJump() |
521 if awaitingInput then |
521 if awaitingInput then |
522 PlaySound(sndPlaced) |
522 PlaySound(sndPlaced) |
523 PlaySound(sndCoward, green1.gear) |
523 PlaySound(sndCoward, green1.gear) |
524 chooseToBattle = false |
524 chooseToBattle = false |
525 heroSelect() |
525 heroSelect() |
526 end |
526 end |
527 end |
527 end |
528 |
528 onHJump = onLJump |
529 function onLeft() |
529 |
|
530 function onAttack() |
530 if awaitingInput then |
531 if awaitingInput then |
531 PlaySound(sndPlaced) |
532 PlaySound(sndPlaced) |
532 PlaySound(sndYesSir, hero.gear) |
|
533 chooseToBattle = true |
533 chooseToBattle = true |
534 heroSelect() |
534 heroSelect() |
535 end |
535 end |
536 end |
536 end |