PDA

View Full Version : Code Question



madman
August 8th, 2010, 05:51
I was just wondering if any of you have written something up to change a personality sheet on the fly. So, maybe some kind of check box on the sheet to add the advanced template to that personality. Or demonic or whatever. I don't know if this would work or how to do it. But i would pay somebody cash to do this. As i would love to have it in my campaigns.

So the offer is there, or if someone would like to share that would work to. I use my Pathfinder ext. and D20_JPG ruleset.

Thanks in Advance

Chris

ddavison
August 9th, 2010, 18:28
Take a look at the code for the NPC sheet in 4E. You can select trap or monster and it will show or hide various effects. The key is to make a superset of all the possible data elements you would want to be displayed and then hide ones when they get the visibility flag switched.

Zeus
August 9th, 2010, 19:09
The method Doug states works really well and is the cornerstone behind some of the enhancements I made to 4E Personalities in the extension I released earlier this year. I even took it one step further by enabling Power Type lists (Standard Action, Traits, Auras, Minor Actions etc) for NPCs to be expandable/collapsable. Thus a DM has complete control of the amount information displayed under the main sheet.

You could also dynamically create, populate and destroy windowcontrols during runtime based upon certain events firing so as to get the same type of effect however this would be slightly more complex to code. I used this approach to create the labels and string controls for a Powers shortdescription field to accommodate the differences between MM1, MM2 and MM3 formatted NPC powers but without the need to store repeat information within the DB.

As for Templates you could also use the NPC Templates that 4E supports.