Script Function: Q5JB

From Ultima Online: The Second Age
Revision as of 02:45, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5JB(<span style="color:#0000FF">obj</span> victim, <span style="color:#0000FF">int</span...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q5JB(obj victim, int strength)
 {
   Q4FG = getCurHP(victim);
   switch (strength)
   {
   case 0x01
     actionBark(victim, 0x21, "* You feel a bit nauseous... *", "* " + getName(victim) + " looks ill. *");
     Q42Y = Q4FG / 0x14;
     break;
   case 0x02
     actionBark(victim, 0x21, "* You feel disoriented and nauseous! *", "* " + getName(victim) + " looks extremely ill. *");
     Q42Y = Q4FG / 0x0F;
     Q4R0 = 0x0A;
     break;
   case 0x03
     actionBark(victim, 0x21, "* You begin to feel pain throughout your body! *", "* " + getName(victim) + " stumbles around in confusion and pain. *");
     Q42Y = Q4FG / 0x08;
     Q4R0 = 0x0A;
     break;
   case 0x04
     actionBark(victim, 0x21, "* You feel extremely weak and are in severe pain! *", "* " + getName(victim) + " is wracked with extreme pain. *");
     Q42Y = Q4FG / 0x04;
     Q4R0 = 0x05;
     break;
   case 0x05
     actionBark(victim, 0x21, "* You are in extreme pain, and require immediate aid! *", "* " + getName(victim) + " begins to spasm uncontrollably. *");
     Q42Y = Q4FG / 0x02;
     Q4R0 = 0x05;
     break;
   }
   return ();
 }