Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: no me funcionan los dialogos como yo quiero!!!  (Read 4890 times)

0 Members and 1 Guest are viewing this topic.

YO

  • Our first adventure:
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 32
    • View Profile
no me funcionan los dialogos como yo quiero!!!
« on: November 01, 2010, 05:50:12 PM »

wenas, aqui estoy de nuevo, me ha surguido otro problemilla, entre tantos..., esto es de los dialogos, me gustaria que un NPC hablase normal, pero despues de darle algun objeto diga otro dialogo, no se si me explico, que cambie todo su dialogo despues de darle dicho objeto.

como codigo tengo puesto en el NPC.script
Code: [Select]
global StateRoom;
global NPC;

on "Talk"
{
 if (StateRoom.book==2)
 {
  actor.GoTo(880 ,700);
  this.GoTo(550, 542);
  Game.Interactive = false;
  // greetings
  if(!StateRoom.TalkedToNPC) actor.Talk("Hola");
  else actor.Talk("Mmm");
  this.Talk("Que narices quieres, tengo mucho trabajo");

  // set the flag, so that we know we've already talked to him
  StateRoom.TalkedToNPC = true;

  // and let the dialogue begin

  NPCDialogue();
 
 
  // restore interactivity
  Game.Interactive = true;
  }
  else if (StateRoom.book==1)
  {
   actor.GoTo(880 ,700);
  this.GoTo(550, 542);
  Game.Interactive = false;
  // greetings
  if(!StateRoom.TalkedToNPC) actor.Talk("Hola");
  else actor.Talk("Mmm");
  this.Talk("Que narices quieres, tengo mucho trabajo");

  // set the flag, so that we know we've already talked to him
  StateRoom.TalkedToNPC = true;

  // and let the dialogue begin

  NPCDialogue2();
 
 
  // restore interactivity
  Game.Interactive = true;
    }
}

ademas de las funciones del NPCDialogue, que van despues, y esto que tengo de cuando la doy el libro:

Code: [Select]
on "book"
{
  Game.Interactive = false;
  Game.DeleteItem("book");
  StateRoom.book = 1;

  Game.Interactive = true;
}

y esto referido del scene.init
Code: [Select]

if(StateRoom==null)
{
  StateRoom.Visited = false;
  // add scene states here
 StateRoom.TalkedToNPC = false;
 StateRoom.book = 2;
}


no se que le pasa que si no le doy el libro no habla, pero si la doy el libro me habla bien es muy raro, me pasan cosas muy raras XD
Logged
Henry y El libro magico, proximamente sacaremos la demo en español...
Henry and the magic book, demo coming soon in English

YO

  • Our first adventure:
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 32
    • View Profile
Re: no me funcionan los dialogos como yo quiero!!!
« Reply #1 on: November 10, 2010, 01:22:38 AM »

ya esta solucionado
Logged
Henry y El libro magico, proximamente sacaremos la demo en español...
Henry and the magic book, demo coming soon in English
 

Page created in 0.051 seconds with 23 queries.