NPC Generator

Hannu

Mythras Guru
CL Add-on Dev
Beta-Tester
it would be cool to be able to cleanly pass variables to a generator. It would also be cool for the generator to expose those variables automatically to a UI component. "These are my choices and their lists"...
 

ELF

Generator Sage
Staff member
CL Add-on Dev
Beta-Tester
it would be cool to be able to cleanly pass variables to a generator.
Indeed!

Technically that is already possible, but not in a particularly sane way. (One would need to write multiple wrapper generators, each of them setting one of the potential variable combinations and then calling the main generator.) But if each of the input variables could be set interactively...
 

JohnnFour

Game Master
Staff member
CL Add-on Dev
Demonplague Author
Wizard of Adventure
Beta-Tester
Lifestyled Gamer
With regards to a UI like http://www.npcgenerator.com/ where a form interface lets you change generator logic/output results, what if the form dropdowns, checkboxes, etc. were dynamically driven by generator tables?

For example, the Occupation dropdown would be populated from an Occupation generator file. Perhaps by reference to a specific array in the file so as to present a consistent and static listing each time for the user.
 

ELF

Generator Sage
Staff member
CL Add-on Dev
Beta-Tester
The first step could be if variable definitions had an optional UI component, so that users could change the default variable value.

If the variable definition also included a list of possible initial values, the associated UI component could be a drop-down menu.
 
Top