Create Character Hooks


During the 'Character Creation Process we call Hooks so that you, the Designer, can modify the character being created. For example, when creating a Magic User, you might want to give the character a Special Ability such as “IsPsionic' in order to create a magic specialist.







Hook - “PostClass”

This hook is called after the player finishes selecting the character's class.


Search Order

  1. Global Special Ability named 'Global_CreateCharacter'.


Context

  1. Character






Hook – “PostCreateCharacter”

This hook is called after the player accepts the new character and it is about to be saved..

Search Order

  1. Global Special Ability named 'Global_CreateCharacter'.

  2. Race of created character

  3. Class of created character

  4. Each Baseclass of the created character's class

Context

  1. Class of created character

  2. Race of created character

  3. Character

  4. Baseclass (only for hooks attached to Baseclass Special Abilities)

Hook – “IsBaseclassAllowed”

This hook is called after the player selects a race and gender and is about to select a class.

During character creation we decide what classes are allowed for the new character. Before we list a class as a possible class for the character, we check that all the basesclasses of that class are allowed to the character. If any baseclass of a class in not allowed then the class itself is not allowed. This hook provides a method for the designer to tell the engine whether or not a baseclass is allowed for a newly created character.

Default Action

All baseclasses of a class are allowed by default.

Search Order

  1. Baseclass - Each baseclass of each class.

Context

  1. Baseclass

Hook Parameters

Hook Parameter 5 = Gender (“M” or “F”)

Hook Parameter 6 = Race



Return Value

The hook is called for each baseclass of a class. If any hook returns a value staring with “N”, then the class will not be allowed.