dlcnate1

u/dlcnate1@lemmy.world
3 posts · 9 comments

Recent posts

Recent comments

wow, that looks a lot easier than the stuff i tried to do...

that's working like a charm, now is there a way i can have a random option in there, that doesn't call for a specific one?

it's been a while since you replied, but looking at the examples i don't understand why it works and how to make it correlate to what i am trying to do, i have gone to the reddit posts and they are just as confusing as the examples themselves

on work with PHP · c/perchance · 2 pts · 2y

semi unrelated, is there a place where i can look up the syntax for drop down menus that modify things further in the generator?

on work with PHP · c/perchance · 2 pts · 2y

i am pretty sure i can handle it, its just lists, but its a bunch and i was hoping i could essentially drag and drop or find and replace...

but thank you for the offer

on my first generator · c/perchance · 1 pts · 2y

so looking at it, the getcards list isn't called for in the list itself, and is pulled up in the html right after the title. and this is what makes it ensure that there is no duplicates?

i did get it to output between 30-60 which is what i want, i deleted the select-until-plugin nothing happened but when i tried removing console.log(cards.size) like you said, it broke it, so i put it back

my updated generator with tweaks based on the code you gave me is here https://perchance.org/6903zy9slr

on my first generator · c/perchance · 2 pts · 2y

I appreciate it, but I gotta admit, when I look at the changes allo made I was able to understand them.

But when I look at the changes you made, I don't know what is actually happening in the code. I was hoping to get an idea of what's going on, in the hopes that I can recreate it for future generators without having to ask every time.

lines 4, 9-10, and 14-15

And also, will this work in a way to make it so that it generates a random amount as well? between 30-60? I figure line 12 could be changes to a degree.

on my first generator · c/perchance · 2 pts · 2y

Thank you, I have tweaked the original, but I made the joker chance 1/27 and gave it option of with and without a trademark.

I guess the next step now is to figure out how to make it output multiple cards at once, and then how to have those outputs be unique. As the rules of caravan allow you to have multiple kings of spades, so long as they are from different decks.