So, I don’t know how to explain this well, but I have this generator that has a “char = {[contestant.consumableList]|[host.consumableList]}” thingimajig, and my goal is to get it to have the output have no duplicates of either an item from the contestant list or from the host list, but I’m still getting duplicates anyways. How do I do this correctly?

  • @AssPennies
    link
    English
    1
    edit-2
    9 months ago

    Try this:

    [char1 = char.selectOne.titleCase] gives the worst hot take about [char2 = char.selectOne.titleCase], and [char2] subsequently kills them over it.
    

    Here you’re creating a placeholder (aka variable) for the character you’ve selected so you can reference it later on. I also added titleCase so the character name gets capitalized.

    EDIT: The above does do random, but not unique. Here’s a working example I wrote:

    https://perchance.org/41mlspb7hk#edit

    Code:

    title
      Let's do this
    
    output
      [names = chars.consumableList, ""] [char1 = names.selectOne.titleCase] gives the worst hot take about [char2 = names.selectOne.titleCase], and [char2] subsequently kills them over it.
    
    chars
      Chaz
      Karen
      Thad