Trigger Reference of GS2-SkillTree Script
Reference for event triggers that call extended scripts, as defined in GS2-SkillTree
release
Event trigger to call GS2-Script before release node.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
oldStatus | Status | Status before update |
newStatus | Status | Status after update |
userId | string | User Id |
nodeModelNames | string[] | List of node model names |
Result
| Type | Require | Default | Limitation | Description |
---|
permit | bool | ✓ | | | Allow release node |
Implementation Example
namespace = args.namespace
oldStatus = args.oldStatus
newStatus = args.newStatus
userId = args.userId
nodeModelNames = args.nodeModelNames
result = {
permit=permit
}
releaseDone
GS2-Script called after release node.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
oldStatus | Status | Status before update |
newStatus | Status | Status after update |
userId | string | User Id |
nodeModelNames | string[] | List of node model names |
Result
| Type | Require | Default | Limitation | Description |
---|
Implementation Example
namespace = args.namespace
oldStatus = args.oldStatus
newStatus = args.newStatus
userId = args.userId
nodeModelNames = args.nodeModelNames
result = {
}
restrain
Event trigger to call GS2-Script before Restrain node.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
userId | string | User Id |
oldStatus | Status | Status before update |
newStatus | Status | Status after update |
nodeModelNames | string[] | List of node model names |
Result
| Type | Require | Default | Limitation | Description |
---|
permit | bool | ✓ | | | Allow restrain node |
Implementation Example
namespace = args.namespace
userId = args.userId
oldStatus = args.oldStatus
newStatus = args.newStatus
nodeModelNames = args.nodeModelNames
result = {
permit=permit
}
restrainDone
GS2-Script called after Restrain node.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
userId | string | User Id |
oldStatus | Status | Status before update |
newStatus | Status | Status after update |
nodeModelNames | string[] | List of node model names |
Result
| Type | Require | Default | Limitation | Description |
---|
Implementation Example
namespace = args.namespace
userId = args.userId
oldStatus = args.oldStatus
newStatus = args.newStatus
nodeModelNames = args.nodeModelNames
result = {
}