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: change scene after inventory choice  (Read 2482 times)

0 Members and 1 Guest are viewing this topic.

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
change scene after inventory choice
« on: August 01, 2007, 02:59:44 AM »

I have a dialog that gets called during an inventory choice.  If one selection is made, I want to change scene and have a character from that scene talk and then return to this scene.  I started with just a change scene.  However, there is a fade out and then it immediately comes back to the current scene.  This is a portion of the code:
Code: [Select]
on "berries"
{ actor.GoToObject(this);
  var berries = Scene.GetNode("berries");
  berries.Active = true;
  Game.DropItem("berries");
  if(allScenes.tree)
  {
  Game.StartDlgBranch("stump");
  stumpDialogue();
  Game.EndDlgBranch("stump");
  Game.Interactive = true;
  }
  Game.ChangeScene("scenes\cabin.scene");
}

I took out the flag so no matter what when the dialog ends it should change scene.  I imagine it's because I'm still in the event, but I'm not sure how to end it and change scenes.
« Last Edit: August 01, 2007, 03:04:20 AM by fireside »
Logged

fireside

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 211
    • View Profile
Re: change scene after inventory choice
« Reply #1 on: August 01, 2007, 03:42:50 AM »

Oh, never mind.  I had the wrong path for change scene.
Logged
 

Page created in 0.033 seconds with 24 queries.