Difference between revisions of "Script: Dec1 floor crumble"

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> enterrange(0x00) { <span style="color:#0000FF">loc</span> toLocation...")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
   <span style="color:#0000FF">loc</span> toLocation = 0x14A6, 0x0236, 0x00;
 
   <span style="color:#0000FF">loc</span> toLocation = 0x14A6, 0x0236, 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), 0x11C1, 0x03, 0x0F, 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), 0x11C1, 0x03, 0x0F, 0x00, 0x00);
   <span style="color:#0000FF">if</span> (![[teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, toLocation))
+
   <span style="color:#0000FF">if</span> (![[Engine Function:_teleport|<span style="color:#FF0000;font-weight:bold">teleport</span>]](target, toLocation))
 
   {
 
   {
 
     <span style="color:#0000FF">return</span> (0x01);
 
     <span style="color:#0000FF">return</span> (0x01);
 
   }
 
   }
   [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, [[dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x14, 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>]](0x14, 0x0A));
 
   <span style="color:#0000FF">return</span> (0x00);
 
   <span style="color:#0000FF">return</span> (0x00);
 
  }
 
  }

Latest revision as of 07:10, 19 October 2018

inherits globals;
trigger enterrange(0x00)
{
  loc toLocation = 0x14A6, 0x0236, 0x00;
  doLocAnimation(getLocation(this), 0x11C1, 0x03, 0x0F, 0x00, 0x00);
  if (!teleport(target, toLocation))
  {
    return (0x01);
  }
  loseHP(target, dice(0x14, 0x0A));
  return (0x00);
}