GS2-AdReward Script トリガーリファレンス

acquirePoint

ポイント獲得実行前にGS2-Scriptを呼び出すイベントトリガー

Request

説明
namespaceNamespaceネームスペース
pointPoint獲得処理前ポイント
acquirePointValuelong獲得ポイント量

Result

必須デフォルト値の制限説明
permitboolポイント獲得を許可するか
overridePointValuelong~ 2147483645上書きする入手ポイント量

実装例

namespace = args.namespace
point = args.point
acquirePointValue = args.acquirePointValue

result = {
  permit=permit,
  overridePointValue=overridePointValue
}

acquirePointDone

ポイント獲得実行後にGS2-Scriptを呼び出すイベントトリガー

Request

説明
namespaceNamespaceネームスペース
pointPoint獲得処理前ポイント
afterPointPoint獲得後ポイント
acquirePointValuelong獲得ポイント量

Result

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

実装例

namespace = args.namespace
point = args.point
afterPoint = args.afterPoint
acquirePointValue = args.acquirePointValue

result = {
}

consumePoint

ポイント消費実行前にGS2-Scriptを呼び出すイベントトリガー

Request

説明
namespaceNamespaceネームスペース
pointPoint消費処理前ポイント
consumePointValuelong消費ポイント量

Result

必須デフォルト値の制限説明
permitboolポイント消費を許可するか
overridePointValuelong~ 2147483645上書きする入手ポイント量

実装例

namespace = args.namespace
point = args.point
consumePointValue = args.consumePointValue

result = {
  permit=permit,
  overridePointValue=overridePointValue
}

consumePointDone

ポイント消費実行後にGS2-Scriptを呼び出すイベントトリガー

Request

説明
namespaceNamespaceネームスペース
pointPoint消費処理前ポイント
afterPointPoint消費後ポイント
consumePointValuelong消費ポイント量

Result

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

実装例

namespace = args.namespace
point = args.point
afterPoint = args.afterPoint
consumePointValue = args.consumePointValue

result = {
}