i wanted to make a dynamic system for my DM team to create custom encounters for PCs without having to create an encounter in the toolset.
of course i could have used ResMan to upload them on the fly, but i wanted to create a cgi script that my DMs could use to mix up creatures. the entries are put into a mysql database which the game can access.
then, i just paint down some triggers or other situations to spawn the "encounter". the game will access the mysql database, look up the named encounter from the cgi page, and spawn the appropriate number of creatures randomly selected from the list.
contents:
- encounter_inc.nss: all the functions and descriptions you need in game.
- encounters.cgi: a simple cgi form to configure your custom encounters