This is a discussion on Re: Stratagy within the PHP Language forums, part of the PHP Programming Forums category; I guess Ill clearify a bit: I just dont understand how to structure a table to hold those rules. André ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I guess Ill clearify a bit: I just dont understand how to structure a table
to hold those rules. André Nĉss wrote: > Alexander Ross: > >> Sorry for the repost but I really need ideas here and I have a >> clock... >> >> PHP/POSTGRESQL >> >> Here's the cliff's notes version of my situation: >> I'm makeing a simple role playing game where users gain points by >> answering trivia question. They can then use their points (like >> skiball tickets) to >> attepmt certain actions. Success ot failure is based on a roll of >> the dice. If successfull, the users personal stats (i.e. knowledge >> (kn), charisma (ch) ... basically think back to the hayday of >> Dungens & Dragons) increase based on a rule for each action. For >> example: >> >> Action: GO TO COLLEGE >> Cost: 15 points >> *Success Rule1: KN +3, CH +1, ... >> *Failure Rule1: KN -2,CH -1... >> >> *Each action wil have 3 success rules and 3 failure rules randomely >> chosen once success is determined. >> >> That all being said, I need advice on how to store all this info so >> its easily retrievable later. Thought? Suggestions? Jokes? > > Well, you've already decided to use a DBMS, so I guess you want to > store them in the DBMS. Now all you need to do is start designing... > I think the question is a bit to general to be answered here (unless > someone is inclined to do most of the design process for you). > > Try sketching up a rough design and ask questions here when you get > stuck, or simply want feedback on your design. I think that's gonna > be a lot more efficient. > > André Nĉss |