Difference between revisions of "Script: Sha door one"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#FF0000;font-weight:bold">setObjVar</span>(this, <span style="color:#800000">"isLoc...") |
(No difference)
|
Latest revision as of 14:14, 5 October 2018
trigger creation { setObjVar(this, "isLocked", 0x0100); return (0x00); }
trigger message("unlock") { if (hasObjVar(this, "isLocked")) { removeObjVar(this, "isLocked"); } return (0x00); }
trigger message("lockup") { bark(this, "I should be locked"); if (!hasObjVar(this, "isLocked")) { setObjVar(this, "isLocked", 0x0100); } return (0x00); }
trigger use { if (hasObjVar(this, "isLocked")) { bark(this, "It appears to be locked."); return (0x00); } return (0x01); }