Trigger Reference of GS2-Enhance Script

enhance

Event trigger to call GS2-Script before reinforcement.

Request

TypeDescription
namespaceNamespaceNamespace
rateModelRateModelEnhanced Rate Model
targetItemSetIdstringQuantity of items held per expiration date GRN
bonusRatefloatExperience bonus multiplier (1.0 = no bonus)
experienceValuelongAmount of experience gained

Result

TypeRequireDefaultLimitationDescription
permitboolAllow enhancement execution
overrideExperienceValuelong~ 2147483645Amount of available experience to be overwritten

Implementation Example

namespace = args.namespace
rateModel = args.rateModel
targetItemSetId = args.targetItemSetId
bonusRate = args.bonusRate
experienceValue = args.experienceValue

result = {
  permit=permit,
  overrideExperienceValue=overrideExperienceValue
}

enhanceDone

GS2-Script called after reinforcement.

Request

TypeDescription
namespaceNamespaceNamespace
rateModelRateModelEnhanced Rate Model
targetItemSetIdstringQuantity of items held per expiration date GRN
bonusRatefloatExperience bonus multiplier (1.0 = no bonus)
experienceValuelongAmount of experience gained

Result

TypeRequireDefaultLimitationDescription

Implementation Example

namespace = args.namespace
rateModel = args.rateModel
targetItemSetId = args.targetItemSetId
bonusRate = args.bonusRate
experienceValue = args.experienceValue

result = {
}