Dynamic Troop Creation.

Users who are viewing this thread

In the mod system if we could script the troop creation dynamically this would be great.

Functionally it spawns in a blank troop and then with the script commands define everything about it.  This way, it will have a unique id, and thus if the script is run 4 or 5 times you can have 4 or 5 unique troops generated.  Basically this would be good for creating scripted Hero NPC to join the party.  Plug in names, stats, skills etc.  All the initial spawn code would provide is a guaranteed unique troop id for us to then flesh out.  This could be expanded to any of the id systems in the game like items, etc.  this would eliminate the need to define them in the .py files.  Or make it based on the .py files still.  Wherin we have a "module_troop_templates.py", and "module_item_templates.py"  similar to the "module_partry_templates.py"

 
Back
Top Bottom