Page 1 of 1

Noob question here . . .

Posted: Fri Jan 31, 2014 4:41 am
by mmell
Can anybody recommend an OXP which changes a planet's description based on a trigger? Any example will do. My intention - during player mission I want planetary data to be changed to reflect mission directives, upon mission completion all planetary data resets to previous state (for example, if <i>Famous Planets.OXP</i> is in use I want the planetary descriptions to revert to those descriptions upon mission completion). I need to know how to code the scripting to detect my trigger (I think I have that figured out), change certain planet's descriptions to incorporate mission elements and then upon mission completion (another trigger) revert the planet descriptions to whatever values they held before my trigger engaged.

Re: Noob question here . . .

Posted: Fri Jan 31, 2014 9:16 am
by Smivs
Hi mmell, and welcome.
Ha, sounds like you might already have come over to the Dark Side* :)
There are probably several OXPs which do something similar, but I seem to remember that Ramirez' excellent Iron Raven adapts many of the systems in G8, and Thargoid's portfolio is probably worth a look as well.
Hope you find what you need, and if not, just ask here for further advice.

* We refer to getting sucked into OXP making as going over to The Dark Side.

Re: Noob question here . . .

Posted: Fri Jan 31, 2014 4:12 pm
by Norby
Welcome mmell in this forum and in the "dark" side of Oolite!

You can change the description of main planet in the current system by system.description="The new desc."; within a world script event or checking your conditions in a Timer.

If something is not clear after you read the code of existing OXPs then ask and we are happy to answer your questions. ;)

Re: Noob question here . . .

Posted: Fri Jan 31, 2014 6:31 pm
by mmell
Gentlemen, thank you. I believe this will do nicely. I am indeed coming over to the Dark Side: I believe someone mentioned that there are cookies here?

Between the OXZ I'm trying to build and some kind of FanFic story to explain it, I hope to be back around in spring with something like a R.C (noob appropriate - I don't want to monkey with game mechanics, just look and feel stuff). See ya in spring.

Oh, BTW - on my old C= 64 version of Elite, there was a switch "Inertia Off" in the settings. Took me a week to learn how to fly all over again, but I liked it better that way. I'm not too sure that can be resolved in an OXP. Not even asking for it, just thought I'd mention it.

Re: Noob question here . . .

Posted: Sat Feb 01, 2014 5:53 am
by UK_Eliter
Norby wrote:
Welcome mmell in this forum and in the "dark" side of Oolite!

You can change the description of main planet in the current system by system.description="The new desc."; within a world script event or checking your conditions in a Timer.

If something is not clear after you read the code of existing OXPs then ask and we are happy to answer your questions. ;)
Ah, I think I might have a go at using some of these methods . .

Re: Noob question here . . .

Posted: Sun Mar 02, 2014 10:21 pm
by mmell
I'm on my way, I think. I'm creating a tool which can be found at https://drive.google.com/file/d/0B_oeZy ... sp=sharing (google drive), the framework for an OXP I'm writing. It actually originated as a way to turn off the original (amusing but also annoying) algorithm-generated planetary comments. Along the way, I used the "description" field for something more appropriate, and instead of squelching the built-in stream of Douglas Adams-esque commentary I moved to to a field I like to call "comments". While this can still be used for that original purpose, I'll reiterate that this was not and is not a finished product - in fact, I'm just shamelessly ripping off other stuff (Distant Suns, Povray Planets, Torus stations - more to follow) and jamming it into one OXP . Like I said, this is the framework I'm creating here, not the finished product. I just figured the tool itself might be of some interest, as an object lesson in scope creep.