[Plugin] Dropdown-List-v1
Dropdown list connected to a variable in easy Perchance form.
Dropdown list connected to a variable in easy Perchance form.
Alllo, (edited ) @dlcnate1 you go: perchance.org/l5eodd9qir#editThere is your thing and these are what is edited:
<span style="color:#323232;">dropdown = {import:dropdown-list-plugin-v1} </span><span style="color:#323232;"> </span><span style="color:#323232;">playerclass = mage //setting a default </span><span style="color:#323232;"> </span><span style="color:#323232;">dropdownlist </span><span style="color:#323232;"> variable = playerclass </span><span style="color:#323232;"> list </span><span style="color:#323232;"> mage </span><span style="color:#323232;"> priest </span><span style="color:#323232;"> wanderer </span><span style="color:#323232;"> fightingman </span><span style="color:#323232;"> thief </span><span style="color:#323232;"> </span><span style="color:#323232;">classgearpack </span><span style="color:#323232;"> some lockpicks in a [leatherstyle] tool roll<br> [thief] ^[playerclass == "thief"] </span><span style="color:#323232;"> well used whetstone<br> [fightingman] ^[playerclass == "fightingman"] </span><span style="color:#323232;"> [leatherstyle] book with arcane writing<br> [mage] ^[playerclass == "mage"] </span><span style="color:#323232;"> [leatherstyle] book with religious iconography<br> [priest] ^[playerclass == "priest"] </span><span style="color:#323232;"> map of the area, incomplete but fairly detailed<br> [wanderer] ^[playerclass == "wanderer"] </span>
that stuff in classgearpack makes it so it only does that option if playerclass is specific things. did i make the rest of it structurally understandable enough? anything else i should add?
dlcnate1, 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?
Alllo, done. just add an entry in the list named random or Random or RaNdOm or any capitalization of random and try it :)
if you want it some other way like to be able to custom name the option please say! :)
Alllo, (edited ) also just made an ability to set an initial selection and about to add a ‘remember’ option to remember what it was last time the page was visited
so optionally something like this tho u dont have to use any of the extra stuff:
<span style="color:#323232;">dropdownlist </span><span style="color:#323232;"> variable = playerclass </span><span style="color:#323232;"> list </span><span style="color:#323232;"> mage </span><span style="color:#323232;"> wizard </span><span style="color:#323232;"> sorceress </span><span style="color:#323232;"> enchantress </span><span style="color:#323232;"> witch </span><span style="color:#323232;"> priest </span><span style="color:#323232;"> cleric </span><span style="color:#323232;"> druid </span><span style="color:#323232;"> warlock </span><span style="color:#323232;"> saint </span><span style="color:#323232;"> paladin </span><span style="color:#323232;"> random </span><span style="color:#323232;"> initial = saint </span><span style="color:#323232;"> remember = true </span>
anyway, doing remember now and say anything else you want
dlcnate1, thanks, this has been very helpful and the generators are much better now because of it.
Add comment