Script Trigger Reference of GS2-Matchmaking
Reference of event triggers that call extended scripts
Trigger
createGathering
creating a new gathering
Synchronous Execution Script
The script is executed synchronously before the creating a new gathering process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| gathering | Gathering | Gathering |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
gathering = args.gathering
result = {
}completeMatchmaking
matchmaking is complete
Synchronous Execution Script
The script is executed synchronously before the matchmaking is complete process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| gathering | Gathering | Gathering |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
gathering = args.gathering
result = {
}changeRating
Rating value changes
Synchronous Execution Script
The script is executed synchronously before the rating value changes process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| oldRating | Rating | Old Rating |
| newRating | Rating | New Rating |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow rating value changes |
Implementation Example
namespace = args.namespace
oldRating = args.oldRating
newRating = args.newRating
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the Rating value changes.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| oldRating | Rating | Old Rating |
| newRating | Rating | New Rating |
Implementation Example
namespace = args.namespace
oldRating = args.oldRating
newRating = args.newRating
result = {
}