trigger event with key press

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
flap
Above Average
Above Average
Posts: 22
Joined: Thu Feb 23, 2006 5:27 pm

trigger event with key press

Post 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...
User avatar
the alberts
Competent
Competent
Posts: 54
Joined: Fri Mar 03, 2006 8:41 am
Location: West Sussex

Post by the alberts »

Not sure I understand what you mean (I may be being dim here) ... could you give an example?
milinks
Deadly
Deadly
Posts: 164
Joined: Sun Jun 27, 2004 9:19 pm

Post 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.
flap
Above Average
Above Average
Posts: 22
Joined: Thu Feb 23, 2006 5:27 pm

Post 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.
User avatar
aegidian
Master and Commander
Master and Commander
Posts: 1161
Joined: Thu May 20, 2004 10:46 pm
Location: London UK
Contact:

Post by aegidian »

Selectable comms are on my to-do list.
"The planet Rear is scourged by well-intentioned OXZs."

Oolite models and gear? click here!
flap
Above Average
Above Average
Posts: 22
Joined: Thu Feb 23, 2006 5:27 pm

Post by flap »

Okay for the comm system (you already told that it was on your todo list. sorry to have you to repeat yourself :oops: )

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...)
Post Reply