-
Notifications
You must be signed in to change notification settings - Fork 3
corporation
-
easyEdit
-
corporation
This module can be used to add new corporations to the game, or fetch existing ones.
-
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.
-
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" |
string
The unique id for this corporation.
string
Name of the corporation when referred to in dialogs.
GL_Color
Color used by this corporation for some purpose.
string
Display description for this corporation.
table
A table of paths to music files used for this corporation.
table
A table of paths to music files used for this corporation.
string
Display name for this corporation.
string
Id of the pilot used for mission units used by this corporation.