viewing paste Unknown #18884 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
function        script  MalScreams      {
 
        .@MalScreams = rand(1,5);
 
if (Sex == 1 && .@MalScreams == 1) {
soundeffect "voice_man.wav", 0;
} else
if (Sex == 1 && .@MalScreams == 2) {
soundeffect "voice_man2.wav", 0;
} else
if (Sex == 1 && .@MalScreams == 3) {
soundeffect "voice_man3.wav", 0;
} else
if (Sex == 1 && .@MalScreams == 4) {
soundeffect "voice_man4.wav", 0;
} else
if (Sex == 1 && .@MalScreams == 5) {
soundeffect "voice_man5.wav", 0;
} else
}
function        script  FemScreams      {
        .@FemScreams = rand(1,4);
if (Sex == 0 && .@FemScreams == 1) {
soundeffect "voice_girl.wav", 0;
} else
if (Sex == 0 && .@FemScreams == 2) {
soundeffect "voice_girl2.wav", 0;
} else
if (Sex == 0 && .@FemScreams == 3) {
soundeffect "voice_girl3.wav", 0;
} else
if (Sex == 0 && .@FemScreams == 4) {
soundeffect "voice_girl4.wav", 0;
} else
}
-       script  DeathS  -1,{
OnPCDieEvent:
if (Sex)
{
        callfunc ("MalScreams");
} else
        callfunc ("FemScreams");
}
Viewed 349 times, submitted by unknown.