Trigger Reference of GS2-Buff Script
Reference for event triggers that call extended scripts, as defined in GS2-Buff
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 | ✓ | | ~ 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 = {
}