A Method for Random Equipment on Ships

Freeform discussion about anything related to modding Transcendence.
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

oops thanks. That is why I need people like you to go over my work :D
Crying is not a proper retort!
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

I like the idea of using the random create for the items with a filter, however I am unsure if the method carries over the item rarity- meaning, does it give even chances to each item on the table it creates from the filter, or does the common-uncommon-rare-veryrare play a part?

I had planned to create the tables with some rare weapon chances- in fact, I have created some sets of weapons that can only be found by acquiring them from a wreck that had the weapon or shield equipped, and such a ship is rare indeed! If the random create method could be similarly adjusted it would be perfect, however- It doesn't appear to want to ever equip nonrandom items!
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

here there is a quick explanation on itmCreateRandom.(as you probably already know)
http://www.xelerus.de/index.php?s=functions&function=36

In short: you can create an item by filtering it by type, frequency and level.

I don't think that alone itmCreateRandom can give you all the answers, for example your unique or very rare items should remain unique.

so a combination or itmcreate, itmcreaterandom and multiple item tables should do the trick ? :)
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

Periculi wrote: It doesn't appear to want to ever equip nonrandom items!
Would this have anything to do with the Sung Windslaver gate-spawners occasionally being weaponless? Doesn't happen too often, but when it does, it's a riot! :lol:

Watching those poor defenseless ships zipping around you almost makes ya feel sorry for them after an easy kill....but that soon passes after a good looting.

But watch out for those Windslavers equipped with X-rays and class III's! Ouch that stings!

Looking forward to your updates!
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

:lol: I wonder about that..

Updates? ummmm.... well, soon! As I am currently without my compy, it will be a bit. But I certainly plan to be making mods again soon. Just have to build a roof over my new house first (if it ever stops raining!)
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

I've told you how to do it. And I gave you example idea code. ;)
Image
Image
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

Oh, I just tested this on a playership...it crashes the game. Seems that it doesn't like trying to set new equipment once you're already in the ship-select screen. Hence: It already displays what devices are already installed.
I then removed the code;

Code: Select all

(shpInstallDevice gSource choiceItemsHere)
...and it worked fine, no crashes but it defeats the random install purpose.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

:lol: Ttech, what are you talking about? As usual, I am at a loss to even find the context of your statement.

You tried to have random equip for playership, FAD? It won't work. You can set up an event for Eridani system that will do the same thing.
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Periculi wrote::lol: Ttech, what are you talking about? As usual, I am at a loss to even find the context of your statement.

You tried to have random equip for playership, FAD? It won't work. You can set up an event for Eridani system that will do the same thing.

Its an idea.
Get the ability ...
Let me find my code idea. >< its just tags.
Image
Image
User avatar
FAD
Militia Captain
Militia Captain
Posts: 732
Joined: Thu Aug 10, 2006 5:33 am
Location: Area 51

Periculi wrote: You tried to have random equip for playership, FAD? It won't work. You can set up an event for Eridani system that will do the same thing.
Someone had asked if it were possible, earlier in this thread. So I was curious... At any rate, removing the ShpInstallDevice code, you'll get the items in your cargo hold but there's already an easier and better method to do that.
I like your mod the way it is, with the enemy getting random equip... I love a good challenge!
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

thanks!

I do plan to try to either move the equip to easier to access globals or else try to use the itmCreate method in some form later- so that the equip is easier to expand or add to.

I also think I will finish the mod to cover more of the small ships. It won't work as well for capitol ships that require weapons to be placed with firing limits, but any small fighters can be treated this way.

Another part of this mod is to use it with some varieties of stronger 'unique' type ships in conjunction with the unique stations mod I am developing- this is a much more exciting use for it (to me).
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

FAD wrote:
Periculi wrote: You tried to have random equip for playership, FAD? It won't work. You can set up an event for Eridani system that will do the same thing.
Someone had asked if it were possible, earlier in this thread. So I was curious... At any rate, removing the ShpInstallDevice code, you'll get the items in your cargo hold but there's already an easier and better method to do that.
I like your mod the way it is, with the enemy getting random equip... I love a good challenge!

I like my idea better. :P
Image
Image
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Everyone likes their own ideas better.

Which one are you refering too?
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Periculi wrote:Everyone likes their own ideas better.

Which one are you refering too?

code tags for randomnes
Image
Image
Post Reply