Back to index

freedink-data  1.08.20080920
S2-WENCH.c
Go to the documentation of this file.
00001 //script for wench
00002 
00003 
00004 void main( void )
00005 {
00006 
00007 preload_seq(221);
00008 preload_seq(223);
00009 preload_seq(227);
00010 preload_seq(229);
00011 
00012 
00013 int &myrand;
00014 sp_brain(&current_sprite, 16);
00015 Debug("Hi, current sprite is &current_sprite!");
00016 sp_base_walk(&current_sprite, 220);
00017 sp_speed(&current_sprite, 1);
00018 
00019 //set starting pic
00020 
00021 sp_pseq(&current_sprite, 223);
00022 sp_pframe(&current_sprite, 1);
00023 
00024 mainloop:
00025 wait(2500);
00026   unfreeze(&current_sprite);
00027 if (&temp4hold == 1)
00028   {
00029    //dink is gonna fight
00030 sp_speed(&current_sprite, 2);
00031 sp_timing(&current_sprite, 0);
00032   }
00033 
00034 sp_speed(&current_sprite, 1);
00035 sp_timing(&current_sprite, 33);
00036 
00037 
00038 &myrand = random(50, 1);
00039 
00040   if (&myrand == 1)
00041   {
00042   freeze(&current_sprite);
00043   say_stop_npc("`#Another round over here?", &current_sprite);
00044   }
00045 
00046   if (&myrand == 2)
00047   {
00048   freeze(&current_sprite);
00049   say_stop_npc("`#I'm so tired.. arg.", &current_sprite);
00050   }
00051 
00052   if (&myrand == 3)
00053   {
00054   freeze(&current_sprite);
00055   say_stop_npc("`#My feet hurt..", &current_sprite);
00056   }
00057 
00058 
00059   if (&myrand == 4)
00060   {
00061   freeze(&current_sprite);
00062   say_stop_npc("`#Can I take a break, boss?", &current_sprite);
00063 
00064   if (&temp4hold == 1)
00065   {
00066     goto mainloop;
00067   }
00068   say_stop_npc("`4Did hell freeze over?", &temphold);
00069 
00070   }
00071 
00072 
00073 
00074 goto mainloop;
00075 }
00076 
00077 
00078 void hit( void )
00079 {
00080 freeze(&current_sprite);
00081 wait(400);
00082 say_stop_npc("`#Look with your eyes, not with your hands, honey.", &current_sprite);
00083 wait(800);
00084 goto mainloop;
00085 }
00086 
00087 void talk( void )
00088 {
00089 
00090  freeze(1);
00091  freeze(&current_sprite);
00092          choice_start()
00093          "Ask for a date"
00094          "Belittle her in front of the others to appear macho"
00095          "Leave"
00096          choice_end()
00097 
00098         if (&result == 1)
00099         {
00100 
00101        if (&story > 15)
00102        {
00103         wait(400);
00104          say_stop("Wanna go get some food later?", 1);
00105         wait(400);
00106          say_stop("`#Oh yes!  Hey, hero Smallwood just asked me out!", &current_sprite);
00107         wait(400);
00108          say_stop("Ah, it's going to be easy to get used to this...", 1);
00109    unfreeze(1);
00110    goto mainloop;
00111    return;
00112          }
00113 
00114         wait(400);
00115          say_stop("Wanna go get some food later?", 1);
00116         wait(400);
00117          say_stop("`#Sorry, I'm working later.", &current_sprite);
00118         wait(400);
00119          say_stop("Ah.", 1);
00120 
00121         }
00122 
00123         if (&result == 2)
00124         {
00125         wait(400);
00126          say_stop("Hey wench!  How much is the beer here?", 1);
00127         wait(400);
00128          say_stop("`#Two gold, sir.", &current_sprite);
00129         wait(400);
00130          say_stop("How much for you?", 1);
00131         wait(400);
00132          say_stop("`#I'm not for sale, you lout!", &current_sprite);
00133         wait(400);
00134          say_stop("Come on honey, I got three gold jingling in my pocket!", 1);
00135         wait(400);
00136          say_stop("`#Get LOST!", &current_sprite);
00137         }
00138 
00139 
00140    unfreeze(1);
00141    goto mainloop;
00142    return;
00143 
00144 }
00145