Blockland Forums > Suggestions & Requests
Suggestion: Solution to the ever-requested piano add on?
(1/1)
Gen. Hothauser:
I think I thought of a clever way to make a piano add on, somwthing everyone has wanted for a long time.  I draw upon processes of other mods that could make this work.

The addon is just an item, an empty hand, that when clicks a brick, it enables the player to play music.  This is how it works.  First, on clicking a brick, it changes the player's datablock to no-move player, as used in camera events.  Next, coding disables all keybinds, so as to make the keyboard into a piano keyboard, such as used in the restricted server mods, like toggleable lights and Slayer's no painting/building ability.  Then, the coding keybinds pre-recorded tones to a series of keys, from S to K, and it acts as an emote when the key is pressed, such as the alarm emote (it would be good if the key could be held to elongate the note, and if emote spamming could be overridden).  Once the player is done, he clicks the brick again to be changed back to his old datablock.

My other idea is to emulate a midi keyboard for blockland.
Headcrab Zombie:

--- Quote from: Gen. Hothauser on November 23, 2012, 01:16:12 AM ---First, on clicking a brick, it changes the player's datablock to no-move player, as used in camera events. 

--- End quote ---
There's many ways to prevent the player from moving, I haven't looked at the camera events code but I'm fairly certain that it just sets the control object to a camera.


--- Quote from: Gen. Hothauser on November 23, 2012, 01:16:12 AM ---Then, the coding keybinds pre-recorded tones to a series of keys, from S to K, and it acts as an emote when the key is pressed

--- End quote ---
This part would require a client-side add-on.
You could fill the player's brick inventory with bricks (and then revert them back once 'piano mode' is exited) and then package the use inventory function and play with the number keys
Evar678:

--- Quote from: Headcrab Zombie on November 23, 2012, 01:31:59 AM ---You could fill the player's brick inventory with bricks (and then revert them back once 'piano mode' is exited) and then package the use inventory function and play with the number keys

--- End quote ---
loving genious
Crystalwarrior:

--- Quote from: Evar678 on November 23, 2012, 02:31:50 AM ---loving genious

--- End quote ---
I agree.
Navigation
Message Index

Go to full version