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: problem with ONE object of the inventory.  (Read 2868 times)

0 Members and 1 Guest are viewing this topic.

Maidnet

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 50
    • View Profile
problem with ONE object of the inventory.
« on: March 19, 2008, 05:35:17 PM »

Hy to all!

I have a little problem with one item of my game:

I have one object inside a little stone box. This box is in the first room of the game.
If I'm open the box and take the item, don't problem. The item has added to inventory.
If I'm go to others rooms, and I take others objects or not, if I'm back to the first room and I open the box and take the item (a little key), don't add the item to inventory.   ??? ??? ??? ??? ??? ???
If I change in the script the little key to other object, don't add to inventory again.

Conclusions: The object has added to inventory only if the actor don't go to others rooms and back to take the object. What is the problem?  ??? ??? ??? ???

BIG THANKS!!!!!

 O0

The script of the object (only LookAt)

Code: [Select]
on "LookAt"
{

  Game.Interactive = false;
  verb_setBar(Command.Verb, self.Caption, false, "");


  actor.GoToObject(this);
  if(llav!=1)
{
actor.Talk("Parece que hay algo aqui dentro.");
actor.PlayAnim("actors\Protagonista\uu\Take1.sprite");
actor.Talk("Es una llave, aunque no recuerdo para que.");
Sleep(150);
actor.TakeItem("LlaveMaria");
llav=1;
}
  else
{
actor.Talk("No hay nada ahí dentro.");
}

  verb_cleanBar(true);
  Game.Interactive = true;

}

The item object

Code: [Select]
ITEM
{
   CURSOR_COMBINED = TRUE
   CAPTION = "Llave Pequeña"
   NAME = "LlaveMaria"
   IMAGE = "items\LlaveCajita\LlaveCajitaNEW.png"
   SCRIPT = "items\LlaveCajita.script"
}
« Last Edit: March 19, 2008, 05:59:29 PM by Maidnet »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: problem with ONE object of the inventory.
« Reply #1 on: March 20, 2008, 09:34:35 PM »

Does the log contain any errors? (the log in the debugging console or wme.log file in your project directory)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Maidnet

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 50
    • View Profile
Re: problem with ONE object of the inventory.
« Reply #2 on: March 20, 2008, 11:48:38 PM »

No, don't contain any error in the log file... it¡s a very misterious poltergeist...  :o :o :o

Logged

Maidnet

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 50
    • View Profile
Re: problem with ONE object of the inventory.
« Reply #3 on: March 21, 2008, 01:01:32 PM »

I believe that already I have solved the mystery.

There was a problem in actor's change on having gone out of the scene. When the actor was going out of the scene, it was changing the actor of the map, and there the problem was here.

I do not know very well how I have solved it, but changing some lines of script it works well. For fín the mystery has been solved!

Thank you for everything.
Logged
 

Page created in 0.04 seconds with 20 queries.