How would I go about doing a Gender section for my character creation as I am after a Gender setting where once the player has picked their gender it will do the following:
If the players chooses the gender of "Male" a list of male characters comes up to choose from and if that player chooses "Female" for the gender a list of female characters will come up to choose from. I dont know how to go about this because I have never really used Gender before plus I dont really know how to go about that of what I just stated :-\
If anyone can help I will gladly be glad to recieve it because I really would like to have it setup like that of which I stated. The helper/helpers will be put on the credits section if you so wish to and I am willing to pay 5/10 Dimes to the person who helps me.
Lee
ID:178934
Mar 17 2002, 7:43 am
|
|
Mar 17 2002, 7:47 am
|
|
Why don't you svae money and look up the gender var for atoms:0
|
In response to Super16
|
|
Super16 wrote:
Why don't you svae money and look up the gender var for atoms:0 Its not just the Gender I am after...Its that I dont know how to set this up properly..You know, the setting of Gender for a list of certain Characters. |
I think this does what you want...if not, you'll just have to be more specific!
var/list/MaleChars = list("Supperman","Baitman","Amazing Hulk") Then just add a switch based on their character variable's string, and go from there. |
In response to Foomer
|
|
Ok, I will try this, thanks Foomer
Lee |
Hmm...I aint really good at making my own login's but the errors are as follow:
loading mygame.dme mygame.dm:40:error:switch :invalid expression mygame.dm:41:error::expected a constant expression mygame.dm:43:error::expected a constant expression mygame.dm:45:error::expected a constant expression mygame.dmb - 4 errors, 0 warnings (double-click on an error to jump to it) The login is as follows: #include <deadron/characterhandling> Can anyone help me out here please? Lee |
In response to Mellifluous
|
|
The empty swtich() is giving you problems because in the particular code you're using it, you've got this:
switch() With those ifs, the switch is useless. But I believe what you really want is this: switch(thevar) Basically, the error is caused by the empty switch(). It's expecting switch(var). Lummox JR |
In response to Lummox JR
|
|
Lummox JR wrote:
The empty swtich() is giving you problems because in the particular code you're using it, you've got this: switch() With those ifs, the switch is useless. But I believe what you really want is this: switch(thevar) Basically, the error is caused by the empty switch(). It's expecting switch(var). Ok, thanks Lummox, I will try this :) Lee |
In response to Mellifluous
|
|
Well, I am back again hehe. This time Lummox, I have changed my Character Creation as the switches where alittle too hard to grapple with...So I changed them to input. The problem now is that the character is logged in the game now but he/she gets now icon nor icon_state. None the less, the Create Character comes up but the Choose Gender and what not does not come up anymore.
Here is the code: #include <deadron/characterhandling> Lee |
In response to Mellifluous
|
|
Thanks to Cinnom my Character Creation works now.
I would like to thank all who participated in helping me and I am sorry I didnt click on sooner. Lee |