GS2-Showcase
Reference for event triggers that call GS2-Script
GS2-Script Reference
Trigger
buy
buy
namespace = args.namespace
showcase = args.showcase
displayItem = args.displayItem
userId = args.userId
quantity = args.quantity
config = args.config
result = {
permit=permit
}
Event trigger to call GS2-Script before Buy.
Request
Type | Description | |
---|---|---|
namespace | Namespace | Namespace |
showcase | Showcase | Showcase model |
displayItem | DisplayItem | DisplayItem model |
userId | string | User ID performing the showcase |
quantity | int | Purchase Quantity |
config | Config[] | Set values to be applied to stamp sheet variables |
Result
Type | Require | Default | Limitation | Description | |
---|---|---|---|---|---|
permit | bool | ✓ | Allow buy |
buyDone
buyDone
namespace = args.namespace
showcase = args.showcase
displayItem = args.displayItem
userId = args.userId
quantity = args.quantity
config = args.config
result = {
}
GS2-Script called after Buy.
Request
Type | Description | |
---|---|---|
namespace | Namespace | Namespace |
showcase | Showcase | Showcase model |
displayItem | DisplayItem | DisplayItem model |
userId | string | User ID performing the showcase |
quantity | int | Purchase Quantity |
config | Config[] | Set values to be applied to stamp sheet variables |
Result
Type | Require | Default | Limitation | Description |
---|