summaryrefslogblamecommitdiff
path: root/npc/000-2-3/box.txt
blob: 0866993aa7f311a76a627c26a82aca57f1f8152d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                
          

               


                                                                                                


                
                     
           
                                                                                                               


                                                                
 
                                               
 
                                  







                                                                        

                                






                               
                                                         


                
                                          
         
                                                                                                                                            
         
                                                                                                           
         
                                                                                                                                                     
         
                                 


         
                                                       



                                                         
                     
         



                                                                               
 



                                             
                            
                            



          
           
                
                                                                             




          
           
                
                        

                
                                                                        
 



                                             
                            





                                                  
           
                

                                                                               

          
 
// Evol scripts.
// Author:
//    Reid
// Description:
//    Captain Nard dialogs.
//    Nard does the introduction with a small quest.
//    This quest is meant to teach the player how to use a weapon,and to bring food to the ship.
// 2 bits array:
//    ShipQuests
// Variable:
//    ShipQuests_Nard
// Values: 
//    0   Introduction of the boxes and Nard. This is displayed when the player never spoke to Nard or his box.
//    1   Nard spoke and gave access to the outdoor of the ship.
//    2   Completed the quest.
//    3   Opened the chest and finished the introduction.

000-2-3.gat,25,24,0	script	Box	102;1,{

    set @q, getq(ShipQuests_Nard);

    mesn "Narrator";
    mes col(l("Some Bandanas and Sailor Hats are inside this box."), 9);
    next;
    mes col(l("What do you wish to do?"), 9);
    next;

    menu
        l("Take a Bandana."), -,
        l("Nothing."), l_Close;

    if (@q == 1) goto l_NotYet;
    if (@q == 2) goto l_Give;
    if (@q > 2) goto l_Already;

    mes "";
    mesn "Narrator";
    mes col(l("Nard looks surprised and stops you."), 9);
    next;

    mesn "Nard";
    mesq l("You like these hats, right?");
    next;
    mesq l("How about I ask you to help the crew? It would mean that you're one of us and that you will be able to get one of these hats.");
    next;
    mesq l("We need as many hands as possible to explore the island out there, and to get some new food.");
    next;
    mesq l("You could meet some of the other sailors this way, and... Getting this hat of course, will be a sign of you becoming part of our crew.");
    next;
    mesq l("What do you think?");
    next;

    menu
        l("Why not, I've got plenty of free time."), -,
        l("I think that I'm still a bit sick."), l_Close;

    mes "";
    mesn "Nard";
    mesq l("Great!");
    next;
    mesq l("I give you this key, it opens any doors on this ship.");
    next;
    mesq l("Now go outside and talk with Gugli, he'll tell you what we need.");
    next;

    set @item, 718;
    set @count, 1;
    callfunc "InventoryPlace", @item, @count;

    setq ShipQuests_Nard, 1;
    getitem "JohanneKey", 1;

    close;

l_NotYet:
    mes "";
    mesn "Nard";
    mesq l("Please don't touch these hats, they are for crew members only.");

l_Close:
    close;

l_Give:
    mes "";
    mesn "Nard";
    mesq l("Congrats!");
    next;
    mesn "Nard";
    mesq l("You are now part of the crew. Thanks again for your help.");

    set @item, 2900;
    set @count, 1;
    callfunc "InventoryPlace", @item, @count;

    setq ShipQuests_Nard, 3;
    getitem "Bandana", 1;
//  Need to add a skill for the crew at this line.

    close;

l_Already:
    mes "";
    mesn "Nard";
    mesq l("You already took a Bandana, please put this one back in the box.");

    close;

}