Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Custom Dialogue Character Codes

Custom Dialogue Character Codes

This hack must be required by a mod to be enabled.

This allows mods to define custom dialogue character codes and map multiple outfits to the same character code.

Requiring This Hack

To require this hack, add this line to your mod's Meta.ini:

RequiredHack=CustomDialogueCharacterCodes

Your mod must provide a configuration file when requiring this hack.

Configuring This Hack

To configure this hack, create a file named CustomDialogueCharacterCodes.ini and add the parameters necessary for your mod inside it.

; [NongenericOutfits] Section: This section is used to assign outfits to Nongeneric Characters.
	; OUTFIT_NAME: Assigns an outfit to a character.

; [CharacterCodes] Section
	; CHARACTER_NAME: Assign a character to a dialogue code.
		; Any outfits assigned to the character in the [NongenericOutfits] list will also work with this character code.

[NongenericOutfits]
; Normal Costume
tny_alt=fattony

; Bonus Mission NPC
b_fattony=fattony

; Car Shop NPC
reward_fattony=fattony

[CharacterCodes]
; Character codes should be 3 or 4 characters.
; This is mainly based on all of Radical's being that way.
fattony=Tony

Prior to Version 1.17, [NongenericOutfits] had to be assigned to an index in the [NongenericCharacters] section.

For backwards compatibility, this method is still supported.

; [NongenericCharacters] Section
    ; INDEX: The index to assign to a character.
        ; 0-22 are already used by the original game. Any new characters added to this list should use 23 or later.

[NongenericOutfits]
tny_alt=23
b_fattony=23
reward_fattony=23

[NongenericCharacters]
23=fattony

[CharacterCodes]
fattony=Tony

For the default [NongenericOutfits], [NongenericCharacters] and [CharacterCodes] assignments, see Characters

Version History

1.17.1

Fixed an issue that occured when mods re-assigned characters already in the [NongenericCharacters] list to the index they're already assigned to.

1.17

  • Increased the limit of characters in the [NongenericCharacters] section from 128 to Infinite.
  • Made indices in the [NongenericCharacters] section per mod and are automagically remapped as necessary at runtime.
  • Made the [NongenericOutfits] section support mapping an outfit by name.
    • This effectively deprecates the [NongenericCharacters] section.

1.13

Added support for [NongenericCharacters].

1.12

Added this hack.

Donut Team © 2023 · v4.0