Script Trigger Reference of GS2-Enhance

Reference of event triggers that call extended scripts

Trigger

enhance

enhancement execution

Synchronous Execution Script

The script is executed synchronously before the enhancement execution process.

Request
TypeDescription
namespaceNamespaceNamespace
rateModelRateModelEnhanced Rate Model
targetItemSetIdstringGRN for the enhanced Item Set (item quantity per expiration date)
bonusRatefloatExperience bonus multiplier (1.0 = no bonus)
experienceValuelongAmount of experience gained
Result
TypeRequiredDefaultValue LimitsDescription
permitbool
Whether to allow enhancement execution
overrideExperienceValuelong0 ~ 2147483645Amount of gained experience to override
Implementation Example
namespace = args.namespace
rateModel = args.rateModel
targetItemSetId = args.targetItemSetId
bonusRate = args.bonusRate
experienceValue = args.experienceValue

result = {
  permit=permit,
  overrideExperienceValue=overrideExperienceValue
}

Asynchronous Execution Script

The script executes asynchronously after the enhancement execution.

Request
TypeDescription
namespaceNamespaceNamespace
rateModelRateModelEnhanced Rate Model
targetItemSetIdstringGRN for the enhanced Item Set (item quantity per expiration date)
bonusRatefloatExperience bonus multiplier (1.0 = no bonus)
experienceValuelongAmount of experience gained
Implementation Example
namespace = args.namespace
rateModel = args.rateModel
targetItemSetId = args.targetItemSetId
bonusRate = args.bonusRate
experienceValue = args.experienceValue

result = {
}