Hi all, working through our testers reports I found another very strange issue:
We have Entities representing Items, such as an empty bucket called "eimerstand" that becomes an Item "Eimerleer" when picked up. In the scene, where the bucket stands, it`s linked to the item and everything works fine.
on "Take"
{
actor.GoToObject(this);
Game.TakeItem("Eimerleer");
}
Works great. I pick up the item, it dissapears in the scene, and the Item "Eimerleer" is in my inventory.
I can change to other scenes, come back, everything is fine - the empty bucket is still gone.
But now it becomes VERY strange:
When I destroy the bucket "Eimerleer" in my inventory, through creating another item out of it (filling it with wheat), the empty bucket in the scene respawns after I change the scene and return. Here`s the script located in the script of the wheat:
on "Eimerleer"
{
actor.GoTo(450,675);
actor.TurnTo(DI_UP);
Game.DeleteItem("Eimerleer");
actor.Talk("Perfekt!");
Game.TakeItem("Eimergetreide");
}
I also tried
on "Eimerleer"
{
actor.GoTo(450,675);
actor.TurnTo(DI_UP);
Game.DeleteItem("Eimerleer");
actor.Talk("Perfekt!");
Game.TakeItem("Eimergetreide");
Game.DeleteEntity("Eimerstand");
}
During reading the boards, I´ve learnt that "DeleteItem" and "DeleteEntity" removes them permanently from the game. But whatever I do, the Entity always respawns in the original location after the destruction of the item representing it. (No matter if I drop or delete it)
Do I have some logical error inside I did not get?