Skip to content

Commit

Permalink
Finished out questions, fixed some logic errors
Browse files Browse the repository at this point in the history
Also condensed functions for beauc puzzle into helpers.lua
  • Loading branch information
Flibe-XI committed Feb 2, 2024
1 parent 19ca916 commit 711a938
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 61 deletions.
36 changes: 34 additions & 2 deletions scripts/missions/amk/13_A_Challenge_You_Could_Be_a_Winner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
-- A Challenge! You Could Be a Winner
-- A Moogle Kupo d'Etat M13
-- !addmission 10 12
-- Shadowy Pillar : !pos 374 -12 -15
-----------------------------------
-- Puzzle 1 - Beaucedine
-- Shadowy Pillar : !pos 374 -12 -15
-- Lonely Evergreen : !pos -162 -80 178
-- Goblin Grenadier : !pos -26 -59 -76
-----------------------------------
-- Puzzle 2 - Xarcabard
-- Option_One : !pos 126 -24 -118
-- Option_One : !pos 66 -24 -191 112
-- Option_Three : !pos 1 -23 -103 112
-----------------------------------
-- This mission can be repeated by losing the bncm battle in the subsequent mission
-- Therefore to remove possible conflicts, the mission progress will be handled
-- using a variable stored as a CharVar
Expand Down Expand Up @@ -317,9 +324,34 @@ mission.sections =
-- Part 4: Castle Zvahl Baileys
{
check = function(player, currentMission, missionStatus, vars)
return currentMission == mission.missionId
return currentMission >= mission.missionId and
player:getCharVar('Mission[10][12]progress') == 3
end,

[xi.zone.XARCABARD] =
{
['Option_One'] =
{
onTrigger = function(player, npc)
return xi.amk.helpers.puzzleTwoOnTrigger(player, npc, mission)
end,
},

['Option_Two'] =
{
onTrigger = function(player, npc)
return xi.amk.helpers.puzzleTwoOnTrigger(player, npc, mission)
end,
},

['Option_Three'] =
{
onTrigger = function(player, npc)
return xi.amk.helpers.puzzleTwoOnTrigger(player, npc, mission)
end,
},
},

[xi.zone.CASTLE_ZVAHL_BAILEYS] =
{

Expand Down
Loading

0 comments on commit 711a938

Please sign in to comment.