ID:266486
 
OK,when they click on a certain character they start off with high stats(it randomly picks that).How would i do that?
Thanks!

-Kappa the Imp
I came up with a code:
mob/Login()
var/choice = input("What is your gender") in list("Male","Female")
switch(choice)
if("Male")
pick(src.Health = 100000,src.Health=100)
usr <<"You are male"
if("Female")
usr <<"You are a female"

So,that doesn't work,i only think that needs a little fixing.

-Kappa the Imp
In response to Kappa the Imp
Try src.health = pick(...)
In response to Nadrew
i tried,but i kept coming up with errors,can you redo the code for me plz or just help me?Thanks!

-Kappa the Imp
In response to Kappa the Imp
What errors did yoU GET?
In response to Super16
Maybe you can try this

if("Male")
var/M=pick(20000,2000)
src.health=M
In response to Super16
warning:statement has no effect
error:expected "if" or "ekse"

-Kappa the Imp(which needs HELP!!!!)
In response to Super16
Now i also want it if they pick male they get a chance of getting Female.

-Kappa the Imp
In response to Kappa the Imp
No problemo brother.
In response to Kappa the Imp
Can you help on that?([link])
Try this

var/T=rand(1,2)
if(T==1)
src.health=23432423
and so on
else
src.health=222
In response to Super16
I got it working but check out [link].
In response to Kappa the Imp
if("Male")
var/T=rand(1,2)
if(T==1)
usr<<"YOu are female"//since I don't know how you are setting this uP:P
else
var/M=pick(2000,200000)
src.Health=M
if("Female")
usr<<"You are female"
In response to Super16
mob/Login()
var/choice = input("What is your gender") in list("Male","Female")
switch(choice)
if("Male")
usr << pick (

usr.Health = 100,

prob(50)

usr.Health = 100000,

)
usr <<"You are male"
if("Female")
usr <<"You are a female"
In response to Thief Jack
Thanks TheifJack and Super16!

-Kappa the Imp
In response to Kappa the Imp
You could also do:

mob/Login()
var/choice = input("What gender do you want to be?")in list("Male","Female")
if(prob(50))
choice = "Female"
else
if(choice == "Male")
...
else
...
In response to Nadrew
Ah,Nadrew you gave me an easier way!Thanks to you too.

-Kappa the Imp
In response to Nadrew
That doesn't work.Oh well,i still have another way.

-Kappa the Imp
In response to Kappa the Imp
I just have to laugh that you said easier way and it doesn't work:P
In response to Super16
Works for me.. Hmm, maybe you just messed it up, I have no problems with it.