-
Notifications
You must be signed in to change notification settings - Fork 20
linkshell
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 themanifest.xml
file 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)
- Background and Architecture
- Windower Data Locations
- Code Standards and Guidelines
- Addon Development
- Windower Commands
- Packet Tutorial
- burdometer
- config
- delay_me_not
- distance
- dress_up
- enternity
- fps
- ime
- logger
- party_time
- paste
- pouches
- send
- shortcuts
- speedometer
- target_info
- terminate
- timestamp
- window_title
- Game
- Windower
- General