1
Community bulletin board / Re: WME BOOK is online
« on: July 20, 2008, 10:53:43 PM »
Hi, I'm starting to read the book. I think I found a small error in the last script (exit.script) in Chapter 3.
#include "scripts\base.inc"
on "ActorEntry"
{
var door = Scene.GetNode("Door");
Game.Interactive = false;
global doorClicked;
if (doorClicked)
{
actor.Talk("I don't want to return to my flat before I am sure I can't enter the warehouse!");
}
else
{
Scene.DetachScript("scenes\warehouse\scr\bomb.script");
actor.Talk("Phew. That was close");
Game.ChangeScene("scenes\room\room.scene");
}
Game.Interactive = true;
}
Line in red must be: if (!doorClicked)
Am I right? Greetings !!!
#include "scripts\base.inc"
on "ActorEntry"
{
var door = Scene.GetNode("Door");
Game.Interactive = false;
global doorClicked;
if (doorClicked)
{
actor.Talk("I don't want to return to my flat before I am sure I can't enter the warehouse!");
}
else
{
Scene.DetachScript("scenes\warehouse\scr\bomb.script");
actor.Talk("Phew. That was close");
Game.ChangeScene("scenes\room\room.scene");
}
Game.Interactive = true;
}
Line in red must be: if (!doorClicked)
Am I right? Greetings !!!