diff options
Diffstat (limited to 'npc/018-6-0')
-rw-r--r-- | npc/018-6-0/_import.txt | 1 | ||||
-rw-r--r-- | npc/018-6-0/ctrl | 29 | ||||
-rw-r--r-- | npc/018-6-0/main.txt | 122 |
3 files changed, 152 insertions, 0 deletions
diff --git a/npc/018-6-0/_import.txt b/npc/018-6-0/_import.txt index 45be6bdab..0e2c16f0e 100644 --- a/npc/018-6-0/_import.txt +++ b/npc/018-6-0/_import.txt @@ -1,2 +1,3 @@ // Map 018-6-0: Sanctuary - Forgotten Chamber // This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/018-6-0/main.txt", diff --git a/npc/018-6-0/ctrl b/npc/018-6-0/ctrl new file mode 100644 index 000000000..e1f7f6140 --- /dev/null +++ b/npc/018-6-0/ctrl @@ -0,0 +1,29 @@ +LoFQuest_Barbara +q1 + q3 + +-------------------------- +0 Quest not assigned +1 Quest was assigned + 0 No cutscene seen + 1 The wounded soldier seen + 2 The footprints seen +2 Forgotten Chamber Puzzle is in progress (warp on) + 0 No puzzle solved + 1 West puzzle solved (&) (west lever) + 2 East puzzle solved (&) (east lever) + 3 South puzzle unlocked (w/e lever) + 4 South puzzle node (e/w lever) + 5 South puzzle solved, access to shrine granted +3 Forgotten Shrine has been allowed (warp on / remember to reenable NPCs on resume) + Bitwise boss fights: + 1, 2, 4, 8, 16, 32, 64, 128, 256 (enable warps as win) + → Once the main shrine was reached: set to 511, Mana Stone story + & 512 => Boss defeated, cutscene ended, magic apple now visible +4 Ambush finished, return to elenium mines +5 Barbara captured +6 Reward claimed, Barbara Arrested +7 Reward claimed, Barbara NOT Arrested + +Field 2: Instance ID + diff --git a/npc/018-6-0/main.txt b/npc/018-6-0/main.txt new file mode 100644 index 000000000..40827f383 --- /dev/null +++ b/npc/018-6-0/main.txt @@ -0,0 +1,122 @@ +// TMW2 Scripts +// Author: +// Jesusalva +// Description: +// Controls Forgotten Chamber + +///////////////////////////// +018-6-0,90,67,0 script #ToForgottenShrine NPC_SUMMONING_CIRC,0,0,{ + dispbottom l("It looks dangerous."); + end; + +OnTouch: + .@q=getq(LoFQuest_Barbara); + if (.@q >= 2) { + warp BarbaraInstCheck(3), 31, 151; + //warp BarbaraInstCheck(0), 90+any(-1, 1), 90+any(-1,1); + } else { + Exception("ERROR, YOU SHOULD NOT BEEN SEEING THIS. 018-6-1.TFC"); + } + end; + + +OnInit: + disablenpc .name$; + end; +OnInstanceInit: + disablenpc instance_npcname(.name$); + end; +} + +///////////////////////////// +018-6-0,90,90,0 script #FromEleniumMines NPC_SUMMONING_CIRC,0,0,{ + dispbottom l("It should bring me back."); + end; + +OnTouch: + .@q=getq(LoFQuest_Barbara); + if (.@q < 10) { + warp BarbaraInstCheck(1), 83, 28; + //warp BarbaraInstCheck(0), 90+any(-1, 1), 90+any(-1,1); + } else { + warp "018-6-1", 83, 28; + } + end; +} + + + + + +///////////////////////////// +018-6-0,90,113,0 script #ToSouthHall NPC_SUMMONING_CIRC,0,0,{ + dispbottom l("It looks dangerous."); + end; + +OnTouch: + .@q=getq(LoFQuest_Barbara); + .@q2=getq2(LoFQuest_Barbara); + .@q3=getq3(LoFQuest_Barbara); + if (.@q == 2 && .@q3 >= 3) { + warp BarbaraInstCheck(2), 90, 32; + //warp BarbaraInstCheck(0), 90+any(-1, 1), 90+any(-1,1); + } else { + dispbottom l("I already visited this warp."); + } + end; + + +OnInit: + disablenpc .name$; + end; +OnInstanceInit: + disablenpc instance_npcname(.name$); + end; +} + +///////////////////////////// +018-6-0,67,90,0 script #ToWestHall NPC_SUMMONING_CIRC,0,0,{ + dispbottom l("It looks dangerous."); + end; + +OnTouch: + .@q=getq(LoFQuest_Barbara); + .@q2=getq2(LoFQuest_Barbara); + .@q3=getq3(LoFQuest_Barbara); + if (.@q == 2 && !(.@q3 & 1)) { + warp BarbaraInstCheck(2), 70, 150; + } else { + dispbottom l("I already visited this warp."); + } + end; + + +OnInit: + disablenpc .name$; + end; +} + + +///////////////////////////// +018-6-0,113,90,0 script #ToEastHall NPC_SUMMONING_CIRC,0,0,{ + dispbottom l("It looks dangerous."); + end; + +OnTouch: + .@q=getq(LoFQuest_Barbara); + .@q2=getq2(LoFQuest_Barbara); + .@q3=getq3(LoFQuest_Barbara); + if (.@q == 2 && !(.@q3 & 2)) { + warp BarbaraInstCheck(2), 103, 156; + } else { + dispbottom l("I already visited this warp."); + } + end; + + +OnInit: + disablenpc .name$; + end; +} + + |