Osiris/API/CharacterApplyRacePreset: Difference between revisions
Jump to navigation
Jump to search
(Osiris Core APIs) |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===== Full Definition(s) ===== | ===== Full Definition(s) ===== | ||
* call '''CharacterApplyRacePreset'''( | * call '''CharacterApplyRacePreset'''(''(CHARACTERGUID)'''''_Character''', ''(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'''. | Changes the racial talents and racial skills, and the root template of '''_Char''' to those of [[RacePresets|race preset]] '''_Preset''' (removing existing ones, and adding new ones). It also changes the player portrait to the default one for '''_Preset'''. | ||
===== Notes ===== | ===== Notes ===== | ||
* This routine was implemented for and tested with player character. | * 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. | * 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 ===== | |||
* [[Osiris/API/CharacterApplyHenchmanPreset|CharacterApplyHenchmanPreset]] | |||
* [[Osiris/API/CharacterApplyPreset|CharacterApplyPreset]] | |||
[[Category:Osiris Calls]] | [[Category:Osiris Calls|CharacterApplyRacePreset]] |
Latest revision as of 15:13, 19 December 2017
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.