Trigger Reference of GS2-Formation Script
Reference for event triggers that call extended scripts, as defined in GS2-Formation
updateMold
Event trigger to call GS2-Script before capacity update.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
mold | Mold | Form storage area before update |
afterMold | Mold | Form storage area after update |
Result
| Type | Require | Default | Limitation | Description |
---|
permit | bool | ✓ | | | Allow capacity update |
Implementation Example
namespace = args.namespace
mold = args.mold
afterMold = args.afterMold
result = {
permit=permit
}
updateMoldDone
GS2-Script called after capacity update.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
mold | Mold | Form storage area |
Result
| Type | Require | Default | Limitation | Description |
---|
Implementation Example
namespace = args.namespace
mold = args.mold
result = {
}
Event trigger to call GS2-Script before form update.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
mold | Mold | Form storage area |
form | Form | Form before update |
afterForm | Form | Form after update |
Result
| Type | Require | Default | Limitation | Description |
---|
permit | bool | ✓ | | | Allow form update |
Implementation Example
namespace = args.namespace
mold = args.mold
form = args.form
afterForm = args.afterForm
result = {
permit=permit
}
GS2-Script called after form update.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
mold | Mold | Form storage area |
form | Form | Form |
Result
| Type | Require | Default | Limitation | Description |
---|
Implementation Example
namespace = args.namespace
mold = args.mold
form = args.form
result = {
}
Event trigger to call GS2-Script before property formupdate.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
propertyForm | PropertyForm | PropertyForm before update |
afterPropertyForm | PropertyForm | PropertyForm after update |
Result
| Type | Require | Default | Limitation | Description |
---|
permit | bool | ✓ | | | Allow property formupdate |
Implementation Example
namespace = args.namespace
propertyForm = args.propertyForm
afterPropertyForm = args.afterPropertyForm
result = {
permit=permit
}
GS2-Script called after property formupdate.
Request
| Type | Description |
---|
namespace | Namespace | Namespace |
propertyForm | PropertyForm | PropertyForm |
Result
| Type | Require | Default | Limitation | Description |
---|
Implementation Example
namespace = args.namespace
propertyForm = args.propertyForm
result = {
}