# Trigger Variable Library VarLib

The specific function name and description are as follows:

Serial number Function name Description
1 setGlobalVarByName(...) Setup Trigger Global Variable 1.6+
2 getGlobalVarByName(...) Obtain Trigger Global Variable 1.6+
3 setPlayerVarByName(...) Setup Trigger Private Variable 1.6+
4 getPlayerVarByName(...) Obtain Trigger Private Variable 1.6+

# setGlobalVarByName

  • Parameters and types:
    • actionattr:number,Check the Parameters:VARTYPE
    • msg:string,Name of the Parameter Created in the Trigger
  • Return value and types:
  • The main role of this method:Setup Trigger Global Variable
  • The specific use cases are as follows:
local result = VarLib2:setGlobalVarByName(actionattr,msg)

# getGlobalVarByName

  • Parameters and types:
    • actionattr:number,Check the Parameters:VARTYPE
    • msg:string,Name of the Parameter Created in the Trigger
  • Return value and types:
  • The main role of this method:Obtain Trigger Global Variable
  • The specific use cases are as follows:
local result = VarLib2:getGlobalVarByName(actionattr,msg)

# setPlayerVarByName

  • Parameters and types:
  • Return value and types:
  • The main role of this method:Setup Trigger Private Variable
  • The specific use cases are as follows:
local result = VarLib2:setPlayerVarByName(objid,actionattr,msg)

# getPlayerVarByName

  • Parameters and types:
  • Return value and types:
  • The main role of this method:Obtain Trigger Private Variable
  • The specific use cases are as follows:
local result = VarLib2:getPlayerVarByName(objid,actionattr,msg)
Last Update: 6/11/2020, 9:30:46 PM