darelf
08-21-2002, 10:52 AM
This is just me sharing some code again.
Don't know if it will help anyone.
It's something I'm still working on, but you can see the basic structure. And it works, for what it does.
(The development target is PHP 4.2.2/Apache 1.3.x)
Links to the code (and a live version) can be found at http://mythicrpg.com
It is a d20 stat block generator (for DnD geeks out there).
It uses sessions to maintain the object, and reads in xml for its basic data. I didn't want to require a database. Also, I'm going to have to generate additional pages in order for it to work right.
Custom items ( i.e. +5 unholy vorpal icy burst longsword ) will require their own page for customization and then be saved somehow. I haven't decided on that. Maybe save custom items with the character being generated and then write the whole thing to an xml file?
Anyway, if it ends up being useful, or making someone go "oh, that's how you do that!", then I'll be happy. Well, I'll be happy anyway, since I'm just that kind of person.....
Don't know if it will help anyone.
It's something I'm still working on, but you can see the basic structure. And it works, for what it does.
(The development target is PHP 4.2.2/Apache 1.3.x)
Links to the code (and a live version) can be found at http://mythicrpg.com
It is a d20 stat block generator (for DnD geeks out there).
It uses sessions to maintain the object, and reads in xml for its basic data. I didn't want to require a database. Also, I'm going to have to generate additional pages in order for it to work right.
Custom items ( i.e. +5 unholy vorpal icy burst longsword ) will require their own page for customization and then be saved somehow. I haven't decided on that. Maybe save custom items with the character being generated and then write the whole thing to an xml file?
Anyway, if it ends up being useful, or making someone go "oh, that's how you do that!", then I'll be happy. Well, I'll be happy anyway, since I'm just that kind of person.....