A humble scripting request - Diplomatic Relations.

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Thraxwhirl
Posts: 683
Joined: Fri, 17. Feb 06, 20:54
x3ap

A humble scripting request - Diplomatic Relations.

Post by Thraxwhirl »

Hello, all.

I'm uncertain as to whether or not there's still much scripting of X2 going on these days, what with X3 out now, and all that...

...but for those of us still happy mooching around in the OLD Universe, and perhaps none to confident about installing a new one on our already overworked PCs, well, I daresay that there is still hope for more "works in progress".

I myself have only begun to scratch the surface of scripting, mostly from raking through command lines in other people's scripts, from which I have gleaned in the last two days, ALMOST enough knowledge to begin work on a SEMI-functional player-owned Shipyard.

I've not a clue as yet how(or IF) it's possible to get one to produce ships, but I am confident that I can, in time, create a factory-stocked 'yard.

Incidently, if anyone knows of a Downloadable script that gives you a player-owned shipyard that really DOES produce ships, please do let me know. It'll save me a lot of work, and I'll be most grateful.

But, that aside, I've precious little knowledge of scripting at this time, and would like to make a humble request for a script that can change Race Relations when run.

Now, we all know that the relationship between the PLAYER and other Races can alter. You're automatically treated as a Foe by Pirates, Khaak and Xenon, as Friend by Argon and Boron, and(at the begining) the Split and Paranind, while not hostile, will have nothing to do with you. You can enter their sectors unopposed, but NOT dock at their stations.

This is not to say that the AI doesn't HAVE Relationship factors for the other Races. They ALL treat the Pirates as Enemy, and they will also come to blows with the Xenon and Khaak.

But there's no easy way(without a script) of changing Relations on a grand scale.

So... what I would like to request that someone might write is a simple script that, when executed, asks for 3 inputs:

txt:"Race 1" (pick from a list, and a "null" would be the Player)
txt:"Race 2" (as above)
txt:"Diplomatic Relations" (choice of Friend, Foe or None, whereby None would mean no hostilities, but no docking/trading).


And that'd be pretty much it. :)

And, assuming the Arguments made sense(ie. no entering the same Race in both the first two fields), that's how they'd treat each other.

Thus in the blink of an eye, the player could, for example, initiate an all-out war between the Teladi and Split, or a truce between the Argon and Pirates, or a Trade Agreement between the Xenon and Boron. Whatever.

Now, technically, this really is a cheat of course, playing God in no uncertain terms, but I figured that it's a quick and simple way of being able to create a war(or wars), and therefore capture the essential element of the huge War Mods(like Big War Mod and Race Wars) without concerns over compatibility with other Mods or creating new missions or altering TShips files.

You want a war? You got one. No fuss, and no worries over the game crashing, having to start over or possibly reinstalling, because of a mod conflict.

And of course, with one of those quick and simple scripts like "Create Ship" and "Create Multiple Ships", you could instantly deposit ten or twenty Capital Ships from rival factions in the same system, and then watch the X2 bloodbath of a lifetime. :D

Appealing, no? :?

So... well, that's my thought.

Does the idea hold merit, folks? Any scripter out there willing to rattle this one off and upload it so that within minutes we could all be sitting in Argon Prime watching a dozen Split Pythons duking it out with the Argon fleet?

Heh. I wonder if it'd crash the game if Ban Danna were killed at the start of the plot? :wink:

Anyway, perhaps a scripter out there might see this as worth a go?

Please? :)

I'd be grateful.

Assuming anybody read this far, :P many thanks. Please let me know if you like the idea.

TTFN.

Adam.
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

it is possible. I tried it with the pirates once. Made them friendly to me.

What actually happend was that the existing pirate ships were still red to me whatever, but newly spawned ones were blue and not automatically hostile to me. I don't know if some of them would have still attack me though.

If you did adjust the releations of certain races it would take some time for them to react, but as some player's have actually seen in their games, if things get too bad between two races the fireworks can start.

Return to “X²: The Threat - Scripts and Modding”