Difference between revisions of "Osiris/API/CharacterApplyRacePreset"

From Divinity Engine Wiki
Jump to: navigation, search
(Osiris Core APIs)
 
m
Line 2: Line 2:
 
* call '''CharacterApplyRacePreset'''('''''[in]'''(CHARACTERGUID)'''''_Character''''','' '''''[in]'''(STRING)'''''_Preset''')
 
* call '''CharacterApplyRacePreset'''('''''[in]'''(CHARACTERGUID)'''''_Character''''','' '''''[in]'''(STRING)'''''_Preset''')
 
===== Description =====
 
===== Description =====
Changes the racial talents and racial skills, and the root template of '''_Char''' to those of '''_Preset''' (removing existing ones, and adding new ones). It also changes the player portrait to the default one for '''_Preset'''. <u>
+
Changes the racial talents and racial skills, and the root template of '''_Char''' to those of '''_Preset''' (removing existing ones, and adding new ones). It also changes the player portrait to the default one for '''_Preset'''.
Return values</u>
 
* None
 
 
===== Notes =====
 
===== Notes =====
 
* This routine was implemented for and tested with player character. It has not been tested for NPCs
 
* This routine was implemented for and tested with player character. It has not been tested for NPCs
 
* 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. At the time of writing, the available racial presets are
 
* 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. At the time of writing, the available racial presets are
 +
===== See Also =====
 +
* [[Osiris/API/CharacterApplyHenchmanPreset|CharacterApplyHenchmanPreset]]
 
   
 
   
 
[[Category:Osiris Calls]]
 
[[Category:Osiris Calls]]

Revision as of 21:35, 16 August 2017

Full Definition(s)
  • call CharacterApplyRacePreset([in](CHARACTERGUID)_Character, [in](STRING)_Preset)
Description

Changes the racial talents and racial skills, and the root template of _Char to those of _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. It has not been tested for NPCs
  • 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. At the time of writing, the available racial presets are
See Also