I know Item_Boombox already exists. (
https://forum.blockland.us/index.php?topic=278054.0 )
What I need is a command that uses an argument after said command to set which music, with no GUI at all.
For example, "/pmusic peaceful" would cause the player to play the Peaceful music on loop. A command without an argument would stop the music.
I need this specifically to use in tandem with a server command keybind mod to quickly change player music on the fly. The reason as to why I need all this is complicated and not important.
I imagine this would be very simple to do with code, but the problem is that I'm not very familiar with torquescript. I don't know what that would look like.
My first thought was to reference script_advancelight (
https://forum.blockland.us/index.php?topic=82651.0 ) and edit item_boombox, which also uses an argument involving the UI name of the item to set it, rather than a GUI.
So could someone with more experience than I help me out with this?