Trigger Reference of GS2-Buff Script

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 = {
}