ID:161928
 
I would like to request a macro for the gender that like this:

mob
verb
Scream_for_Waiter()
src << "What is it, \sir?" // it would replace sir with madam or whatever should be for neuter


This would be a good addition to thew macros we have (that is if I missed this macro...) for BYOND.
Couldn't you do..
"Hello [gender?"sir":"madam"]!"
In response to Flame Sage
You need to check the value of the var :P
gender=="male"? "sir":"madam"
In response to GhostAnime
GhostAnime wrote:
You need to check the value of the var :P
gender=="male"? "sir":"madam"

True.
But I believe it's actually..
src<<"[gender=="MALE"?"sir":"madam"]"
In response to Flame Sage
The genders are actually lowercase, but there are uppercase macros available.

src<<"[gender==MALE? "sir":"madam"]"
In response to Audeuro
I could have swarn they were MALE and FEMALE.
Oh well, *shrugs*
In response to Flame Sage
Flame Sage wrote:
GhostAnime wrote:
You need to check the value of the var :P
gender=="male"? "sir":"madam"

True.
But I believe it's actually..
src<<"[gender=="MALE"?"sir":"madam"]"



Define Gender as a number, not text.
In response to Obs
I hope you don't mean to say you can do..
var/gender

because that will be WRONG.

If you are suggesting...
var/Gender

it would be pointless, because theres already another variable like it built in.
In response to Obs
Obs wrote:
Define Gender as a number, not text.

While not such a horrible mistake, this is just one example of your incompetence you try to help people with. Verify before you post.
In response to Flame Sage

If you are suggesting...
> var/Gender
>

it would be pointless, because theres already another variable like it built in.


Pointless as it my seem, I've done exactly that and I've found many cases of where it is more convenient to have Gender as an enumerated type than as an actual string. On top of that, the regular list of 4 genders is insufficient for me because I have an expanded list of possible genders. I only really use the traditional gender var for text macros and some icon_states.
In response to Kaioken
Kaioken wrote:
Obs wrote:
Define Gender as a number, not text.

While not such a horrible mistake, this is just one example of your incompetence you try to help people with. Verify before you post.

I see no problem here.
In response to Obs
Obs wrote:
If you are suggesting...
> > var/Gender
> >

it would be pointless, because theres already another variable like it built in.


Pointless as it my seem, I've done exactly that and I've found many cases of where it is more convenient to have Gender as an enumerated type than as an actual string. On top of that, the regular list of 4 genders is insufficient for me because I have an expanded list of possible genders. I only really use the traditional gender var for text macros and some icon_states.

Out of curiousity... what exactly ARE your expanded genders?

Transexual neo male?
Hermaphrodite?
Mother Brain?
In response to Polatrite
Polatrite wrote:
Obs wrote:
If you are suggesting...
> > > var/Gender
> > >

it would be pointless, because theres already another variable like it built in.


Pointless as it my seem, I've done exactly that and I've found many cases of where it is more convenient to have Gender as an enumerated type than as an actual string. On top of that, the regular list of 4 genders is insufficient for me because I have an expanded list of possible genders. I only really use the traditional gender var for text macros and some icon_states.

Out of curiousity... what exactly ARE your expanded genders?

Transexual neo male?
Hermaphrodite?
Mother Brain?


Various alien genders.

Not the local flavors.
In response to Obs
Obs wrote:
Polatrite wrote:
Out of curiousity... what exactly ARE your expanded genders?

Transexual neo male?
Hermaphrodite?
Mother Brain?


Various alien genders.

Not the local flavors.

I was really hoping for Mother Brain.
In response to Polatrite
Polatrite wrote:
Obs wrote:
Polatrite wrote:
Out of curiousity... what exactly ARE your expanded genders?

Transexual neo male?
Hermaphrodite?
Mother Brain?


Various alien genders.

Not the local flavors.

I was really hoping for Mother Brain.

It could be added. We're always looking for more.