[SCRIPT] Magic Crystals v1.01 by Nividium 10/08/2007 UPDATED

The place to discuss scripting and game modifications for X³: Reunion.

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

User avatar
Nividium
Posts: 800
Joined: Tue, 21. Aug 07, 01:31

[SCRIPT] Magic Crystals v1.01 by Nividium 10/08/2007 UPDATED

Post by Nividium »

Nividium Magic Crystals for X3 Reunion, Script Package.

Name of Script Package Magic Crystals
Version Number 1.00
Date Released 10/08/2007
Last Updated 10/09/2007 Updated Uninstall
Script Created For X3 Reunion v 2.0.02
File Package Available X3 Script Installer "SPK"

Download the "SPK" file format package here: Magic Crystals

Description:

Magic Crystals add new powers to your ships. Simply have one of your ships buy a crystal and keep it in it's cargo bay. After about 30 - 60 seconds, the power contained by a crystal will then begin to take effect. The value of these crystals are worth far more than the selling price of only 4 credits each. But, the X3 game sets the price and I cannot change that without turning the script package into a MOD and modifying the Twares file etc. I don't want to do that. So, each crystal only costs 4 credits but are worth 100,000 times that much. You can buy these crystals at any Tade Station. Trade Docks are restocked every 15 - 30 minutes with like 10,000 Crystals, so there are plenty everywhere. Note: Only Player owned ships can use these Crystals, the Playership cannot. This script pack is meant for non-plot games and only if you have played the game through at least once. Don't spoil your first game by using this Magic ok.

Black Crystal: (Healing)
This is a healing crystal. It will repair ship hull damage. Heals at a rate of about 1 percent hull repair every 5 - 10 seconds.

Blue Crystal: (Ware Mirror)
This crystal will duplicate wares in a ship's cargo hold. If more than one ware type is stored in a ship's cargo hold, it will pick one at random. It is limited to wares with an average per unit price of less than 500 credits. It will create numerous units of a ware, if the ware's average per unit price is low, up to a total value of 500 credits every cycle. ie Energy Cells with average per unit price of 16, you will get 31 Energy Cells every 30 - 60 seconds.

Glowing Crystal: (Pure Power)
This crystal will produce Energy Cells at a rate of 100 - 200 every 30 - 60 seconds. This makes alot of Energy Cells quickly.

Green Crystal: (Confuse)
This crystal is one of the most prized and valuable crystals second only to the Red Crystal in terms of value. This crystal will confuse NPC ships (if they carry wares that the crystal holder's Homebase needs) if they come within scanner range. Confused NPC's that carry wares of the type that are needed by the crystal bearers Homebase will be convinced that they need to dock at that Homebase and drop their load. Once they are confused, they stay confused until they drop their load. Then they undock and wonder off trying to figure out what happened. The crystal bearer can be in any Sector and the Victom will fly all the way to the bearers Homebase, no matter how far away it is. It is best to only put non competeting ships in the same Sector. They do have a limited anti-hog behaviour, but it is probably best to make sure that Green Crystal bearers with Homebases that require the same Resources are put into separate Sectors, just to be on the safe side.

Red Crystal: (Instill Fear)
The most prized crystal of all. This crystal will cause an attacking NPC pilot to run away from a ship that carries it. (if they first target the ship). The NPC will target the crystal bearer and try to attack, then they will be under the crystals spell and become extremely frightened of the ship. They turn tail and run. Great for scaring Xenons out of their Sectors into an ambush waiting for them on the other side of a Gate too. But, be careful. If the crystal bearer is overwhelmed with ships, the power will not be enough to handle them all so don't think the ship is invulnerable. But, you can easily have TS ships go through Pirate Alley and they will not be harmed. I also made a ship dash into Xenon Sectors for awhile and scare 20 - 30 of them out into adjacent Sectors, then made the ship follow them out into that Sector and proceeded to kill them all as they ran.


Required Equipment: none but the better a ship's Scanner the greater the range a crystal has in order to reach more NPC ships within a Sector. Use a Triplex for maximum range coverage.

Installation: Use the X3 Script Manager/Installer.

Uninstall: Use the X3 Script Manager/Installer. There is an "uninstall" script with this package. After you use the X3 Plugin Manager to uninstall the scripts, start X3, load your save game and then look at some Trade docks, they should not contain any Magic Crystals. Wait a least 1 - 2 minutes (this is important). Now save your game at this point. Uninstall is now complete. Start X3 Plugin Manager again, it will ask if you want to remove uninstall scripts, answer "yes" and exit. You are now finished.

Version History:

Version 1.01 Fixed error in "uninstall". Also, made add crystal faster.
Version 1.00 Initial Release.

Command Slots Used: none

Text File Used: none
Last edited by Nividium on Tue, 9. Oct 07, 22:10, edited 1 time in total.
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

...................................... :o
X3..The most fun a man can have...With his clothes on.
User avatar
ninjitsumonk
Posts: 1874
Joined: Thu, 1. Mar 07, 09:21
x3

Post by ninjitsumonk »

Very interesting, about the TWare thing, couldn't you use custom wares on the script manager seeing as you are distributing in spk?
Also the generation rate may for Ecells looks a bit fast, other than that it seems a very interesting script.
Archeo Avis wrote:
if you take out phrasing and root notes and just look at the notes, they are the same
So what you're saying is, if you ignore everything that's different and focus only on the one thing that's the same, they're same.

Good God.
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

Did fresh install of X3 to test this script....Not working...At least the Black Crystal anyway...Came in as Paranid Demeter (with hull damage)...Created new ship..Sent Demeter to trading station to buy Black Crystal...Ran on SETA for 10 min IS..Nothing...Went OOS ran SETA 10 min..Nothing..Checked globals..Resupply working..Did not test any other crystals....Cheers
X3..The most fun a man can have...With his clothes on.
Senator Vrax
Posts: 230
Joined: Tue, 18. Sep 07, 06:57
x3tc

Post by Senator Vrax »

I've just tested out the blue and the glowing crystals. I used e-cells for the blue crystals ware and both are working fine. 8)

will try out the others as soon as i can. :twisted:
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

I too am confused how you can make this with out making new wares.
Thraxwhirl
Posts: 683
Joined: Fri, 17. Feb 06, 20:54
x3ap

Post by Thraxwhirl »

Ooooooooh, these are magic crystals, eh? Lol.

Sounds pretty good.

Personally though, I would rather have seen this done as a weapon that the AI uses to lure YOUR ships into giving their stations your goods. Heh heh.

I guess the way to do that would be if your ship got its race temporarily altered to match that of the enemy ship that tricked it. Your ship changes to that race, is given an order, drops off its cargo, re-launches, then has its race returned to PLAYER.

It'd make the game more of a challenge, eh? ;)
Senator Vrax
Posts: 230
Joined: Tue, 18. Sep 07, 06:57
x3tc

Post by Senator Vrax »

The black crystal worked for me but the red crystal didnt seem to work.

I sent a ship into a xenon sector with a red crystal in the hold. There were a few xenon ships near the gate and they took out my ship without much fuss. :(
User avatar
Nividium
Posts: 800
Joined: Tue, 21. Aug 07, 01:31

Post by Nividium »

I'm starting to think that X3 randomly changes the code of it's own X3 game install based upon the serial number of your hard-drive. Only in X3 when served Vanilla Ice Cream: one player gets Strawberry, another gets Blueberry another gets Chocolate another gets Maple Walnut and usually the same guy always get an empty cup with nothing in it at all.
Thraxwhirl
Posts: 683
Joined: Fri, 17. Feb 06, 20:54
x3ap

Post by Thraxwhirl »

Lol. I believe you could be right about that, Nividium.

I think I'm such a person at whom X3 likes to poke fun. Can I get Install Wares to Station to, well, install any wares to my station? Can I hell.
User avatar
Nividium
Posts: 800
Joined: Tue, 21. Aug 07, 01:31

Post by Nividium »

Thraxwhirl wrote:Lol. I believe you could be right about that, Nividium.

I think I'm such a person at whom X3 likes to poke fun. Can I get Install Wares to Station to, well, install any wares to my station? Can I hell.
What's that about? Are you having trouble making a script or ?
User avatar
Nividium
Posts: 800
Joined: Tue, 21. Aug 07, 01:31

Post by Nividium »

fud wrote:I too am confused how you can make this with out making new wares.
You don't need to make new wares when the game has lots of unused wares to play with.
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

Version 1.01 Fixed error in "uninstall". Also, made add crystal faster.
Is this all you changed?

X3 is beginning to start to feel like the "Lands of Hyperborea".... :D :wink:
X3..The most fun a man can have...With his clothes on.
User avatar
Nividium
Posts: 800
Joined: Tue, 21. Aug 07, 01:31

Post by Nividium »

Pogi wrote:
Version 1.01 Fixed error in "uninstall". Also, made add crystal faster.
Is this all you changed?

X3 is beginning to start to feel like the "Lands of Hyperborea".... :D :wink:
Yes this is ALL I changed. Well actually I put some extra code in there so if a username of Pogi is detected, it CTD immediately.
User avatar
Crip67
Posts: 62
Joined: Wed, 8. Feb 06, 21:55
x4

Post by Crip67 »

X3 meet War Craft. how cool is that 8) Nividium i think your becoming one of my favorite scripters :D
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

The reason I ask is because under the same Vanilla installation with the update applied ,it now works...Just a bit confusing.
X3..The most fun a man can have...With his clothes on.
User avatar
Nividium
Posts: 800
Joined: Tue, 21. Aug 07, 01:31

Post by Nividium »

Pogi wrote:The reason I ask is because under the same Vanilla installation with the update applied ,it now works...Just a bit confusing.
Yes, I did not do anything to it other that fix a problem with the "uninstall" and I made the "add crystals to Trade Docks" faster, ie: it now adds them right away instead of waiting a minute. :D I swear it is the truth, honest Boron, swear on my Egg laying dead mother it is true Pogi :D
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

Why do you do that?..Assume inferring?...Defensive?... :D I swear I was not inferring, honest Teladi, swear on my Egg laying dead mother it is the truth Nividium. :D ....Your a trip man...... :lol:

And a damn good scripter.... :wink:
X3..The most fun a man can have...With his clothes on.
Gammel
Posts: 668
Joined: Tue, 10. Jul 07, 08:07

Post by Gammel »

Anyone explored what kind of effect this script would have on the main missions? You need to collect these crystals during the main missions. Will the story crystals have these effects when you collect them. Or weirder still, will a player be able to buy these crystals and bypass the whole crystal gathering part and finish the mission with their bought crystals. After all, how many people would skip a mission they didn't like for 4 credits. :D
!!! Caution!!!
Signature lost!
Please contact your Admin!
User avatar
Nividium
Posts: 800
Joined: Tue, 21. Aug 07, 01:31

Post by Nividium »

Hi Gammel,
that is why I specifically tell people in the readme and the forum post here. This script is meant for a Non-Plot game. If they want go ahead and spoil their game, that is their business, right. I told them not too :D

Return to “X³: Reunion - Scripts and Modding”