Jump to content

Boombox Item


Guest

Recommended Posts

BOOMBOX TUTORIAL

 

Rules for using: You don't have to put my name in credits but it would be nice :D

 

Here is a simple-ish tutorial on how to make a boombox item. One player at a time can play a song and anyone on the same map will hear it.

 

Go and find some songs and put them into your /sounds or /music folder. We will for this tutorial have 2.

 

[SOUNDS]

 

Song 1

Song 2

 

So. Let's have two maps for instance. You can have infinite.

 

[MAPS]

Map1

Map2

 

Go into variables and make these GLOBAL variables:

 

[GLOBAL VARIABLES]

 

Boombox Map ID

Boombox Song ID

 

Go into items editor and make a boombox item. Then, make it an "event" item. Set the event to a new common event. Then, add these commands to your common event:

 

Spoiler

Show Options: "What song would you like to play?" Choices: "Song1" "Song2"  "   <------------ #If you want more than 4 songs, make song 1 song 2 stop song and next list, and under next list do more options song 3 song 4 etc.

 

Under Song 1:

                          set global variable "Boombox Song ID" to 1

Under Song 2:

                          set global variable "Boombox Song ID" to 2

Under Stop Song:

                          set global variable "Boombox Song ID" to 0

 

Conditional Branch: if map = "Map1":

                          set global variable "Boombox Map ID" to 1

Conditional Branch: if map = "Map2":

                          set global variable "Boombox Map ID" to 2

 

Make a new common event and set it to AUTORUN. Add these commands to your event.

 

Spoiler

Conditional Branch: if global variable "Boombox Song ID" = 0 (NEGATED - SELECT BOX IN BOTTOM RIGHT)

                          Conditional Branch: if global variable "Boombox Song ID" = 1:

                                                          Conditional Branch: if "Boombox Map ID" = 1:

                                                                                              Conditional Branch: if map = "Map1":

                                                                                                                   start sound "Song 1"

                                                          Conditional Branch: if "Boombox Map ID" = 2:

                                                                                              Conditional Branch: if map = "Map2":

                                                                                                                   start sound "Song 1"

 

                          Conditional Branch: if global variable "Boombox Song ID" = 2:

                                                          Conditional Branch: if "Boombox Map ID" = 1:

                                                                                              Conditional Branch: if map = "Map1":

                                                                                                                   start sound "Song 2"

                                                          Conditional Branch: if "Boombox Map ID" = 2:

                                                                                              Conditional Branch: if map = "Map2":

                                                                                                                   start sound "Song 2"

Conditional Branch: if global variable "Boombox Song ID" = 0

                          fade sounds

 

 

Make sure you don't give the boombox to anyone other than an admin or for a high money price! :p

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...