HLP – help functions¶
Option functions accept "Gothic" (main game options) or "Mod" (mod options), without regard to case. Other level names are unsupported.
zDExt_Hlp_GetItem¶
Finds an item object by its instance name.
itemInstance– instance name of the itemreturn– link to item object
| Example usage | |
|---|---|
zDExt_Hlp_IsValidVob¶
Checks if vob is in the game world.
vobName– name of the vob in the game worldreturn–TRUEorFALSE
zDExt_Hlp_GetNpcPlunderedByPlayer¶
Gets the NPC currently being plundered by the player. Returns a null instance when the game is not in plunder mode.
return– instance of the NPC
zDExt_Hlp_IsOptionExists¶
Checks whether a specific option entry exists in the given options level.
level– options level name (e.g.Gothiclevel)section– section name inside the options fileoption– option entry namereturn–TRUEif the option entry exists,FALSEotherwise
| Example usage | |
|---|---|
zDExt_Hlp_GetOptionIntValue¶
Reads an integer option value from the specified options level.
level– options level namesection– section nameoption– option namedefaultValue– value returned when option is missingreturn– integer value of the option
| Example usage | |
|---|---|
zDExt_Hlp_GetOptionFloatValue¶
Reads a floating-point option value from the specified options level.
level– options level namesection– section nameoption– option namedefaultValue– value returned when option is missingreturn– float value of the option
| Example usage | |
|---|---|
zDExt_Hlp_GetOptionStringValue¶
Reads a string option value from the specified options level.
level– options level namesection– section nameoption– option namedefaultValue– value returned when option is missingreturn– string value of the option
| Example usage | |
|---|---|
zDExt_Hlp_SetOptionIntValue¶
Writes an integer option value to the specified options level.
level– options level namesection– section nameoption– option namevalue– integer value to write
| Example usage | |
|---|---|
zDExt_Hlp_SetOptionFloatValue¶
Writes a floating-point option value to the specified options level.
level– options level namesection– section nameoption– option namevalue– float value to write
| Example usage | |
|---|---|
zDExt_Hlp_SetOptionStringValue¶
Writes a string option value to the specified options level.
level– options level namesection– section nameoption– option namevalue– string value to write
| Example usage | |
|---|---|
zDExt_Hlp_IsTestMode¶
Returns whether the game is currently running in developer/test mode.
return–TRUEif developer/test mode is active,FALSEotherwise
zDExt_Hlp_StrCmp¶
Compares two strings without regard to case. This external is registered in the menu parser; use the engine Hlp_StrCmp function in Content scripts.
str1,str2– strings to comparereturn–TRUEwhen the strings match after conversion to uppercase; otherwiseFALSE
| Example usage | |
|---|---|
zDExt_Hlp_GetPlayerStatus¶
Returns the current player status reported by the engine through GetHeroStatus(). Available on all four engines.
return– integer value of the engineoHEROSTATUSenumeration