Differences

This shows you the differences between the selected revision and the current
version of the page.


faq 2008/11/24 20:26 faq 2010/10/07 17:38 current
Line 17: Line 17:
Also important to know is that all your gfx, music etc. must reside in your project directory otherwise it doesn't get compiled into packages. Also important to know is that all your gfx, music etc. must reside in your project directory otherwise it doesn't get compiled into packages.
 +
 +
 +
Line 24: Line 27:
A: Normally would have been sufficient to set Game.InventoryVisible = false; but WME demo has a sliding inventory, so we would need a bit more for that. A: Normally would have been sufficient to set Game.InventoryVisible = false; but WME demo has a sliding inventory, so we would need a bit more for that.
-Go into data/scripts/game_daemon.script file to the line which reads +Go into data/scripts/game_loop.script file to the line which reads 
-if(Game.Interactive && Game.MouseY < 45 &&! Game.ResponsesVisible &&! WinMenu.Visible) Game.InventoryVisible = true;+<code script> 
 +  if(Game.Interactive && Game.MouseY < 45 &&! Game.ResponsesVisible &&! WinMenu.Visible) 
 +    Game.InventoryVisible = true; 
 +</code> 
and change it to and change it to
-if(Game.Interactive && Game.MouseY < 45 &&! Game.ResponsesVisible &&! WinMenu.Visible && InventoryActive) Game.InventoryVisible = true;+<code script> 
 +  if(Game.Interactive && Game.MouseY < 45 &&! Game.ResponsesVisible &&! WinMenu.Visible && InventoryActive) 
 +    Game.InventoryVisible = true
 +</code>;
Add into data/scripts/base.inc line global InventoryActive; and finally in data/scripts/game.script insert at the begining line InventoryActive = true; Add into data/scripts/base.inc line global InventoryActive; and finally in data/scripts/game.script insert at the begining line InventoryActive = true;
Line 38: Line 48:
Example: Example:
TXT000001[TAB]Hi, I would like to speak with you about | somereallystrangeandincomprehensible thing. TXT000001[TAB]Hi, I would like to speak with you about | somereallystrangeandincomprehensible thing.
 +
Line 47: Line 58:
<code script>var txt = Game.ExpandString("/TXT000001/"); <code script>var txt = Game.ExpandString("/TXT000001/");
-Game.Msg(txt);<code>+Game.Msg(txt);</code>
Line 60: Line 71:
this can be done through for example: this can be done through for example:
-<code script>Game.AddSpeechDir("Town");<code>+<code script>Game.AddSpeechDir("Town");</code>
Your sound files should be named according to your keys in the string.tab file so for example if your line there reads Your sound files should be named according to your keys in the string.tab file so for example if your line there reads
-TOWN0010001 Hi, my name is Armitage!+  TOWN0010001 Hi, my name is Armitage!
your sound file will be named town0010001.ogg your sound file will be named town0010001.ogg
 
faq.1227554762.txt.gz · Last modified: 2008/11/24 20:26 by Mnemonic
Recent changes RSS feed Creative Commons License Driven by DokuWiki