Difference between revisions of "Script: Hidetrig"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> sk_table; <span style="color:#0000FF">trigger</span> callback(0x54) { barkToHued|<span style="color:#FF0000;font-weigh...")
 
 
Line 5: Line 5:
 
   [[Engine Function:_barkToHued|<span style="color:#FF0000;font-weight:bold">barkToHued</span>]](this, this, 0x22, <span style="color:#800000">"You are no longer hidden."</span>);
 
   [[Engine Function:_barkToHued|<span style="color:#FF0000;font-weight:bold">barkToHued</span>]](this, this, 0x22, <span style="color:#800000">"You are no longer hidden."</span>);
 
   [[Engine Function:_setInvisible|<span style="color:#FF0000;font-weight:bold">setInvisible</span>]](this, 0x00);
 
   [[Engine Function:_setInvisible|<span style="color:#FF0000;font-weight:bold">setInvisible</span>]](this, 0x00);
   [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](this, <span style="color:#800000">"[[hide|<span style="color:#2B91AF">hide</span>]]trig"</span>);
+
   [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](this, <span style="color:#800000">"hidetrig"</span>);
 
   [[Engine Function:_deleteObject|<span style="color:#FF0000;font-weight:bold">deleteObject</span>]](this);
 
   [[Engine Function:_deleteObject|<span style="color:#FF0000;font-weight:bold">deleteObject</span>]](this);
 
   <span style="color:#0000FF">return</span> (0x00);
 
   <span style="color:#0000FF">return</span> (0x00);

Latest revision as of 17:42, 19 October 2018

inherits sk_table;
trigger callback(0x54)
{
  barkToHued(this, this, 0x22, "You are no longer hidden.");
  setInvisible(this, 0x00);
  detachScript(this, "hidetrig");
  deleteObject(this);
  return (0x00);
}
trigger message("canUseSkill")
{
  callback(this, 0x00, 0x54);
  return (0x01);
}