Page 1 of 1
trigger event with key press
Posted: Thu Mar 16, 2006 11:07 am
by flap
Is it possible to have event in OXP triggerd by key press ? (which would be defined in the oxp)
That could be way to add new functionalities to your ship, or create some more interface in stations...
Posted: Thu Mar 16, 2006 11:38 am
by the alberts
Not sure I understand what you mean (I may be being dim here) ... could you give an example?
Posted: Thu Mar 16, 2006 11:47 am
by milinks
It would certianly give more scope. An example could be a basic comms system, thats triggered when the aegis.png is triggered, this could, by a keypress give a few comms choices to the station, which could link in with trading or legal status maybe......just a thought.
Posted: Thu Mar 16, 2006 12:21 pm
by flap
Yep.
For example, you could get a device somehow. When meeting special craft you press "e" and you exchange some of your goods with his...
While flying pressing a key you can drop a specific object in space (for example a nav boy where you've destroyed a pirate, to come bakc get the loots if you need to go to hte station).
If you need to escort someone, warn the guies that they can jump once you've cleared the jump point....
Or as milinks proposes, it could provide basic comm capacities.
Basically, design some more interface.
Posted: Thu Mar 16, 2006 12:53 pm
by aegidian
Selectable comms are on my to-do list.
Posted: Thu Mar 16, 2006 2:59 pm
by flap
Okay for the comm system (you already told that it was on your todo list. sorry to have you to repeat yourself
)
This stuff I am suggesting is at the same time much more simple, but potentialy cuase of much more mess :
- It simply deals with intercepting when one key is pressed, and all the handling is done buy the oxp creator. So no need for you to create a whole interface such as a comm system.
- However if there are many OXP using the same key, or if the user as mapped its own keys, you are likely to have quite a bit of mess... Ok, according to this a comm system is probably cleaner. But it would not enable to add new devices to your ship triggered by a key press.
But aegidean, anyway, it is probably true that the more you'll do, the more we'll keep asking. So it is just an idea thrown in the air, and that I'll now let leave by itself. Wheter it should simply die or eventually somehow get more real.
Well, well, well... For now I'll stop suggested, and simply play, then create OXP's. And only once I'll have more deeply investigated what is allready feasable, maybe I'll post new suggestions (because I allreayd have 10 other waiting, that I refrain myself to submit. Simply because, adding new possibilities without using them is quite unefficeint and pointless...)