Difference between revisions of "Script: Dec1 floorspikes"
From Ultima Online: The Second Age
(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...") |
(No difference)
|
Revision as of 22:58, 5 October 2018
inherits globals;
trigger creation { setType(this, 0x11A1); return (0x00); }
trigger enterrange(0x00) { list Q5DQ; if (!hasObjVar(this, "disarmed")) { loseHP(target, dice(0x14, 0x05)); } return (0x01); }
trigger message("fs_disarm") { int Q5DQ; if (!hasObjVar(this, "disarmed")) { setType(this, 0x11A0); setObjVar(this, "disarmed", Q5DQ); } return (0x00); }
trigger message("fs_reload") { int Q5DQ; if (hasObjVar(this, "disarmed")) { setType(this, 0x11A1); removeObjVar(this, "disarmed"); } return (0x00); }