GS2-Enhance
Reference for event triggers that call GS2-Script
GS2-Script Reference
Trigger
enhance
enhance
namespace = args.namespace
rateModel = args.rateModel
targetItemSetId = args.targetItemSetId
bonusRate = args.bonusRate
experienceValue = args.experienceValue
result = {
permit=permit,
overrideExperienceValue=overrideExperienceValue
}
Event trigger to call GS2-Script before reinforcement.
Request
Type | Description | |
---|---|---|
namespace | Namespace | Namespace |
rateModel | RateModel | Enhanced Rate Model |
targetItemSetId | string | Quantity of items held per expiration date GRN |
bonusRate | float | Experience bonus multiplier (1.0 = no bonus) |
experienceValue | long | Amount of experience gained |
Result
Type | Require | Default | Limitation | Description | |
---|---|---|---|---|---|
permit | bool | ✓ | Allow enhancement execution | ||
overrideExperienceValue | long | ~ 2147483646 | Amount of available experience to be overwritten |
enhanceDone
enhanceDone
namespace = args.namespace
rateModel = args.rateModel
targetItemSetId = args.targetItemSetId
bonusRate = args.bonusRate
experienceValue = args.experienceValue
result = {
}
GS2-Script called after reinforcement.
Request
Type | Description | |
---|---|---|
namespace | Namespace | Namespace |
rateModel | RateModel | Enhanced Rate Model |
targetItemSetId | string | Quantity of items held per expiration date GRN |
bonusRate | float | Experience bonus multiplier (1.0 = no bonus) |
experienceValue | long | Amount of experience gained |
Result
Type | Require | Default | Limitation | Description |
---|