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
TypeDescription
namespaceNamespaceNamespace
buffEntryModelBuffEntryModelBuff Entry Model
userIdstringUser ID
Result
TypeRequiredDefaultValue LimitsDescription
permitbool
Whether to allow the application of buffs
overrideBuffRatefloat
0 ~ 100Rate
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
TypeDescription
namespaceNamespaceNamespace
buffEntryModelBuffEntryModelBuff Entry Model
userIdstringUser ID
Result
TypeRequiredDefaultValue LimitsDescription
Implementation Example
namespace = args.namespace
buffEntryModel = args.buffEntryModel
userId = args.userId

result = {
}