Welcome to the Creatures Wiki! Log in and join the community.
Musicola (teardown)
Jump to navigation
Jump to search
Musicola | ||
---|---|---|
This article is a teardown of an existing CAOS script. | ||
Game Version | Docking Station | |
Filename(s) | musicola.cos | |
Classifier | 2 21 17 | |
Dependencies | ||
Images | musicola.c16 | |
Sounds | cy_1.wav, wb_1.wav, dk_1.wav, dk_2.wav, dr_1.wav, dr_2.wav | |
Catalogue Tags | none | |
Agents | none | |
Other | none |
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.
Contents
Parts[edit]
- "Four Way" button linked to script 1000
- Dull image for drum animation
- Dull image for keyboard animation
- Dull image for horns animation
- Dull image for hi-hat animation
Scripts[edit]
Inject[edit]
- 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)[edit]
- 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)[edit]
- 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)[edit]
- 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)[edit]
- 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)[edit]
- 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)[edit]
- 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[edit]
- Removes all instances of the musicola.
Notes[edit]
While the horn and keyboard instruments animate, play their sounds, and stop within the same script, the hi-hat and drums begin animating and playing their sound during the action script and continue playing until the timer script stops them 50 ticks later.