#(HELP) Complete Beginner, please help me understand what's wrong with my joker

1 messages · Page 1 of 1 (latest)

shell brook
rose barn
#

The context check seems good, the rest of it is... not so much

#

for starters, most non-scoring effects won't actually go in the return statement
You would just run them and then return nil, true (which means that your joker triggered, but the game doesn't need to process anything else)

#

For changing the properties of a card you should run these functions on context.other_card, so like context.other_card:set_edition(...), etc.

#

and lastly to make your joker compatible with card modifiers from other mods (and fix some syntax errors in the process) you can use these functions

#

Make sure to set key to be something unique to your joker for each modifier, and guaranteed to be true

#

lmk if you need any more help :)

shell brook
#

also, what does the -> string? part of the code do? I'm not familiar with lua

rose barn
shell brook
#

ok

#

i tried but nothing happened

shell brook
#

it works with seals but if I try it with any of the other two, the game just explodes