![]() |
#1
|
||||
|
||||
![]()
Quick question how do I make it so the player can choose the gender of there pets?
|
#2
|
|||
|
|||
![]()
It's possible
But i have no time to explain it now Sorry D: |
#3
|
||||
|
||||
![]()
umm this is definitely possible. Arianna's gender system now generates pets genders randomly, but you can allow users to decide the gender of their pets too. Shouldnt be hard to do so.
|
#4
|
||||
|
||||
![]()
What do I need to learn or add to do this. Can a php noob do it?
|
#5
|
||||
|
||||
![]()
umm I am afraid it will require basic PHP skills, but you can definitely give a try. Just modify the script section in which Arianna defined gender generation, just like what I did when I made that Gender Ratio Mod.
|
#6
|
||||
|
||||
![]()
To allow a user to CHOOSE gender wouldn't be too horribly difficult. You'd have to have some sufficient knowledge of PHP/MySQL/HTML in order to do so though.
To add a gender, you'd have to add another field to the adoptables table(and therefore edit doadopt.php) and then in the adopt.php and doadopt.php have a form that selected the option, then have the option selected saved into the database. |
#7
|
||||
|
||||
![]()
Well Kaeliah, I believe Gender mod is already available in our latest release. Since Roconza is using that one, I dont think its even necessary for her to manipulate database tables. All she needs to do is to add a few lines in adopt.php and doadopt.php for a new page that asks users to choose their pet's gender.
|
#8
|
||||
|
||||
![]()
You could put it on the same page where it asks for the name of the adopt, although depending on where the random picker is for the genders you may have to remove those lines of codes and put in a chooser. If the random picker comes before the part where you pick a name, then you can override it by using the same variable and assigning a different variable to it. However if it's the last part of the code then the random picker will over ride the chosen option.
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Quick question | Aasixx | Questions and Supports | 12 | 08-25-2012 08:42 PM |
Quick Question | LilPixie | Questions and Supports | 3 | 09-04-2009 05:36 PM |
Updait = Nothing? (HELP QUICK!) | RipJawWolfFang | Questions and Supports | 5 | 04-17-2009 12:08 PM |
Quick question. | lollicat | Questions and Supports | 1 | 03-31-2009 08:38 AM |
Quick help, and I mean QUICK! | trollis76 | Questions and Supports | 4 | 02-19-2009 09:30 PM |
What's New? |
What's Hot? |
What's Popular? |