summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 644c58d22..d022991a6 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7043,7 +7043,16 @@ Example:
set .@party_id, getcharid(1);
// Attempt to create an instance using that party ID.
set .@id, instance_create("Endless Tower", .@party_id);
- if (.@id == -1) { // Party ID is in use by another instance.
+ if (.@id == -1) { // Invalid type - not used anymore
+ ...
+ }
+ else if (.@id == -2) { // Invalid Party ID
+ ...
+ }
+ else if (.@id == -3) { // No free instances (MAX_INSTANCE exceeded)
+ ...
+ }
+ else if (.@id == -4) { // Already exists
...
}
else (.@id < 0) { // Unspecified error while queuing instance.