ID:160911
 
When i type this then login and click the verb it makes me neuter, can someone make it so a popup screen comes and then you pick the gender?

mob
verb
pick_gender ()
male
icon = 'male.dmi'
female
icon = 'female.dmi'
neuter
icon = 'neuter.dmi'
mob/verb
pick_gender()
switch(alert("What would it be?","Pick a gender","Male","Female","Neuter"))
if("Male")
src.icon ='male.dmi'
if("Female")
src.icon ='female.dmi'
if("Neuter")
src.icon ='neuter.dmi'

you can use input() proc alternetively.
Refer DM guide for it.
In response to Hardik
Those work but when i add linkr it say inconsistant identification

mob/verb
pick_gender()
switch(alert("What would it be?","Pick a gender","Male","Female","Neuter","linkr"))
if("Male")
src.icon ='male.dmi'
if("Female")
src.icon ='female.dmi'
if("Neuter")
src.icon ='neuter.dmi'
if("linkr")
src.icon ='linkr.dmi'
In response to IDWMno
Its because he used spaces rather than tabbing it over in his example. Take out all the spaces and replace them with tabs. Should be fine then.
In response to IDWMno
IDWMno wrote:
Those work but when i add linkr it say inconsistant identification

mob/verb
> pick_gender()
> switch(alert("What would it be?","Pick a gender","Male","Female","Neuter","linkr"))
> if("Male")
> src.icon ='male.dmi'
> if("Female")
> src.icon ='female.dmi'
> if("Neuter")
> src.icon ='neuter.dmi'
> if("linkr")
> src.icon ='linkr.dmi'

It is because alert() proc can't handle more than 3 command buttons. If you want more than 3, then you can use input() proc
ex:
mob/verb
pick_gender()
switch(input("What would it be?","Pick Gender") in list("Male","Female","Neuter","linkr"))
if("Male")
src.icon ='male.dmi'
if("Female")
src.icon ='female.dmi'
if("Neuter")
src.icon ='neuter.dmi'
if("linkr")
src.icon ='linkr.dmi'