summaryrefslogtreecommitdiff
path: root/npc/025-2-1/logic.txt
blob: 2b65c7901f7779f3a86ba397ccceca43da079f0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// TMW-2 Script.
// Author:
//    Jesusalva
// Notes:
//    Protected warp

025-2-1,87,89,0	script	#To0254	NPC_HIDDEN,0,0,{
    end;

OnTouch:
    .@q=getq(General_Narrator);
    .@q2=getq2(General_Narrator);
    // Cheater Detected
    if (.@q < 20) {
        warp "Save", 0, 0;
        die();
        end;
    }
    if (.@q < 22) {
        dispbottom l("You can see a small locked door in what seems a tight tunnel. Entering this tunnel without the key would be suicide.");
        end;
    }
    warp "025-4", 27, 91;
    end;
}