ID:157750
 
I looked @ the interface guide to see if it could explain to me better, but I went to help on in dream maker and it said:

usr << winget(usr, "button1;button2", "is-checked")

Like I'm going to have 2 radio buttons 1 male 1 female.
How do i make it if like the male radio is checked or w/e it makes the var (pgender) = male ?
Pseudocode
if button1 is checked, set pgender to male
else if button 2 is checked, set pgender to female
That's a bit more then you need.

Lets go step by step

You will have to modify it slightly to work the way you want it to this is just an example.

->Lets add some code
mob
var/pgender
verb
.SetGender(var/A as num)
switch(A)
if(0)
pgender="Male"
if(1)
pgender="Female"
world<<"[pgender] Pride!"

Now go into your interface...(or make one)

Under Windows open the window you want to put the buttons on.

Create two buttons

Edit the button

Under Options
-Put this in text
Male
-Put this in command
SetGender 0
-Change Button type to Radio
-Put this in Group
Gender
-Click Ok

Edit the other button
Under Options
-Put this in text
Female
-Put this in command
SetGender 1
-Change Button type to Radio
-Put this in Group
Gender
-Click Ok

Assuming you have an output on your interface that is set to default and followed all the steps correctly and none of my steps are in any way screwed up or to vague... That should answer your question.