MGCJerry
04-07-2002, 09:49 AM
Well... I was goofing around in notepad writing out some equations and some if/then statements relating to my RPG... I decided to take a quick crash course in php programming. Here is the result of my boredom and 2 hrs of reading the php docs.
It prolly has no value to this forum, but since its my first program ever, I'm posting it anyway :stickout
The Child Generator (http://www.2thextreme.org/2txbirth.php)
I plan on adding the ability to pull some female and male names from a database and offer suggestions to the player. This is gonig to be my learning script to figure stuff out...
Tip: If you dont like what it gave you, refresh and hope it gives you something better...
So what do you think so far?... Remember its my first ever "start from scratch" not a "cut 'n paste" script ;)
terrastudios
04-07-2002, 09:59 AM
mjerry i love ya and everything dude but that script suckz
sorry to put it bluntly :(
Mirage-ISP
04-07-2002, 10:03 AM
:bawling: But Terra its his first php script!! MG keep working on it okay..erm the php programming I mean.
Not bad
Post you PHP again next time
MGCJerry
04-07-2002, 07:49 PM
mjerry i love ya and everything dude but that script suckz
:bawling: :bawling: :bawling: *little kid voice* terrastudios is being mean to me... :D
It must be php's rand() command... Lemmie guess, all yours died huh?
If thats not it... when what is it, I'm open to suggestions ;)
Thanks msn, and queensoul... It was originally just a plain text if/else deal... then I added more... then some more :) then made it write the text in html
Good thing I got Apache and php running locally ;) php is neat... I definately like it better than javascript of python. Now its time for me to make a database, and fill it with some male and female names and suggest some names based on the kids you had... Gotta figure it out first... :)
terrastudios
04-08-2002, 07:51 AM
<schoolkidvoice> im sorry dude :( dont tell ur big bro on me ;) </schoolkidvoice>
hehe, true it was your first php script ill give ya that, we cant all make a 3d-engine in php before we know the language
and if anyone asks me for the source of the php3dengine i *WILL* slap them :D
MGCJerry
04-08-2002, 08:21 AM
Hehehe... You thought I'd go tell my big bro... :laugh:
I take care of my problems myself *pulls a sword out of mid air and summons a skeleton dragon to take care of this 'problem' and grins maniacaly as lighting rolls across the sky... *
I really need to lay off the RPGs... Its affecting my daily life :(
Ive been aching for a slap all day to keep me awake... Can I have the souce for php3dengine? :D Not like I'll understand it or anything.
Me being a 3d arist, modeller, and a RPG'er give me time and I'll make my own version too :stickout. and maybe a standalone php RPG game :) ........ Hey, I can dream cant I? :D
terrastudios
04-16-2002, 12:28 PM
took a bit of time but
* SLAP *
:P
MGCJerry
06-24-2002, 03:24 AM
Yup, old thread, but a new update :)
After some dorking around with php, I figured a couple things out... Now, I got all of my game's civilizations in the script and I just saved myself from making 10 more scripts...
Soon, I'm going to look up the infant mortality rate for major countries, and average it and at least make the script where it has a more forgiving mortality rate for humans... Plus other stuff like, unusual amount of kids (5,6,7,8 or even 9). This script is still far from done... Anything that could help me as a GM, I'm going to add it into the script.
Here (http://www.2thextreme.org/Utilities/ChildGen/) it is... Enjoy..
chuckt101
06-24-2002, 08:21 AM
Update the link in the first post ;)
MGCJerry
06-24-2002, 11:06 AM
I cant update the link in the first post... The original thread is old ;)