Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Game.Reset pgoblem  (Read 3428 times)

0 Members and 1 Guest are viewing this topic.

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Game.Reset pgoblem
« on: June 15, 2005, 12:46:35 AM »

Hi all,

sorry, I am probably dense but I thought that in latest version Game.Reset() should also reset inventory.
I have the following problem (symbolically written):

In the very first room I have something like the following:

if(!StateMyRoom.Visited)
{
  Game.TakeItem("Item1");
}
   
It works ok for the first time. But If I choose from title screen New game and call in my script Game.Reset(); First scene loads
but this item is not added to the inventory. Is it  bug or feature? What should I do to bypass that?

Thanks a lot

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Game.Reset pgoblem
« Reply #1 on: June 15, 2005, 04:12:20 PM »

Never mind, problem was elsewhere. ;-)

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re: Game.Reset pgoblem
« Reply #2 on: June 15, 2005, 04:25:20 PM »

Never mind, problem was elsewhere. ;-)

Ugh, ok. ;) (Anyway, what was the problem with it?)
Logged
Mooh!

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Game.Reset pgoblem
« Reply #3 on: June 15, 2005, 10:09:34 PM »

Never mind, problem was elsewhere. ;-)

Ugh, ok. ;) (Anyway, what was the problem with it?)


My sound daemon was still running and I needed to terminate it prior calling Game.Reset(). Side effect was
that upon reinitialization it didn't hook it and stopped the script execution so Item couldn't have been taken. ;-)
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.038 seconds with 21 queries.