summaryrefslogtreecommitdiff
path: root/npc/functions/bodytype.txt
blob: b67c92949137961d3fa1be7a2d5c13766853f791 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function	script	stringToGender	{
    switch (ord(strtolower(charat(getarg(0, "n"), 0)))) {
    case 109: // m
        return GENDER_MALE;
    case 102: // f
        return GENDER_FEMALE;
    default:
        return GENDER_HIDDEN;
    }
}

function	script	genderToString	{
    .@sex = getarg(0, Gender);

    if (.@sex == 0)
        return l("female");
    else if (.@sex == 1)
        return l("male");
    else
        return l("hidden");
}