#Dealing Cards to Spots on the Table

1 messages · Page 1 of 1 (latest)

misty lark
#

.
Creating Zone Reference Table

  1. Create a table of the zones GUID
  2. During onLoad, retrieve the references to these zones, store them in some manner in a new table. E.g.:
local myZoneGUIDs = {
    "asd123",
    "qwe456",
    -- ...
}
local myZoneTable = {}

function onLoad()
    for i, zoneGUID in ipairs(myZoneGUIDs) do
        local zone = getObjectFromGUID(zoneGUID)
        table.insert(myZoneTable, zone)
    end
    -- myZoneTable is ready to be used onwards
end
#

Dealing Cards to Spots on the Table

bold turret
#

my next goal is to make a button that shuffles the deck thats in the zone

#

this is the code in my global now