Results 1 to 3 of 3

Thread: Strange Error with Card Draw not grabbing cards.. but only sometimes?!

  1. #1

    Strange Error with Card Draw not grabbing cards.. but only sometimes?!

    I have pretty much got everything working I wanted to but I am still having some trouble with my card fetch script...

    Basically the script is "working".. but there is a strange error with certain cards not being drawn. I do not know what and I have tried everything I can think of.

    Example:

    Script A draws 15 cards from 6 different decks, alll are unique named cards for the target deck getting constructed but there are multipul copies of the card name in the source decks. Apart form one card that has 4 copies pulled the the source deck.

    Script B draws 15 cards from 5 different deck. All are unique named apart from 5 which has 5 copies pulled from one of the source decks.

    Code:
    --Deck List A
    spellList = {}
    weaponsList = {"Heavy Pick", "Longspear", "Longsword", "Sickle"}
    armourList = {"Helm", "Scale Mail", "Wooden Shield"}
    itemList = {"Caltrop Bead", "Ring of Climbing"}
    allyList = {"Athlete", "Recruit", "Riding Horse"}
    blessingList = {"Blessing of Ascension", "Blessing of Ascension", "Blessing of Ascension"}
    cohortList = {"Donahan"}
    
    --Deck List Example B
    spellList = {}
    weaponsList = {'Bolas', 'Hand Crossbow', 'Javelin', 'Shortbow', 'Shortbow'}
    armourList = {'Leather Armor', 'Wooden Shield'}
    itemList = {'Potion of Beast Skin', 'Trapsmith Gloves'}
    allyList = {'Frog', 'Riding Horse'}
    blessingList = {'Blessing of Ascension', 'Blessing of Ascension', 'Blessing of Ascension', 'Blessing of Ascension'}
    cohortList = {}
    These are the two deck lists and the scripts they are from are attached to separate objects and do not interact as far as I know. The idea is that I can copy the script object and just edit the deck list you see here at the top and then.. it works.

    The strange problem is that BOTH these scripts work fine... as long as they are trigged first.

    Which ever one I trigger 2nd, it will not draw the WOODEN SHIELD. There are 2 wooden shield cards in the armours deck.. but only 1 will ever draw, the one I click on 1st.

    Things I have tried
    • The names of all Wooden Shields are correct
    • I have tried drawing the wooden shield, then deleting the other, copying the one that drew correctly and putting it back in the deck... same problem for the 2nd script
    • I have made a tmp script that draws every card in the game onto the table and then back into a deck.. so to refresh and reset the GUIDS (or at least I think it worked for that)
    • I have tried chaning Wooden Shield to another card name that has doubles in that deck.. they draw fine for both no matter who gose first


    Really confused here.. I am sure it has something to do with the auto assigned GUIDs but I am stumped at how I am to fix this.

  2. #2
    Join Date
    May 2016
    Posts
    1,072
    Without seeing the entire script and the cards/decks it is difficult to say what it is.

  3. #3
    this bug has gone away.. and I am not sure how I fixed it.. it got fixed when I was rebuilding the decks... so.. I dunno : (

Similar Threads

  1. Replies: 8
    Last Post: 05-04-2017, 05:34 PM
  2. Replies: 1
    Last Post: 01-27-2017, 10:22 AM
  3. Using hidden zones to draw certain cards
    By Nightgaunt in forum Scripting
    Replies: 15
    Last Post: 07-09-2016, 10:49 AM
  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: 08-17-2015, 06:27 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
  •