Results 1 to 2 of 2

Thread: Take specific card from deck - Beginner scripter

  1. #1

    Take specific card from deck - Beginner scripter

    I am fairly new to scripting and programming, I still don’t know much about how some things work together. I’d appreciate some help on this matter:

    I have located a deck on the table with 60 cards and 4 cards in it have a specific name (in this case “Eleven”. I’d like to take these 4 cards out of the deck and pile them on a separate location on the table.

    I tried “cards = deck.getObjects()” but I found out this does not get me the info that I need to use the following:
    ‘if cards.getName() == “Eleven” then cards/deck.takeObject(..)” this always gives me nil

    Do I have to create a table to access to the names? I tried this but I can’t get anything working, I don’t understand how tables use the data put in them by getObjects.

    Could someone give me a working solution here? I’d really appreciate it, cause I’m new to programming and really trying to get more knowledge. I tried to search for answers for this simple matter but can’t seem to get anything for this prop me.

    Many thanks in advance for ur time!

  2. #2
    Found out why my code didn't work. So I no longer need assistence.

    Don't know how to delete this post.

Similar Threads

  1. Give specific tag/mark to a card
    By mamantins in forum Scripting
    Replies: 0
    Last Post: 12-13-2020, 06:19 AM
  2. Clone a card in a specific location ?
    By grayson1337 in forum Scripting
    Replies: 0
    Last Post: 11-02-2020, 02:58 AM
  3. Finding a specific card in a deck
    By DonnyT in forum Scripting
    Replies: 7
    Last Post: 03-27-2018, 03:48 PM
  4. Draw Specific Card from Deck
    By Eskander in forum Scripting
    Replies: 10
    Last Post: 05-04-2016, 04:17 PM
  5. Replies: 1
    Last Post: 04-27-2015, 04:36 PM

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
  •