Trigger Reference of GS2-SkillTree Script
release
Event trigger to call GS2-Script before release node.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
nodeModel | NodeModel | Node Model |
userId | string | User Id |
Result
Type | Require | Default | Limitation | Description | |
---|
permit | bool | ✓ | | | Allow release node |
Implementation Example
namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId
result = {
permit=permit
}
releaseDone
GS2-Script called after release node.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
nodeModel | NodeModel | Node Model |
userId | string | User Id |
Result
Type | Require | Default | Limitation | Description | |
---|
Implementation Example
namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId
result = {
}
restrain
Event trigger to call GS2-Script before Restrain node.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
nodeModel | NodeModel | Node Model |
userId | string | User Id |
Result
Type | Require | Default | Limitation | Description | |
---|
permit | bool | ✓ | | | Allow restrain node |
Implementation Example
namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId
result = {
permit=permit
}
restrainDone
GS2-Script called after Restrain node.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
nodeModel | NodeModel | Node Model |
userId | string | User Id |
Result
Type | Require | Default | Limitation | Description | |
---|
Implementation Example
namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId
result = {
}