Jump to content

Engine

Members
  • Posts

    4
  • Joined

  • Last visited

Engine's Achievements

0

Reputation

  1. Gona chalk this up to being up for nearly 30 hours when I was scripting this, but the answer above was correct, I was thinking getMineableMaterial() would directly return the material type. Oops :). Thanks for the help Laserzwei.
  2. Ahh crap, that one function I listed was supposed to be getMineableMaterial(). I'll play around some more with that one though.
  3. Working on a script that reports how many of each type of asteroid are in a sector and how many units of resource are in those. I can not for the life of me figure out how to pull the specific types. I can get total mineable in sector without an issue, but for example: if I want to know "how many Trinium asteroids are in this sector and how many units of Trinium are in all of those" I just can't figure out the proper function to call. I've played with the following Enum: MaterialType.type (eg. Trinium). Also, the "Iron" type seems to be broken as it returns an error no slot for slot type 0. all the other types return the total number of astroids in the system (including non mineable). Function: getMineableResources() Function: getMineableResources()
  4. Updated this plugin for CC v1.9.0 ex. Disclaimer: I'm not a programmer, so the code is rather crappy. I had to rewrite most of the plugin. I added a new feature to it that tracks the number of loot items remaining. Install the two files under "Avorion\mods\CCBasicCommands\scripts\entity\ai" Add the the following lines to lists.lua and CarrierCommanderConfig.lua Lists.lua list.actionTostringMap[7] = "Collecting Loot, %i items remaining" list.actionToColorMap[7] = ColorRGB(0.1, 0.8, 0.1) CarrierCommanderConfig.lua loot = {name="Loot Command", path = "mods/CCBasicCommands/scripts/entity/ai/lootCommand"}, Loot_Command.zip
×
×
  • Create New...