considering adding a selection menu to this generator

https://perchance.org/adventurers-pack-normal

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.

4 points · 6 comments · view on lemmy.world

6 Comments

BluePower@mastodon.social · 3 pts · 2y (1 reply)

@dlcnate1 Exploring through the examples page and searching, I found multiple examples of how you can control the output based on dropdown menus:

https://perchance.org/drop-down-list-example#edit
https://perchance.org/dynamic-drop-down-list-example#edit
https://perchance.org/multi-dropdown-user-provided-pattern#edit

It uses dynamic odds to determine which items should be picked based on what you select and stuff, but feel free to play around with those examples.

dlcnate1@lemmy.world · 1 pts · 2y

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

Alllo@lemmy.world · 2 pts · 2y (2 replies)

edit: nvm that first link by BluePower is a great answer for the part i didnt kno and replied about. Nice answer BluePower

dlcnate1@lemmy.world · 2 pts · 2y (1 reply)

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

Alllo@lemmy.world · 1 pts · 2y

i will look at this today and help. just woke up

Alllo@lemmy.world · 1 pts · 2y

https://lemmy.world/post/14843002

@dlcnate1@lemmy.world

just extrapinging you so you don't miss it. I hope this helps.