Results 1 to 2 of 2

Thread: Count items in a bag

  1. #1

    Question Count items in a bag

    Is there an easy way to get number of items in container?

    I know:
    #self.getObjects()

    But this is too complicated I think. You need to get whole table of all items (may be over 1000) despite you need only one single number.

  2. #2
    This is the way to go. Don't worry about its performance, it's just an array of tables with iterally two strings and a number inside.

Similar Threads

  1. Workshop "Plays" count (and a Game Start button)
    By Unreal_Ed in forum Suggestions
    Replies: 5
    Last Post: 07-18-2018, 11:21 AM
  2. Why doesn't my code correctly count deck cards?
    By AgentElrond in forum Scripting
    Replies: 1
    Last Post: 01-08-2018, 01:15 PM
  3. OBJ files and triangle count
    By Judgernaut in forum General Discussion
    Replies: 6
    Last Post: 06-27-2017, 01:31 AM
  4. Count number of cards in selection
    By Spheniscine in forum Suggestions
    Replies: 0
    Last Post: 09-25-2016, 10:24 PM
  5. Hand optimizations: card count and popping up cards
    By Unreal_Ed in forum Suggestions
    Replies: 2
    Last Post: 03-31-2016, 11:49 AM

Tags for this Thread

Posting Permissions

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