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!!!!!
The script of the object (only LookAt)
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
ITEM
{
CURSOR_COMBINED = TRUE
CAPTION = "Llave Pequeña"
NAME = "LlaveMaria"
IMAGE = "items\LlaveCajita\LlaveCajitaNEW.png"
SCRIPT = "items\LlaveCajita.script"
}