summaryrefslogblamecommitdiff
path: root/world/map/npc/022-1/tutorial.txt
blob: 93f1700a1d747b8fa495811197bd11b6352503d5 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                    
                                                                            


               
 
                                                  
 
                                 
                              


        




























                                                                                    
                                   
 
                                          
                              
           
 
// This file is part of the Tutorial
// Author: Jenalya
// if you enter the tutorial area from outside, it is set to be already done
// Tutorial
// Nibble 0
// 1-4: Sorfina

022-1.gat,46,82,0|script|#tutorial-outside1|45,2,1
{
    callfunc "TutorialCompleted";
    warp "042-1.gat", 115, 85;
    end;
}

-|script|#TutorialConfig|-1,
{
    end;

OnInit:
    set $@ScorpionFighter, 0;
    set $@ScorpionTimer, 0;
    set $@ScorpDeath, 0; 
    set $@SorfinaHasanBit, (1 << 4); 
    set $@TanishaHasanBit, (1 << 5); 
    end;
}

function|script|TutorialState|,
{
    callfunc "ClearVariables";
    set @tutorial, ((TUTORIAL & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
    set @sorfina_hasan, (TUTORIAL & $@SorfinaHasanBit);
    set @tanisha_hasan, (TUTORIAL & $@TanishaHasanBit);
    return;
}

function|script|SetTutorialMask|,
{
    set TUTORIAL, (TUTORIAL & ~(NIBBLE_0_MASK) | (@tutorial_tmp << NIBBLE_0_SHIFT));
    set @tutorial_tmp, 0;
    return;
}

function|script|TutorialCompleted|,
{
    set FLAGS, FLAGS | FLAG_TUTORIAL_DONE;
    callfunc "ClearVariables";
    return;
}