Results 1 to 2 of 2

Thread: getQuantity() returns 0 when stack has 2 tokens in it

  1. #1

    getQuantity() returns 0 when stack has 2 tokens in it

    Pretty much title. 3+ tokens and it returns 3+. Single token returns -1. 2 tokens and it returns 0. Not particularly intuitive, if intended.

    On a side note, is there a better way to split the stack other than repeatedly calling takeObject()?

    Version 8.6

  2. #2
    Join Date
    Nov 2015
    Location
    Canada
    Posts
    89
    This appears to be fixed in v8.8

    size 1 returns -1 (ie not a stack)
    size 2 returns 2
    size 3 returns 3

Similar Threads

  1. getQuantity() doesn't work on infinite bags.
    By Mark in forum Scripting Bug Reports
    Replies: 1
    Last Post: 05-26-2017, 12:08 AM
  2. onLeaveScriptingZone on Stack
    By SwiftPanda in forum Scripting
    Replies: 0
    Last Post: 08-24-2016, 07:29 PM
  3. Getting an object from a pile (stack)
    By dizneyguy in forum Scripting
    Replies: 6
    Last Post: 03-09-2016, 07:32 PM
  4. Replies: 0
    Last Post: 08-21-2015, 06:22 PM
  5. Replies: 2
    Last Post: 10-28-2014, 08:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •