Script: Text

From Ultima Online: The Second Age
Revision as of 08:18, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"activate"</span>) { <span style="color:#0000FF">if</span> (hasObjVar|<span style="color:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger message("activate")
{
  if (hasObjVar(this, "acttext"))
  {
    string acttext = getobjvar_str(this, "acttext");
    bark(this, acttext);
    processTriggerCmds(this, "a");
  }
  return (0x00);
}
trigger message("deactivate")
{
  if (hasObjVar(this, "deacttext"))
  {
    string deacttext = getobjvar_str(this, "deacttext");
    bark(this, deacttext);
    processTriggerCmds(this, "d");
  }
  return (0x00);
}