I'm sorry, I can't make it work.
To try it out some more I inserted these lines in the street/scene_init.script in the WME demo:
//load our main actor
actor = Game.LoadActor("actors\new_actor\new_actor.actor");
Game.MainObject = actor;
global new_actor;
Game.InventoryObject = new_actor;
This is a new actor I added, the "add actor... generic".
Anyways, it didn't work there either. Even though I even loaded the actor whose inv I wanted to see.
Do I have to do something with the global variable? Or is it all wrong?
I could still see the book and the money (DONT show me the money...)
Here is some code from my own game:
while(scr==2)
{
//load our main actor
actor = Game.LoadActor("actors\spells\spells.actor");
Game.MainObject = actor;
Game.InventoryObject = spells;
this.Visible=true;
Game.InventoryVisible=true;
Sleep(20);
}
Sleep(20);
}
//It's in a window's script where I loop that if a certain value is so and so it will show the window with the inventory on top it.
//It works splendid. It's just that I can't change that inventory to another persons/objects so that the stuff I have there is hidden and
//replaced by some other stuff.
(I really feel like some looser here when I can't even make one easy piecey line of code to work.
And to trouble you guys so much...
Maybe I haven't learned the syntax and things like that..
This is my first "real" programming language after all.)