No categories assigned

LUAAddMasterTitle

Revision as of 15:21, 11 February 2021 by Cynnar (talk | contribs) (Created page with "{{LUAFunction |Name = AddMasterTitle |Description = Creates a new title that can be used by all characters |Param1 = string |Param1Desc = is the title name to create |Param2 =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


LUA:AllFunctions - AddMasterTitle

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Creates a new title that can be used by all characters

Syntax

AddMasterTitle(param1, param2)

Parameters

Required - param1 (string), param2 (int8)
param1 is the title name to create
param2 sets if the title is a prefix or suffix


Example

function hailed(NPC, Spawn)
	AddMasterTitle ("Antonica Guru" 0)
end

a NPC with this function will create a suffix title Antonica Guru that can be given to players or other NPC's

Notes

This sores not assign the title, just creates it in the database.

0 = suffix
1 = prefix