//
// Copyright(C) 2014-2015 Samuel Villarreal
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// DESCRIPTION:
//      Level Script For Level47.map
//

#include "scripts/common.txt"

int g_timeTrialActive = 0;

$script 0
{
    GameVariables.GetInt("g_timetrial", g_timeTrialActive);
    if(g_timeTrialActive != 0)
    {
        Game.StartTimer();
    }
}

/*
==============================================================
Script 10001
==============================================================
*/

$script 10001
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_157");
}

/*
==============================================================
Script 10002
==============================================================
*/

$script 10002
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_158");
}

/*
==============================================================
Script 10003
==============================================================
*/

$script 10003
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_159");
}


/*
==============================================================
Script 10004
==============================================================
*/

$script 10004
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_160");
}

/*
==============================================================
Script 10005
==============================================================
*/

$script 10005
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_161");
}

/*
==============================================================
Script 10006
==============================================================
*/

$script 10006
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_162");    
}

/*
==============================================================
Script 10007
==============================================================
*/

$script 10007
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_163");
}

/*
==============================================================
Script 10009
==============================================================
*/

$script 10009
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_164");
}

/*
==============================================================
Script 10010
==============================================================
*/

$script 10010
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_165");
}

/*
==============================================================
Script 10011
==============================================================
*/

$script 10011
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_166");
}

/*
==============================================================
Script 10012
==============================================================
*/

$script 10012
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_167");
}

/*
==============================================================
Script 10013
==============================================================
*/

$script 10013
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_168");
}

/*
==============================================================
Script 10015
==============================================================
*/

$script 10015
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_169");
}

/*
==============================================================
Script 10016
==============================================================
*/

$script 10016
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_170");
}

/*
==============================================================
Script 10017
==============================================================
*/

$script 10017
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_171");
}

/*
==============================================================
Script 10018
==============================================================
*/

$script 10018
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_172");
}

/*
==============================================================
Script 10019
==============================================================
*/

$script 10019
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_173");
}

/*
==============================================================
Script 10020
==============================================================
*/

$script 10020
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_174");
}

/*
==============================================================
Script 10021
==============================================================
*/

$script 10021
{
    if((instigator.Flags() & AF_ENTEREDAREAEVENT) != 0)
    {
        return;
    }
    Game.PrintHelp("$str_175", true);
    if(g_timeTrialActive != 0)
    {
        Game.StopTimer();
    }
}
    