Author Topic: Random Trader NPCs  (Read 737 times)

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Random Trader NPCs
« on: September 19, 2014, 09:51:26 am »
I'm doing an update for my Falcon mod, which will give pirates and traders a small chance to spawn in a YT-1300 hull.
This isn't a problem for pirates, as it picks the npc randomly anyway, but for traders, I've noticed it's hard coded what hull they fly.

I've already figured a way to get the traders to spawn in a random hull in the same way as pirates, but that requires editing the CoreFunctionality.js script.
I'd rather not do that, as it limits potential compatibility with other mods, and more importantly; possible future updates (I'd obviously have to re-write the function every time that file is updated).

Am I missing something that I could do that wouldn't have such an impact, and therefore future-proof the mod?