From e286d9c99a4c66acb78b794f0aaba06596a2bc53 Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Thu, 23 Nov 2023 10:09:51 -0500 Subject: [PATCH] Create equip_batch.html --- docs/functions/equip_batch.html | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docs/functions/equip_batch.html diff --git a/docs/functions/equip_batch.html b/docs/functions/equip_batch.html new file mode 100644 index 0000000..c8ef26d --- /dev/null +++ b/docs/functions/equip_batch.html @@ -0,0 +1,46 @@ +

+ Arguments: +

 * Array - An array of equip definitions
+

+

+ Returns: +

  * Promise
+

+ +

Example usages:

+ +
+equip_batch([{ num: 0, slot: "chest" }, { num: 1, slot: "orb" }]); +equip_batch([{ num: 0, slot: "chest" }, { num: 1, slot: "orb" }]).then( + function(data){ + game_log("Yes!"); // Not all items may have been equipped. All this means is that you send the correct layout of data. + }, + function(data) { + game_log("equip_batch failed: " + data.reason); + }, +); +
+ +

Promise Reference:

+ +"resolve" +
+{ + place: "equip_batch", + response: "data", + slots: [{ num: 0, slot: "chest" }, "no_item"] // Note that even though equipping the orb failed, we still received a success response. +} +
+
+ +"reject" +
+{ + place: "equip_batch", + failed: true, + response: "invalid", // You didn't send an array. +} +
+ +

+"source"