Trigger Reference of GS2-SkillTree Script

release

Event trigger to call GS2-Script before release node.

Request

TypeDescription
namespaceNamespaceNamespace
nodeModelNodeModelNode Model
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription
permitboolAllow release node

Implementation Example

namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId

result = {
  permit=permit
}

releaseDone

GS2-Script called after release node.

Request

TypeDescription
namespaceNamespaceNamespace
nodeModelNodeModelNode Model
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription

Implementation Example

namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId

result = {
}

restrain

Event trigger to call GS2-Script before Restrain node.

Request

TypeDescription
namespaceNamespaceNamespace
nodeModelNodeModelNode Model
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription
permitboolAllow restrain node

Implementation Example

namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId

result = {
  permit=permit
}

restrainDone

GS2-Script called after Restrain node.

Request

TypeDescription
namespaceNamespaceNamespace
nodeModelNodeModelNode Model
userIdstringUser Id

Result

TypeRequireDefaultLimitationDescription

Implementation Example

namespace = args.namespace
nodeModel = args.nodeModel
userId = args.userId

result = {
}