Character select

From SRB2 Wiki
Jump to: navigation, search
Sonic's character select entry.

The Character Select (or "Choose Player") screen is where the character to start a new Single Player game with is chosen. By default, there are only four options to choose from: Sonic, Tails, Knuckles, and Sonic & Tails; the last of which starts the game with Sonic but adds a bot as a secondary player playing as Tails, similarly to Sonic 2 and Sonic 3.

Custom character select entries can be created via SOC, which will be displayed at this screen if they are enabled (see Status) – custom character select entries are usually provided with custom characters, but can also make use of characters already loaded in the game (or a combination of them).

Note that if the first level on starting a new Single Player game uses the level header parameter ForceCharacter, the Character Select screen will automatically be skipped.

Example

This is a re-creation of Sonic's character select entry attributes, which would create a new character select entry identical to Sonic's in the Character Select screen, located at the bottom of the list:

Character
SkinName = sonic
Status = 1
PlayerText = ^2Sonic^0 is the fastest of the three, but also the hardest to control. Beginners beware, but experts will find Sonic very powerful.

^2Ability:^0 Speed Thok
Double jump to zoom forward with a huge burst of speed.

^2Tip:^0 Simply letting go of forward does not slow down in SRB2. To slow down, hold the opposite direction.
#

Header

The block for the character select entry is started with a header that simply reads Character. No number must be supplied for the character select entry; SRB2 will find an unused slot automatically. However, when editing an already existing character select entry, the slot number must supplied. For example, to edit Sonic's character select entry, the header must be Character 0.

Example: Character

Parameters

Status

This parameter determines whether the character select entry is displayed (1) or not (0). When adding an entry for a new character, this parameter is required for the character select entry to be displayed. However, it is useful for removing SRB2's own characters from the Character Select screen: to disable Sonic's entry, for example, you can add a block with the header Character 0 and Status = 0 as the only parameter.

Example: Status = 1

SkinName

This is used to determine the character to start the game with when the character select entry is chosen – this should be the string given for name in the desired character's S_SKIN.

Example: SkinName = metalsonic

SkinName also provides the option to start the game with a bot as a secondary character following the player's character around. To do this, the & symbol must follow the S_SKIN name of the player's character, followed by the S_SKIN name of the bot's character; the result will have a format of "player&bot", player being the player character's name and bot being the bot character's name.

Example: SkinName = sonic&tails

PicName

This is the lump name of the image that will be associated with the character select entry. This should only be used if this picture is intended to be different from the one specified in the character's S_SKIN, as by default the character select pic used will be set by charsel from the character's S_SKIN.

This image must be exactly 128×128 pixels in size, or 256×256 for high resolution. This value is case-sensitive; presumably, one would type this value in all capitals, since lump names are typically in all capitals.

Example: PicName = EGGMPICS

PlayerText

This determines the description text that will be displayed for the character select entry when it is highlighted. The text will automatically wrap and a large space is available. This attribute string is ended by the # character. Custom color codes may also be used.

Example:
PlayerText = ^2Sonic^0 is the fastest of the three, but also the hardest to control. Beginners beware, but experts will find Sonic very powerful.

^2Ability:^0 Speed Thok
Double jump to zoom forward with a huge burst of speed.

^2Tip:^0 Simply letting go of forward does not slow down in SRB2. To slow down, hold the opposite direction.
#

External links

  Sonic Object Configuration [view]
General ClearMainCfg
Objects ObjectStateSoundFreeslot
Unlockable content EmblemExtraEmblemUnlockableConditionSet
Miscellaneous WipesCharacterLevelCutscene / SceneHudItem
Related links ActionsConstantsObject creation tutorial