Difference between revisions of "Script: Trap gas wall"

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 { setType|<span style="color:#FF0000;font-weight:bold">se...")
 
 
Line 24: Line 24:
 
   }
 
   }
 
   [[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x113A, 0x03, 0x10, 0x00, 0x00);
 
   [[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x113A, 0x03, 0x10, 0x00, 0x00);
   [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, [[dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x03, 0x0A));
+
   [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x03, 0x0A));
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }

Latest revision as of 22:21, 18 October 2018

inherits globals;
trigger creation
{
  setType(this, 0x01);
  return (0x00);
}
trigger enterrange(0x03)
{
  if (isDead(target))
  {
    return (0x01);
  }
  doLocAnimation(getLocation(this), 0x113A, 0x03, 0x10, 0x00, 0x00);
  return (0x01);
}
trigger enterrange(0x01)
{
  if (isDead(target))
  {
    return (0x01);
  }
  doLocAnimation(getLocation(this), 0x113A, 0x03, 0x10, 0x00, 0x00);
  loseHP(target, dice(0x03, 0x0A));
  return (0x01);
}