Wintermute Engine Forum
Czech forum => Technické fórum => Topic started by: sorrow on April 04, 2019, 09:43:47 AM
-
#include "scripts\base.inc"
// here comes the stuff which initializes the scene
actor.SkipTo(400, 400);
actor.Direction = DI_DOWN;
actor.Active = true;
Game.PlaySound("Music\Narcounaven.ogg");
Game.Interactive = true;
actor.Talk("To je divné dveře jsou otevřené a Morty nikde!");
actor.Talk("Kolik Nocí jsme strávili s Mortym a Leonem v tomhle bytě se nedá ani spočítat");
actor.Talk("Morty je prvotřídní ožrala - za den vypije 10 lahváčů");
actor.StopTalking();
////////////////////////////////////////////////////////////////////////////////
// scene state
global StateMortybyt;
// default values
if(StateMortybyt==null)
{
StateMortybyt.Visited = false;
// add scene states here
}
////////////////////////////////////////////////////////////////////////////////
// setup scene according to state variables
////////////////////////////////////////////////////////////////////////////////
if(!StateMortybyt.Visited)
{
StateMortybyt.Visited = true;
// this is our first visit in this scene...
}