That sounds like a good approach for now.
By the way, here's an example of something from a very old project of mine. I can't really endorse the code as the best method (since it's so old) but it is functional.
It's for managing crew members listed to work on certain scenes in a film, but that's very similar to players in a game.
Here's how it works:
1. Add this Javascript function to the page (in the head section, <script> tags etc):
Code:
function addcrewmember(addThis){
var current = document.shot.crewmembers.value;
var len = current.length;
var lchrs = current.substring(len-2);
if (current!='') {
if (lchrs!=', ') {
if (lchrs.substring(1)==',') {
addThis = ' '+addThis;
}
else {
addThis = ', '+addThis;
}
}
}
document.shot.crewmembers.value += addThis;
}
2. Make a form named "shot" with an input (actually a textarea) named "crewmembers".
3. Next to that form, add a list of names, each with the following format. Using a database you can easily loop through the list to generate all of them:
Code:
<a href="#" onclick="addcrewmember('8'); return false;">John Smith</a>,
(assuming that John Smith is crew member with ID #7)
This is just a basic version that speeds things up, but what it does is makes a list of names you can click and when you click them they are added to a list (just separated by commas) in a form field. This is a little simpler than what you need because you need to modify each player as well, but I think it might give you an idea about creating a somewhat more interactive system.
Bookmarks