HLP – help functions
Hlp_GetItem
Finds an item object by its instance name.
itemInstance– instance name of the itemreturn– link to item object
| Example usage | |
|---|---|
Hlp_IsValidVob
Checks if vob is in the game world.
object– any instancereturn–TRUEorFALSE
Hlp_GetNpcPlunderedByPlayer
Gets the NPC is currently plundered by the player.
return– instance of the NPC
Hlp_IsOptionExists
Checks whether an options section or a specific option entry exists in a given options level.
level– options level name (e.g.Gothiclevel)section– section name inside the options fileoption– option name; if empty, the function checks for section existencereturn–TRUEif the section or option exists,FALSEotherwise
| Example usage | |
|---|---|
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 | |
|---|---|
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 | |
|---|---|
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 | |
|---|---|
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 | |
|---|---|
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 | |
|---|---|
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 | |
|---|---|
Hlp_IsDevModeActive
Returns whether the game is currently running in developer/test mode.
return–TRUEif developer/test mode is active,FALSEotherwise