Skip to content
Nekseus edited this page Mar 11, 2019 · 5 revisions

The linkshell library provides information about the player's linkshells.

local linkshell = require('linkshell')

Dependency Required

To use this library, you must include linkshell in the manifest.xml file for your package:

<dependency>linkshell</dependency>

Tables

The linkshell table contains an index equal to each linkshell slot:

slot index

Each slot_index is a table of identical keys containing the indivual values for linkshell slot index

  • slot_index : color (table)
  • slot_index : lsmes (table)

  • name : string containing the linkshell name
  • permission : struct containing permission data

color

The color table has the following entries:

  • red : int of the color red
  • green : int of the color green
  • blue : int of the color blue

lsmes

The lsmes table has the following entries:

  • message : string containing the message
  • player_name : string containing the authors name
  • timestamp : int value of the lsmes timestamp

So to print the name of the author for the lsmes in ls2 you could do

local author = linkshell[2].lsmes.player_name
print(author)
Clone this wiki locally