diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-04-30 16:19:26 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 16:19:26 +1000 |
commit | 2875098be4670d3b672c1d880dcc2c69839328fe (patch) | |
tree | 239e5972b74f2b256348d3875203b38e81911f78 | |
parent | a521dc5c74d54466dd3fc432057b96c30504a748 (diff) | |
parent | 0ef193262a053326a3d3e610496d0c4702472ad8 (diff) |
Merge pull request #232 from SilverSokolova/main
songbook lua documentation
-rw-r--r-- | doc/lua/openstarbound/songbook.md | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/doc/lua/openstarbound/songbook.md b/doc/lua/openstarbound/songbook.md new file mode 100644 index 0000000..72204f1 --- /dev/null +++ b/doc/lua/openstarbound/songbook.md @@ -0,0 +1,51 @@ +# Songbook + +The new songbook table is accessible from players and NPC's. + +--- + +#### `String` songbook.band() + +Returns a string containing the instrumentalist's current band. Defaults to `""`. + +--- + +#### `song` songbook.song() + +Returns the notes of the song currently being played. + +--- + +#### `?` songbook.keepAlive(`?` ?) + +todo + +--- + +#### `void` songbook.stop() + +Causes the instrumentalist to stop playing. + +--- + +#### `bool` songbook.active() + +Returns whether the instrumentalist is playing a song. + +--- + +#### `bool` songbook.instrumentPlaying() + +Returns whether the instrumentalist is currently performing part of a song. + +--- + +#### `void` songbook.play(`?` ?) + +todo + +--- + +#### `String` songbook.instrument() + +Returns the type of instrument last played, as determined by the instrument's `kind` value. Defaults to `""`. |