Jump to content
MakeWebGames

Recommended Posts

Posted

Yup ... you guessed it ... a very new, very newbie coder here. I have read all the forums and I can't find this anywhere. If it is and I've missed it ... my apologies.

What I would like to do/know ... is to change the title of something. For example ... changing "crystals" to "blah blah". Can this be done? If so .. how would I do that? And can new titles be added ... instead of renaming them? I am guessing that if they can be added ... then the db automatically picks it up as a new variable or do I have to choose a specific variable for it.

Thanks. Again ... if I missed this in the threads already posted ... I apologize.

Nice to meet you all! :P

Posted

Hello,

Welcome to MWG if you are new. Most of the text that state Crystal onto the webpage are usually in html and can be changed through just searching through the file and renaming Crystal to Points or whatever you are looking to use. I That is a very simple way though time consuming sometimes missing to change it on a page. There is a way though to make a function to replace all words that have Crystal to Point, I have used this before on Final Crusader.

Now for the second part adding in a second variable, I am not 100% positive what you mean, but you will have to add a section into the tables in your database for the game to connect, plus other coding on each page to grab the data associated with the table.

Hope this helps a little,

Peter W3 Theory

Posted

Thanks so much for the quick response.

For the second part .. what I meant was adding something new. Say I already have guard, accuracy etc and I want to add a new stat .. call it ... "beauty".

If I understand you correctly ... I have to add a new section to my database and then have "pointers" on each page to associate it to the database.

Could this not be done by adding the information into the php file? Would the database not recognize that there is a new "item"?

Thanks.

Posted

The database will only hold onto information .... its your php file (programs) that process that information. So, to make a new stat, you need to add to the database to hold the info on that stat, and you need to make your php do something with it... otherwise it is just wasted space.

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.   Paste as plain text instead

  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...