| 1 |
void talk(void) |
| 2 |
{ |
| 3 |
freeze(1); |
| 4 |
|
| 5 |
choice_start(); |
| 6 |
"steps.wav" |
| 7 |
"sword1.wav" |
| 8 |
"Leave" |
| 9 |
choice_end(); |
| 10 |
|
| 11 |
say("Playing...", 1); |
| 12 |
|
| 13 |
// steps.wav |
| 14 |
if (&result == 1) |
| 15 |
{ |
| 16 |
// copy/pasted from S3-1ST.c |
| 17 |
playsound(40,22050,0,0,0); |
| 18 |
wait(1000); |
| 19 |
playsound(40,22050,0,0,0); |
| 20 |
wait(650); |
| 21 |
playsound(40,22050,0,0,0); |
| 22 |
wait(500); |
| 23 |
} |
| 24 |
|
| 25 |
// sword1.wav |
| 26 |
if (&result == 2) |
| 27 |
{ |
| 28 |
// copy/pasted from S2-FIGHT.c |
| 29 |
playsound(36, 22050,0,¤t_sprite, 0); |
| 30 |
// let's play it again |
| 31 |
wait(1000); |
| 32 |
playsound(36, 22050,0,¤t_sprite, 0); |
| 33 |
} |
| 34 |
|
| 35 |
unfreeze(1); |
| 36 |
} |