Musicola (teardown)

''This is a teardown page explaining the details and inner workings of this agent. For general information, see Musicola''

The Musicola is a compound toy agent found in Docking Station. It does not use any Object Variables.

Parts

 * 1) "Four Way" button linked to script 1000
 * 2) Dull image for drum animation
 * 3) Dull image for keyboard animation
 * 4) Dull image for horns animation
 * 5) Dull image for hi-hat animation

Inject

 * Sets the BHVR to 15 (Creatures can push, pull, deactivate, and hit this agent)
 * Creates all of the agent parts (1-5)
 * Moves the agent to 446, 8918 (The upper left corner of the DS meso)
 * Note: tick is not established in the inject script

Deactivate (0)

 * Commands are executed instantly
 * Stims the creature with played with toy (97)
 * Animates the button (1) and hi-hat (5) parts
 * Starts playing a hi-hat sound repeatedly (cy_1.wav)
 * Sets the tick to 50

Activate 1 (1)

 * Commands are executed instantly
 * Stims the creature with played with toy (97)
 * Animates the button (1) and keyboard (3) parts
 * Plays a keyboard sound (wb_1.wav)

Activate 2 (2)

 * Commands are executed instantly
 * Stims the creature with played with toy (97)
 * Animates the button (1) and horn (4) parts
 * Randomly plays one of two horn sounds (dk_1.wav / dk_2.wav)

Hit (3)

 * Commands are executed instantly
 * Stims the creature with played with toy (97)
 * Animates the button (1) and drum (2) parts
 * Randomly plays one of two drum sounds (dr_1.wav / dr_2.wav) repeatedly
 * Sets the tick to 50

Timer (9)

 * Commands are executed instantly
 * Fades out any playing sounds
 * Sets the tick to 0
 * Returns the high hat (5) and drum (2) parts to their original poses

Script 1000 (button 1 click)

 * Commands are executed instantly
 * Choses a random number from 0 to 3
 * Performs the script associated with that number to play a random instrument

Remove

 * Removes all instances of the musicola.