Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Marek on June 25, 2004, 03:26:53 PM

Title: Disabling inventory
Post by: Marek on June 25, 2004, 03:26:53 PM
I have a "world map" screen in the game that should not display the inventory.

So in scene_init I put this:

Code: [Select]
Game.InventoryVisible = false;
That doesn't work. I figure game.deamon might be overriding it constantly?

Code: [Select]
if(!Game.ResponsesVisible && !WinMenu.Visible) Game.InventoryVisible = true;
else if(Game.ResponsesVisible || Stateworldmap.Active) Game.InventoryVisible = false;

How can I achieve what I want?
Title: Re: Disabling inventory
Post by: Mnemonic on June 25, 2004, 03:29:48 PM
You can change the condition to something like:

if(!Game.ResponsesVisible && !WinMenu.Visible && Scene.Name!="map") ...
Title: Re: Disabling inventory
Post by: Marek on June 26, 2004, 03:50:27 PM
Winner!
Title: Re: Disabling inventory
Post by: Ennio on March 04, 2011, 09:23:42 PM
I have the same problem...where can i find the game.deamon file?
Title: Re: Disabling inventory
Post by: metamorphium on March 04, 2011, 10:00:21 PM
in the scripts folder of the data folder.
Title: Re: Disabling inventory
Post by: anarchist on March 05, 2011, 01:45:45 PM
I think you mean the script file named game_loop.script which is by default placed in the scripts folder.
Title: Re: Disabling inventory
Post by: Ennio on March 06, 2011, 03:54:41 PM
Exactly! That's why i cannot found inventory control in game.script :P
Thank you very much for help!