Difference between revisions of "Script Function: Q43Y"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q43Y(<span style="color:#0000FF">obj</span> Q62K, <span style="color:#0000FF">obj</span>...") |
|||
Line 9: | Line 9: | ||
<span style="color:#0000FF">concat</span>(desc, <span style="color:#800000">" from "</span>); | <span style="color:#0000FF">concat</span>(desc, <span style="color:#800000">" from "</span>); | ||
<span style="color:#0000FF">concat</span>(desc, Q47A); | <span style="color:#0000FF">concat</span>(desc, Q47A); | ||
+ | } | ||
+ | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q62K, <span style="color:#800000">"lookAtText"</span>, desc); | ||
+ | <span style="color:#0000FF">return</span> (); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q43Y(<span style="color:#0000FF">obj</span> Q62K, <span style="color:#0000FF">obj</span> ship, <span style="color:#0000FF">loc</span> where) | ||
+ | { | ||
+ | <span style="color:#0000FF">string</span> desc = <span style="color:#800000">"a ship claim ticket"</span>; | ||
+ | <span style="color:#0000FF">loc</span> Q5M7; | ||
+ | <span style="color:#0000FF">string</span> Q47A; | ||
+ | <span style="color:#0000FF">int</span> Q5NC = [[Engine Function:_getLocalizedDesc|<span style="color:#FF0000;font-weight:bold">getLocalizedDesc</span>]](Q47A, Q5M7, where, where); | ||
+ | <span style="color:#0000FF">if</span> (Q5NC) | ||
+ | { | ||
+ | <span style="color:#0000FF">concat</span>(desc, <span style="color:#800000">" from "</span>); | ||
+ | <span style="color:#0000FF">concat</span>(desc, Q47A); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Script_Function:_Q58R|<span style="color:#2B91AF">Q58R</span>]](ship)) | ||
+ | { | ||
+ | <span style="color:#0000FF">concat</span>(desc, <span style="color:#800000">" for the "</span>); | ||
+ | <span style="color:#0000FF">concat</span>(desc, [[Script_Function:_Q58N|<span style="color:#2B91AF">Q58N</span>]](ship)); | ||
} | } | ||
[[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q62K, <span style="color:#800000">"lookAtText"</span>, desc); | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](Q62K, <span style="color:#800000">"lookAtText"</span>, desc); | ||
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Latest revision as of 15:06, 12 October 2018
function void Q43Y(obj Q62K, obj ship, loc where) { string desc = "a ship claim ticket"; loc Q5M7; string Q47A; int Q5NC = getLocalizedDesc(Q47A, Q5M7, where, where); if (Q5NC) { concat(desc, " from "); concat(desc, Q47A); } setObjVar(Q62K, "lookAtText", desc); return (); }
function void Q43Y(obj Q62K, obj ship, loc where) { string desc = "a ship claim ticket"; loc Q5M7; string Q47A; int Q5NC = getLocalizedDesc(Q47A, Q5M7, where, where); if (Q5NC) { concat(desc, " from "); concat(desc, Q47A); } if (Q58R(ship)) { concat(desc, " for the "); concat(desc, Q58N(ship)); } setObjVar(Q62K, "lookAtText", desc); return (); }