Difference between revisions of "Script: Multidone"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#0000FF">list</span> Q5AG; <span style="color:#0000FF">obj</span> Q54W; <span style="color:...") |
|||
Line 9: | Line 9: | ||
<span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q54W, <span style="color:#800000">"mydeed"</span>)) | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](Q54W, <span style="color:#800000">"mydeed"</span>)) | ||
{ | { | ||
− | Q4H5 = [[ | + | Q4H5 = [[Engine Function:_getobjvar_obj|<span style="color:#FF0000;font-weight:bold">getobjvar_obj</span>]](Q54W, <span style="color:#800000">"mydeed"</span>); |
[[Engine Function:_appendToList|<span style="color:#FF0000;font-weight:bold">appendToList</span>]](Q5AG, Q54W); | [[Engine Function:_appendToList|<span style="color:#FF0000;font-weight:bold">appendToList</span>]](Q5AG, Q54W); | ||
[[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]](Q4H5, <span style="color:#800000">"multidone"</span>, Q5AG); | [[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]](Q4H5, <span style="color:#800000">"multidone"</span>, Q5AG); |
Latest revision as of 09:00, 19 October 2018
trigger creation { list Q5AG; obj Q54W; obj Q4H5; Q54W = getMultiSlaveId(this); if (Q54W != NULL()) { if (hasObjVar(Q54W, "mydeed")) { Q4H5 = getobjvar_obj(Q54W, "mydeed"); appendToList(Q5AG, Q54W); message(Q4H5, "multidone", Q5AG); } } detachScript(this, "multidone"); return (0x01); }