Trigger Reference of GS2-Buff Script
Reference of event triggers that call extended scripts
Trigger
apply
Apply buffs
Synchronous Execution Script
Script and Apply buffs are executed synchronously in that order.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| buffEntryModel | BuffEntryModel | Buff Entry Model |
| userId | string | User ID |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow the application of buffs | ||
| overrideBuffRate | float | ✓ | 0 ~ 100 | Rate |
Implementation Example
namespace = args.namespace
buffEntryModel = args.buffEntryModel
userId = args.userId
result = {
permit=permit,
overrideBuffRate=overrideBuffRate
}Asynchronous Execution Script
The script executes asynchronously after the Apply buffs.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| buffEntryModel | BuffEntryModel | Buff Entry Model |
| userId | string | User ID |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
buffEntryModel = args.buffEntryModel
userId = args.userId
result = {
}