Script: Pathtest
From Ultima Online: The Second Age
Revision as of 16:52, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#FF0000;font-weight:bold">disableBehaviors</span>(this); <span style="col...")
trigger creation { disableBehaviors(this); member int Q485 = 0x00; return (0x01); }
trigger speech("come") { loc a = getLocation(speaker); walkTo(this, a, 0x2A); enableBehaviors(this); return (0x00); }
trigger speech("stop") { disableBehaviors(this); Q485 = 0x00; return (0x00); }
trigger speech("start") { enableBehaviors(this); Q485 = 0x01; return (0x00); }
trigger pathfound(0x2A) { bark(this, "I made it!"); if (!Q485) { disableBehaviors(this); } return (0x00); }
trigger pathnotfound(0x2A) { bark(this, "hrmph, I failed."); if (!Q485) { disableBehaviors(this); } return (0x00); }