Script Function: Q4RJ

From Ultima Online: The Second Age
Revision as of 04:09, 10 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4RJ(string description, int Q4IE)
 {
   switch (Q4IE)
   {
   case 0x00
     description = description + "to the North.";
     break;
   case 0x01
     description = description + "to the Northeast.";
     break;
   case 0x02
     description = description + "to the East.";
     break;
   case 0x03
     description = description + "to the Southeast.";
     break;
   case 0x04
     description = description + "to the South.";
     break;
   case 0x05
     description = description + "to the Southwest.";
     break;
   case 0x06
     description = description + "to the West.";
     break;
   case 0x07
     description = description + "to the Northwest.";
     break;
   default
     debugMessage("getDirection: invalid direction returned.");
     description = description + " in some direction.";
     break;
   }
   return ();
 }
 function void Q4RJ(string description, loc Q4VS, loc there)
 {
   int Q4IE = getDirectionInternal(Q4VS, there);
   switch (Q4IE)
   {
   case 0x00
     description = description + "to the North.";
     break;
   case 0x01
     description = description + "to the Northeast.";
     break;
   case 0x02
     description = description + "to the East.";
     break;
   case 0x03
     description = description + "to the Southeast.";
     break;
   case 0x04
     description = description + "to the South.";
     break;
   case 0x05
     description = description + "to the Southwest.";
     break;
   case 0x06
     description = description + "to the West.";
     break;
   case 0x07
     description = description + "to the Northwest.";
     break;
   default
     debugMessage("getDirection: invalid direction returned.");
     description = description + " in some direction.";
     break;
   }
   return ();
 }