Osiris/API/CharacterApplyRacePreset

From Divinity Engine Wiki
Jump to: navigation, search
Full Definition(s)
  • call CharacterApplyRacePreset((CHARACTERGUID)_Character, (STRING)_Preset)
Description

Changes the racial talents and racial skills, and the root template of _Char to those of race preset _Preset (removing existing ones, and adding new ones). It also changes the player portrait to the default one for _Preset.

Notes
  • This routine was implemented for and tested with player character.
  • All (default) race presets are stored in Data/Mods/Shared/CharacterCreation/RacePresets. Pass the file names in that directory without the ".lsx" extension as _Preset parameter.
See Also