Back to index

freedink-data  1.08.20080920
S6-FOUNT.c
Go to the documentation of this file.
00001 void main( void )
00002 {
00003  int &pap;
00004 }
00005 
00006 void talk( void )
00007 {
00008  freeze(1);
00009  choice_start()
00010  "Take a drink"
00011  "Drop in a coin"
00012  "Leave"
00013  choice_end()
00014   if (&result == 1)
00015   {
00016    say("Ah, refreshing.", 1);
00017    &life = &lifemax;
00018    Playsound(22,22050,0,0,0);
00019   }
00020   if (&result == 2)
00021   {
00022    if (&gold < 1)
00023    {
00024     say("I don't have any coins!", 1);
00025     unfreeze(1);
00026     return;
00027    }
00028    &gold -= 1;
00029    &pap = random(4, 1);
00030    if (&pap == 1)
00031    {
00032     say("I hope this helps.", 1);
00033    }
00034    if (&pap == 2)
00035    {
00036     say("For luck.", 1);
00037    }
00038    if (&pap == 3)
00039    {
00040     say("Hope that wish comes true.", 1);
00041    }
00042    if (&pap == 4)
00043    {
00044     say("For Mother.", 1);
00045    }
00046   }
00047  unfreeze(1);
00048 }