#inside of loc_vars, the order you put

1 messages · Page 1 of 1 (latest)

empty kettle
#

Ty, Mate. I'm trying to figure out how count the cards by a conditional for pass to text box

viral moss
#

what kind of cards you trying to count? Jokers, full cards in deck?

empty kettle
#

I'm doing a Joker and a Seal. The Joker count the number of card with that seal and add the number times 7

#

Or I'm trying to jaja

#

I already pass the mod load, I can watch my objects in the colecction

viral moss
#

does the Joker work already and is it just the description thats messed up

empty kettle
#

Its fail when have to calculate

#

add +0 but actually are card with the seal

viral moss
#

can I see the code for the Joker?

empty kettle
empty kettle
viral moss
#

just the entire joker, can be copy-pasted or the file, doesn't matter

#

or a screenshot

empty kettle
#

Hey, I just realized the meaning of your username.

#

Cool

viral moss
#

btw quick tip, change the path to your jokers

#

it needs to be Joker.png to work properly

empty kettle
#

also change the key?

viral moss
#

yeah

#

I have a joker that checks the deck for face cards and it works, but its coded a little differently from yours

#

try using

for _, v in pairs(G.playing_cards) do
  if v:has_seal("drained) then
    drenado_count = drenado_count + 1
  end
end
#

then you'll need to write a has_seal(_key) function to use you know

empty kettle
#

The has_seal must to be outside from the function?