Blockland Forums > Modification Help

Command to make player play music, which does not use GUI

Pages: (1/2) > >>

Brixmon:

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?

MicroEDGE:

"No GUI"

brother what

EcstaticEggplant:


--- Quote from: MicroEDGE on October 21, 2017, 07:57:28 AM ---"No GUI"

brother what

--- End quote ---
? he literally explained exactly how it was going to work.

phflack:

will look into it
(and oh hey, this is the one I put together in the first place lol)

edit: what should the command be?  or should it just overwrite the existing command
or should it be "/boombox <music>" to set music, "/boombox" to disable music, "/boombox" opens the GUI if no music is playing?

Brixmon:

Thanks! The help is appreciated.

Pages: (1/2) > >>

Go to full version