Script Function: Q4RW

From Ultima Online: The Second Age
Revision as of 17:32, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RW(<span style="color:#0000FF">int</span> Q4XG) { <span style="color:#0000FF">i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function string Q4RW(int Q4XG)
 {
   if (!Q4XG)
   {
     return ("");
   }
   Q4XG = Q4XG - 0x044C;
   switch (Q4XG)
   {
   case 0x00
     return ("indeterminate color");
     break;
   case 0x01
   case 0x02
   case 0x03
     return ("white");
     break;
   case 0x04
   case 0x05
   case 0x06
     return ("graying");
     break;
   case 0x07
   case 0x08
     return ("black hair");
   case 0x09
   case 0x0A
   case 0x0B
     return ("copper");
     break;
   case 0x0C
   case 0x0D
   case 0x0E
   case 0x0F
     return ("brown");
     break;
   case 0x10
     return ("reddish brown");
     break;
   case 0x11
   case 0x12
   case 0x13
     return ("blonde");
     break;
   case 0x14
   case 0x15
   case 0x16
     return ("light brown");
     break;
   case 0x17
   case 0x18
     return ("golden brown");
     break;
   case 0x19
   case 0x1A
   case 0x1B
     return ("golden");
     break;
   case 0x1C
   case 0x1D
   case 0x1E
     return ("bronze");
     break;
   case 0x1F
   case 0x20
     return ("dark brown");
     break;
   case 0x21
   case 0x22
     return ("sandy");
     break;
   case 0x23
   case 0x24
   case 0x25
     return ("honey-colored");
     break;
   case 0x26
   case 0x27
   case 0x28
     return ("red");
     break;
   case 0x29
   case 0x2A
   case 0x2B
     return ("nut brown");
     break;
   case 0x2C
   case 0x2D
   case 0x2E
     return ("rich brown");
     break;
   case 0x2F
   case 0x30
     return ("very dark brown");
     break;
   }
   return ("outlandishly colored");
 }