summaryrefslogblamecommitdiff
path: root/npc/001-7/homunculus.txt
blob: 1f2b5ef0296736a9cc2505f370ff8781bd2ff2eb (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                        
                    



















                                                                 
                    













                                               













                                                               
// TMW2 scripts.
// Author:
//    Jesusalva
// Description:
//    001-7 Monster King's Village Configuration File
//    Part of Player Quest, see 023-3 scope and 024-16
//    (C) Moubootaur Legends, 2019

001-7,91,89,0	script	#Init0233	NPC_HIDDEN,0,0,{
    end;

OnTouch:
    .@q=getq(General_Narrator);
    .@q2=getq2(General_Narrator);
    // Cheater Detected
    if (.@q < 15) { 
        warp "Save", 0, 0;
        percentheal -100, -100;
        return false;
    }
    if (.@q == 15) {
        dispbottom lg("I'm not a coward! I must press forward!");
        end;
    }
	.@mapn$="023-3";
    warp .@mapn$, 48, 23;
    end;
}

001-7,59,44,0	script	#Init02331	NPC_HIDDEN,0,0,{
    end;

OnTouch:
    .@n=getq(General_Narrator);
    .@q=getq2(FrostiaQuest_Homunculus);
    // Cheater Detected
    if (.@n < 15) { 
        warp "Save", 0, 0;
        percentheal -100, -100;
        return false;
    }
    if (.@q < 15) {
        dispbottom l("It seems to be sealed.");
        end;
    }
	.@mapn$="023-3-1";
    warp .@mapn$, any(45,46), 79;
    end;
}
// Okay, we're done with basic warps

001-7,50,112,0	script	Abandoned Fountain#MKH	NPC_NO_SPRITE,{
    .@q=getq2(FrostiaQuest_Homunculus);
    mesn;
    mesc l("Meh.");
    if (!(.@q & .objID))
        setq2 FrostiaQuest_Homunculus, .@q|.objID;
    close;
OnInit:
    .objID=1;
    .distance=3;
    end;
}