Script: Trap globals
From Ultima Online: The Second Age
Revision as of 08:10, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; forward <span style="color:#0000FF">void</span> <span style="color:#2B91AF">Q4DB</span>(); forward <span...")
inherits globals;
forward void Q4DB(); forward int Q4YA(obj , obj );
function void Q4DB() { removeObjVar(this, "trapLevel"); removeObjVar(this, "trapType"); return (); }
function int Q4YA(obj user, obj this) { int locked = 0x00; if (hasObjVar(this, "isLocked")) { locked = getObjVar(this, "isLocked"); } return (locked); }
trigger creation { setObjVar(this, "isTrap", 0x01); return (0x00); }
trigger use { list Q63G; Q63G = user, this; if (!hasObjVar(this, "disabled")) { message(this, "triggerTrap", Q63G); } return (0x01); }