Trigger Reference of GS2-LoginReward Script

Reference of event triggers that call extended scripts

Trigger

receive

Receive

Synchronous Execution Script

Script and Receive are executed synchronously in that order.

Request
TypeDescription
namespaceNamespaceNamespace
bonusModelBonusModelBonus model
userIdstringUser ID performing the loginReward
receiveStepintReceived step
configConfig[]Set values to be applied to transaction variables
Result
TypeRequiredDefaultValue LimitsDescription
permitbool
Whether to allow buy
Implementation Example
namespace = args.namespace
bonusModel = args.bonusModel
userId = args.userId
receiveStep = args.receiveStep
config = args.config

result = {
  permit=permit
}

Asynchronous Execution Script

The script executes asynchronously after the Receive.

Request
TypeDescription
namespaceNamespaceNamespace
bonusModelBonusModelBonus model
userIdstringUser ID performing the loginReward
receiveStepintReceived step
configConfig[]Set values to be applied to transaction variables
Result
TypeRequiredDefaultValue LimitsDescription
Implementation Example
namespace = args.namespace
bonusModel = args.bonusModel
userId = args.userId
receiveStep = args.receiveStep
config = args.config

result = {
}