Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)DL
dlcnate1 @lemmy.world
Posts 3
Comments 9
[Plugin] Dropdown-List-v1
  • 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?

  • considering adding a selection menu to this generator
  • 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

  • considering adding a selection menu to this generator

    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.

    6

    work with PHP

    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?

    5
    my first generator
  • 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

  • my first generator
  • 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.

  • my first generator
  • 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.

  • my first generator

    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.

    8