GS2-Stamina Script Trigger Reference
Reference of event triggers that call extended scripts
Trigger
overflow
Stamina maximum value overflow
Synchronous Execution Script
The script is executed synchronously before the stamina maximum value overflow process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| staminaModel | StaminaModel | Stamina Model |
| stamina | Stamina | Stamina |
| overflowValue | long | Overflow value |
Implementation Example
-- Request
local namespace = args.namespace
local staminaModel = args.staminaModel
local stamina = args.stamina
local overflowValue = args.overflowValue
-- Business logic:
-- Result
result = {
}