Trigger Reference of GS2-Lottery Script
lottery
Event trigger to call GS2-Script when drawing.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
lotteryModel | LotteryModel | Lottery Model Name |
drawnPrizes | DrawnPrize[] | List of Drawn Prizes |
boxItems | BoxItems | List of items taken out of the box |
Result
Type | Require | Default | Limitation | Description | |
---|
permit | bool | ✓ | | | Allow lottery |
overrideDrawnPrizes | DrawnPrize[] | | | ~ 1000 items | List of Drawn Prizes |
Implementation Example
namespace = args.namespace
lotteryModel = args.lotteryModel
drawnPrizes = args.drawnPrizes
boxItems = args.boxItems
result = {
permit=permit,
overrideDrawnPrizes=overrideDrawnPrizes
}