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

TypeDescription
namespaceNamespaceNamespace
buffEntryModelBuffEntryModelBuff Entry Model
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription
permitboolWhether to allow the application of buffs
overrideBuffRatefloat~ 100Rate

Implementation Example

namespace = args.namespace
buffEntryModel = args.buffEntryModel
userId = args.userId

result = {
  permit=permit,
  overrideBuffRate=overrideBuffRate
}

applyDone

GS2-Script called after Apply buffs.

Request

TypeDescription
namespaceNamespaceNamespace
buffEntryModelBuffEntryModelBuff Entry Model
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription

Implementation Example

namespace = args.namespace
buffEntryModel = args.buffEntryModel
userId = args.userId

result = {
}