Skip to content
Stjepan Bakrac edited this page May 22, 2020 · 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

  • name : string containing the linkshell name
  • permission : struct containing permission data
  • slot_index : color (table)
  • slot_index : lsmes (table)

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