Trigger Reference of GS2-Buff Script
Reference of event triggers that call extended scripts
apply
Event trigger to call GS2-Script before Apply buffs.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| buffEntryModel | BuffEntryModel | Buff Entry Model |
| userId | string | User Id |
Result
| Type | Require | Default | Limitation | 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
}
applyDone
GS2-Script called after Apply buffs.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| buffEntryModel | BuffEntryModel | Buff Entry Model |
| userId | string | User Id |
Result
| Type | Require | Default | Limitation | Description |
|---|
Implementation Example
namespace = args.namespace
buffEntryModel = args.buffEntryModel
userId = args.userId
result = {
}