Jump to content

Recommended Posts

 

First, thanks to those who help with the countdown question I posted but now just ran into another problem, well its more just the BEST way

to go about this ...

 

I would like to have a technology list, which what this would allow the player to 'research' technologies to improve their empire.

 

Each 'tech' would have a x amount of turns that would be needed to complete this task as well as, and other techs that, upon completion would open up, enable certin units, buildings, etc.

 

Should these 'techs' be posted in a database, then pulled with the information OR an array, each with what other 'techs' it would allow, buildings, units, etc. this tech would allow the player to have.

 

Thanks again for all your help!

Link to comment
https://forums.phpfreaks.com/topic/87277-help-best-way-to-go-about-this/
Share on other sites

Any tech information pertaining to individual players should be stored in a database as this information will be frequently updated as they play your game.

 

The actual data structure that stores the tech-design within the game could be placed in either a database or file.  Since this is information that will change infrequently you don't really need to store it in a database.  Also, a plain old file will likely offer slightly faster performance over repeated DB queries.

I have all the tech information, including the amount of turns it would take to gain this tech ... then when the player gains the tech, it would

be posted in the players file .. would this be ok to do?

 

I was thinking having each tech as a level, player would start level 0, the php/sql script should ONLY list for the player the techs that have level 0 along with what each tech would lead to once the player gains

the certin tech.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.