Language…
19 users online:  Anorakun, Arthuzin, Burning Loaf,  GlitchCat7, Jackpot, Jaozin712, Knight of Time, lobo22, MegaSonic1999, Metal-Yoshi94, Nirv, Quaza, SAMYR DUTRA ARAUJO, Steven Atauchi C.,  Tahixham, The Cheater, Xane123, yoshi3706, Yutuz - Guests: 116 - Bots: 135
Users: 67,620 (2,005 active)
Latest user: Lap84

Custom boss, change music?

I'm using the Ultimate N00b Boss and I'd like to know how I could make the boss change the music to a certain custom music number and make the level play that, as soon as it gets on screen.
I own a community of TF2 servers!

ASMT - A new revolutionary ASM system, aka 65c816 ASseMbly Thing
SMWCP - SMW Central Presents a Product- tion long name

frog

http://esolangs.org/wiki/MarioLANG
Try adding this code to the start of the INIT routine:
LDA #$05
STA $1DFB
<blm> zsnes users are the flatearthers of emulation
Originally posted by Run & escape r
I'm using the Ultimate N00b Boss and I'd like to know how I could make the boss change the music to a certain custom music number and make the level play that, as soon as it gets on screen.

Sure. Just put this in the routine that happens when he first sees you:
Code
LDA $XX
STA $1DFB

Where XX is your music number.

However, if your music is custom music, you need to do some other stuff to find the number to input.

-Take the number you would tell LM to play
-Subtract 4 from it (HEX) until it is between 20 and 23 inclusive
-Add one

Now THAT number is your XX.
Now with extra girl and extra hacker
So as an example, if the music number would be something like 25, I'd
subtract 4 which is 21, then add one so I'd have

LDA 22

Then the other stuff.

But what if the custom music number you want is 22? or one of the numbers between those numbers? Also I don't know exactly what music number it'll end up being, it's for a collab.
I own a community of TF2 servers!

ASMT - A new revolutionary ASM system, aka 65c816 ASseMbly Thing
SMWCP - SMW Central Presents a Product- tion long name

frog

http://esolangs.org/wiki/MarioLANG
Originally posted by Creepy Spooksicle
Originally posted by Run & escape r
I'm using the Ultimate N00b Boss and I'd like to know how I could make the boss change the music to a certain custom music number and make the level play that, as soon as it gets on screen.

Sure. Just put this in the routine that happens when he first sees you:
Code
LDA $XX
STA $1DFB

Where XX is your music number.

However, if your music is custom music, you need to do some other stuff to find the number to input.

-Take the number you would tell LM to play
-Subtract 4 from it (HEX) until it is between 20 and 23 inclusive
-Add one

Now THAT number is your XX.


It's LDA #$xx. If you don't have the number symbol than it means your loading a RAm address.
Your layout has been removed.