NAV
GS2-Script

GS2-Exchange

GS2-Scriptを呼び出すイベントトリガーのリファレンス

GS2-Script リファレンス

トリガー

exchange

exchange

namespace = args.namespace
rateModel = args.rateModel
userId = args.userId
count = args.count
config = args.config

result = {
  permit=permit
}

交換実行前にGS2-Scriptを呼び出すイベントトリガー

Request

説明
namespace Namespace ネームスペース
rateModel RateModel 交換レートモデル
userId string 交換を実行しているユーザID
count int 交換量
config Config[] スタンプシートの変数に適用する設定値

Result

必須 デフォルト 値の制限 説明
permit bool 交換を許可するか

exchangeDone

exchangeDone

namespace = args.namespace
rateModel = args.rateModel
userId = args.userId
count = args.count
config = args.config

result = {
}

交換実行後にGS2-Scriptを呼び出すイベントトリガー

Request

説明
namespace Namespace ネームスペース
rateModel RateModel 交換レートモデル
userId string 交換を実行しているユーザID
count int 交換量
config Config[] スタンプシートの変数に適用する設定値

Result

必須 デフォルト 値の制限 説明