exbtn

exbtn <sprite number>,<button number>,<control string>

This is exactly the same as spbtn, with the addition of a trailing control string.
In short, when the player mouseovers a button controlled by exbtn, the button isn't just shifted, but control over screen graphics is exerted via sprite control as per the control string.

The control string is formuated as follows:
"C<number>" causes the sprite with that number to be hidden.
"P<number>" causes the sprite with that number to be displayed.
"P<number1>,<number2>" causes sprite number1 to be displayed in cell number2.

You can concatenate any number of the three options in your control string.
EXj
"C10"
"C11P10"
"C11P10,2P9"

When using composite buttons, there needs to be an assignment for what occurs when the mouse cursor isn't touching any part of the button. This needs to be set in exbtn_d.

Buttons, like any other graphic, can be loaded as image filename character strings or as sprites.