I have the game using .XML but if is possible i want to create my own system with my needs. Also for translations to have a english.txt, german.txt ,etc...
My idea is have a sprite with an instance variable called "home_chair" so when the mouse is over the chair get the name("Old Chair) that is the first line. If i set look+chair then retrieve the second line: "Is an old chair i bought time ago" .
How looks the text file:
[home_chair]
Old Chair
Is an old chair i bought time ago
Can't be picked
Can't talk with it
etc...
All objects will have the same structure:
[Object instance]
Name (When the mouse is over the object)
Look
Use
Pick
Open
close
Give
Push
Talk
I search in the systems expresions with find(src), replace, right, tokenAt,etc... but i can't get it working.
Maybe there is a plugin, behaviours or something to do it more easy?