• Hello game master! Welcome to our growing community. Please take a moment to Register (top right button).

    If you use Campaign Logger, you can use the same login details - we've linked the app to this forum for secure and easy single sign-on for you.

    And please drop by the Introductions thread and say hi.

NPC Generator

Hannu

Mythras Guru
Beta-Tester
Faster Combatant
Adventure Builder
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
Beta-Tester
Faster Combatant
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
Demonplague Author
Wizard of Adventure
Beta-Tester
Adventure Builder
Gamer Lifestyle
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
Beta-Tester
Faster Combatant
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