I have some problems with the INI and text object. It's pretty hard to explain, but I'll try my best to do it-
I was trying to build a dialog system for my game. The system was simple, all the dialogs are stored in an INI file, the cap has an global variable. When you left click, the global variable's value increases by 1 and there's an event for each specifc value which loads the corresponding dialog text from INI and writes it in the text object. For eg-
If global('dialog') value is 0 then load the item "diag1" from the INI.
---[RIGHT CLICK], global('dialog') increases to 1.
If global('dialog') value is 1 then load the item "diag2" from the INI.
and so on.
The problem here is that the event works for every other value except the one it's currently checking.
Here's a cap - http://dl.dropbox.com/u/5811650/Repulsion/inierror.rar
The expected text that you should see when you preview should be - "CHECK DIALOG", but instead you get a blank text object.But if you left click to increase the value of 'dialog' from 0 to 1, then the text appears.
Some other things to note-
- this only happens with the 'write text' action. The 'set text' action works fine.
- if you change the initial value of 'dialog' variable in the editor, then run the preview, then too it doesn't work(which happens as expected)
Any idea whats causing this? :/