Original Post
At the moment I've hit a problem. I can load in level data, display it and the player can move around within it (I haven't yet added collision detection). However, I'm having trouble with adding interactivity. In my level files, which at the moment are nothing more than INI files full of level information, I have a section called "Triggers". Each trigger has a name, action text (The game prints "Press E to " before this text) and a position. So far, I have the engine detecting the presence of the player within 1 unit of the trigger, and it handles all this well. However, I have no idea how to get from actually having the trigger to being able to do something with it. I would like to be able to write something like this in the level script: Of course, I'm happy if I can do something similar with less work. The main problem I have with using something like Python is the direct links it needs to make to my game, and how to make it event driven. Any ideas?
onhit(trigger0)
subtitle( "Triggers are working properly!" )
end