linkshell - Windower/packages GitHub Wiki
The linkshell library provides information about the player's linkshells.
local linkshell = require('linkshell')❗ Dependency Required
To use this library, you must include
linkshellin themanifest.xmlfile for your package:<dependency>linkshell</dependency>
The linkshell table contains an index equal to each linkshell slot:
- linkshell[1] : [slot_index] (table)
-
linkshell[2] : [slot_index] (table)
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)
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
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)