For a script I'm making I needed just about every type of ship there is, and randomly to boot. This was a small problem in X2, but with tankers and vanguards it's become much worse. I couldn't find a way to select different variations on ships (like for instance, changing sub ware type). So I turned off my brain and slogged through selecting them one by one. Forgive me if I missed a better way to do this. After a few hours my hands are tired but it's done. I post it here so if you ever need to do the same your hands won't hurt afterwards! Ships are broken down into category, then selected based on a weighted random number. If you edit the weights, or anything really, you must rename the scripts.
Random Shiptype Generator
RandomShiptypes.zip Mirror
Sister library: Random WareType Generator
[Utility] Random Ship Type (for scripters)
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
[Utility] Random Ship Type (for scripters)
Last edited by AalaarDB on Sun, 1. Jan 06, 05:41, edited 3 times in total.
- nuclear_eclipse
- Posts: 1129
- Joined: Thu, 2. Sep 04, 01:54
hmm
sounds good. I did actually come up with a good algorithm for working such out, and gave a copy to cycrow. I don't know if it is workable though, knowing me it might not be as I know nothing of the script engine really and it's just a generic algorithm, but who knows
Give a man a fire, he'll stay warm for a day
Set a man on fire, he'll stay warm for the rest of his life
Set a man on fire, he'll stay warm for the rest of his life