Trigger Reference of GS2-Buff Script

apply

Event trigger to call GS2-Script before Apply buffs.

Request

TypeDescription
namespaceNamespaceNamespace
buffEntryModelsBuffEntryModel[]List of Buff Entry Models
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription
permitboolWhether to allow the application of buffs
overrideBuffRateOverrideBuffRate[]~ 1000 itemsList of Override Buff Rate

Implementation Example

namespace = args.namespace
buffEntryModels = args.buffEntryModels
userId = args.userId

result = {
  permit=permit,
  overrideBuffRate=overrideBuffRate
}

applyDone

GS2-Script called after Apply buffs.

Request

TypeDescription
namespaceNamespaceNamespace
buffEntryModelsBuffEntryModel[]List of Buff Entry Models
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription

Implementation Example

namespace = args.namespace
buffEntryModels = args.buffEntryModels
userId = args.userId

result = {
}