Czech forum > Technické fórum

Chci aby Actor přestal mluvit i když znovu najedu do této stejné scény!JaknaTo?

(1/1)

sorrow:
#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...
}

Navigation

[0] Message Index

Go to full version