Difference between revisions of "Script: Dec1 fs damage"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { callback|<span style="color:#FF0000;font-weight:bold">c...")
 
 
Line 15: Line 15:
 
     for(<span style="color:#0000FF">int</span> i = 0x00; i < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4GI); i++)
 
     for(<span style="color:#0000FF">int</span> i = 0x00; i < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4GI); i++)
 
     {
 
     {
       [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](Q4GI[i], [[dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x14, 0x05));
+
       [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](Q4GI[i], [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x14, 0x05));
 
     }
 
     }
 
   }
 
   }

Latest revision as of 22:31, 18 October 2018

inherits globals;
trigger creation
{
  callback(this, 0x01, 0x3D);
  return (0x01);
}
trigger callback(0x3D)
{
  list Q4GI;
  if (!hasObjVar(this, "disarmed"))
  {
    getMobsInRange(Q4GI, getLocation(this), 0x00);
    for(int i = 0x00; i < numInList(Q4GI); i++)
    {
      loseHP(Q4GI[i], dice(0x14, 0x05));
    }
  }
  callback(this, 0x01, 0x3D);
  return (0x01);
}