I am trying to code a random encounter generator for a DnD campaign and am having a great deal of trouble. I don't know how to code and have been trying to parse my syntax for three hours over what I thought would be a relatively simple task.
My goal is to have a list of [ruins], with nested subtables of encounters, characters, treasure, etc. Example would be that there is a ruin called "Ancient Archives". The generator pulls that name, and then automatically pulls from an "encounter" list specifically tailored for "Ancient Archives". And then also pulls from a friendlies/rivals list, treasure list, and "Complication list" that are tailored to Ancient Archives.
If the [ruins] selected was instead "Birthing Cyst", the encounter, friendlies, and treasure sublist would be different, and tailored to "birthing cyst" instead of "Ancient Archives"
can anyone help me out with the way to format/syntax this??
thank you!!