Skip to content

corporation

Lemonymous edited this page Nov 20, 2022 · 3 revisions

Table of Contents

 

easyEdit.corporation

  This module can be used to add new corporations to the game, or fetch existing ones.

 

add

  • table   add(string corporation_id, string base_corporation_id)

  To add a new corporation, start by calling this function. Use a unique corporation_id for your corporation to avoid potential collisions with corporations from other mods.

  You can create a corporation with a default base by leaving base_corporation_id empty, or you can use the id of an existing corporation to get a better base to start from. Anything you change after that, will only affect your own corporation.

 

Example - corporation with a default base:

local corporation = easyEdit.corporation:add("Corp_Example")

Example - corporation based on Archive corporation:

local corporation = easyEdit.corporation:add("Corp_Example", "Corp_Grass")

This will return a corporation object, which you can build on using table fields found on this page.

 

get

  • table   get(string corporation_id)

  Returns the corporation object for an existing corporation with this corporation_id.

Vanilla Corporation id
"Corp_Default"
"Corp_Grass"
"Corp_Desert"
"Corp_Snow"
"Corp_Factory"

 

corporation

fields

_id

  • string

  The unique id for this corporation.

 

Bark_Name

  • string

  Name of the corporation when referred to in dialogs.

 

Color

  • GL_Color

  Color used by this corporation for some purpose.

 

Description

  • string

  Display description for this corporation.

 

Map

  • table

  A table of paths to music files used for this corporation.

 

Music

  • table

  A table of paths to music files used for this corporation.

 

Name

  • string

  Display name for this corporation.

 

Pilot

  • string

  Id of the pilot used for mission units used by this corporation.

 

Clone this wiki locally