Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - memphisgraceland

Pages: [1]
1
Foro técnico / Re: Dudas tema 3 Wintermute BOOK Online
« on: March 22, 2011, 10:18:07 AM »
Pues muchas gracias. Supongo que es mas práctico y aprenderé mas si como dices voy fijándome en la demo.


2
Foro técnico / Re: Dudas tema 3 Wintermute BOOK Online
« on: March 16, 2011, 12:03:08 AM »
Creo que más o menos he pillado el concepto, aunque me iria de perlas si pudierais darme algún otro ejemplo ¿el inventario seria un Game.AttachScript?

Muchas gracias por vuestra ayuda y vuestras respuestas.

3
Foro técnico / Re: Dudas tema 3 Wintermute BOOK Online
« on: March 08, 2011, 07:17:36 PM »
Muchas gracias de nuevo HelLRaiseR, mientras tanto voy mirando otras cosas.

4
Foro técnico / Re: Dudas tema 3 Wintermute BOOK Online
« on: March 05, 2011, 08:28:49 PM »
Muchas gracias por tu respuesta y tu ayuda HelLRaiseR, la parte en concreto que no entiendo es porque realiza al final cambios en los scripts de la puerta, la bomba y la salida, por lo poco que he podido entender viene a decir algo así como que en esta escena valen los scripts que hemos ido creando a lo largo del tema pero que en otros casos no, ¿a que casos se refiere?¿o es que lo he entendido mal?, el fragmento es el siguiente:

"On closing of this chapter I’ll introduce a little change to our scheme. This change is not necessary in our example, but it will be necessary in different case. For now we’re testing, if the entity region Door is Active for another decision. But what if we need to apply the similar logic to more than one scene? If we stand in different scene, we logically can’t use entity this way because it’s not anymore part of the current scene.

So what we can do is using a global variable. Let’s make a change to our scripts then!
Last code listing for this script triplet is then (changes in bold):

bomb.script
#include "scripts\base.inc"
 
for (var timer=6;timer>-1;timer = timer -1)  // let's set up a loop which would go down from 6 to 0.
{
   Game.Msg("Countdown: " + timer); //Let's display how much time do we have left.
   Sleep(1000); // Sleep one second (and also hand the game over to other threads)
}
 
Game.Interactive = false; //Death cutsene
actor.Talk("I've just died. Let's try again");
var door = Scene.GetNode("Door");
door.Active = true; // If we die, we need to return the door to its active state or we'll never discover the bomb again.
global doorClicked = false;
Game.ChangeScene("scenes\warehouse\warehouse.scene");
Game.Interactive = true;
door.script
#include "scripts\base.inc"
 
on "LeftClick"   
{
   Game.Interactive = false;    // We want our player to make more things at once and we don't want to be interrupted.
   global doorClicked = true;
   actor.GoToObject(this);
   this.Active = false;  // We disable the door so the hotspot is not visible or active anymore.
   actor.Talk("Oh no. There's a timed bomb attached to the door! I have to find an exit before it explodes.");   
   Scene.AttachScript("scenes\warehouse\scr\bomb.script");
   Game.Interactive = true; // Allow player to play some more.
}
exit.script
#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;
}
We’ve seen in this chapter some neat tricks with the way how we can handle the game logic. We’ve also learned some of the important concepts for the tying scene to the code and we are able to use a couple of very basic commands and object methods. But for now we all the time used a lot of prebuilt demo code. Next chapter is all about starting the project from scratch. We’ll build upon this blank project until we create a little feature packed game. So stay tuned, we’re getting into it.

5
Foro técnico / Dudas tema 3 Wintermute BOOK Online
« on: March 03, 2011, 06:49:46 PM »
Hola a todos,

estoy siguiendo el manual en ingles de Wintermute y hasta el momento más o menos me voy apañando pero necesito vuestra ayuda para entender bien un par de cosas, ¿podriais explicarme las diferencias entre estos demonios y en que casos se utilizarian cada uno?

Game.AttachScript
Game.DetachScript
Scene.AttachScript
Scene.DetachScript

tampoco tengo muy claro el final del tema 3, no entiendo bien el porque de las modificaciones que se hacen en los scripts bomb.script door.script y exit.script, seria estupendo si alguien pudiera aclararmelo.

Muchisimas gracias!

Pages: [1]

Page created in 0.024 seconds with 24 queries.