dlcnate1

joined 8 months ago
[–] dlcnate1 2 points 7 months ago

thanks, this has been very helpful and the generators are much better now because of it.

[–] dlcnate1 2 points 7 months ago (3 children)

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?

[–] dlcnate1 2 points 7 months ago (1 children)

i get that they were trying to help, but in my post i said i didn't understand the examples and they just linked the examples that i didnt understand. i still don't understand

[–] dlcnate1 1 points 7 months ago

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

 

so i finally finished my adventurer's pack generator. (which is only coincidentally based on the example on the welcome page)

in the middle of line 8 (sorry, it's long) there is a [classgearpack] section that at the moment is random, but i was considering making it be determined by a drop down menu, but i am not understanding the examples for drop down menus enough to know how to set it up.

i would want random to be the default, but since it narrows to [thief] [fightingman] [mage] [priest] and [wanderer] i was considering letting those options be chosen, which would make it work for a starting equipment generator as well and not just a random pack near an abandoned campsite.

[–] dlcnate1 2 points 8 months ago (1 children)

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

[–] dlcnate1 2 points 8 months ago (3 children)

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

2
work with PHP (self.perchance)
submitted 8 months ago by dlcnate1 to c/perchance
 

so, long story short, there was a fantastic generator on wizardawn and mag that got taken down because their new server couldn't do something with their old code or somesuch. they have made all that old code available to people who want to manually run the old website on their computers, but my computer can't run it.

i have the php code for the specific generator i want, is perchance able to do something with php code or do i need to pull all the relevent text out and reformat it entirely?

[–] dlcnate1 1 points 8 months ago (1 children)

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

[–] dlcnate1 2 points 8 months ago (3 children)

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.

[–] dlcnate1 2 points 8 months ago (6 children)

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.

4
my first generator (perchance.org)
submitted 8 months ago by dlcnate1 to c/perchance
 

So obviously, it is a modification of the default sample one. I eventually want it to be able to generate an entire deck of unique cards for Caravan, and I don't know yet how to get it to add jokers (which would need to remove the suit information)

I have been having trouble finding out where to look up this information.