girasquid
2007.01.06, 12:03 AM
Hello, all.
Right now, I'm working on a project that involves Perl/CGI for interactions, and MySQL for data storage(it is a browsergame). There are certain skills that users can train in, that will affect their attributes.
In order to keep the game easy to extend, we need the skills not to be handcoded. They should all be stored within the database somehow, along with how they affect the player's stats(so that administrators can easily tweak to resolve balance issues).
So far, my idea is to have something like this:
skills
name | stat1boost | stat2boost | stat3boost | stat4boost
And then use the values to modify the user's stats.
However, this seems...kludgy. Can anyone point me in the right direction for a better way to do this?
Thanks,
Girasquid
Right now, I'm working on a project that involves Perl/CGI for interactions, and MySQL for data storage(it is a browsergame). There are certain skills that users can train in, that will affect their attributes.
In order to keep the game easy to extend, we need the skills not to be handcoded. They should all be stored within the database somehow, along with how they affect the player's stats(so that administrators can easily tweak to resolve balance issues).
So far, my idea is to have something like this:
skills
name | stat1boost | stat2boost | stat3boost | stat4boost
And then use the values to modify the user's stats.
However, this seems...kludgy. Can anyone point me in the right direction for a better way to do this?
Thanks,
Girasquid