Script Function: Q4S4

From Ultima Online: The Second Age
Jump to: navigation, search
 function string Q4S4()
 {
   string Q4V4;
   int Q54A = Q4SC() / 0x0A;
   switch (Q54A)
   {
   default
     Q4V4 = "confused";
     break;
   case 0x01
     Q4V4 = "extremely unhappy";
     break;
   case 0x02
     Q4V4 = "rather unhappy";
     break;
   case 0x03
     Q4V4 = "unhappy";
     break;
   case 0x04
     Q4V4 = "content, I suppose,";
     break;
   case 0x05
     Q4V4 = "content";
     break;
   case 0x06
     Q4V4 = "happy";
     break;
   case 0x07
     Q4V4 = "rather happy";
     break;
   case 0x08
     Q4V4 = "very happy";
     break;
   case 0x09
     Q4V4 = "extremely happy";
     break;
   case 0x0A
     Q4V4 = "wonderfully happy";
     break;
   }
   return (Q4V4);
 }