Script Trigger Reference of GS2-Buff

Reference of event triggers that call extended scripts

Trigger

apply

Apply buffs

Synchronous Execution Script

The script is executed synchronously before the apply buffs process.

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
Implementation Example
namespace = args.namespace
buffEntryModel = args.buffEntryModel
userId = args.userId

result = {
}