Difference between revisions of "Script Function: Q4RI"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RI(<span style="color:#0000FF">string</span> Q5NW) { <span style="color:#0000FF...") |
|||
Line 74: | Line 74: | ||
} | } | ||
<span style="color:#0000FF">return</span> (<span style="color:#800000">"an inn"</span>); | <span style="color:#0000FF">return</span> (<span style="color:#800000">"an inn"</span>); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RI(<span style="color:#0000FF">string</span> Q5NW) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_yew"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the city of Yew"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_minoc"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the city of Minoc"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_vesper"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the city of Vesper"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_cove"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the village of Cove"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_britain"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the city of Britain"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_moonglow"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the city of Moonglow"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_magincia"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the city of Magincia"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_ocllo"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the island of Ocllo"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_skara"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"Skara Brae"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_trinsic"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"Trinsic"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_nujelm"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"Nujel'm"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_serphold"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"Serpent's Hold"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_jhelom"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"the city of Jhelom"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"city_bucden"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"Buccaneer's Den"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5NW == <span style="color:#800000">"dungn"</span>) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"a dungeon"</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">return</span> (<span style="color:#800000">"somewhere"</span>); | ||
} | } |
Latest revision as of 22:39, 11 October 2018
function string Q4RI(string Q5NW) { if (Q5NW == "city_yew") { return ("the city of Yew"); } if (Q5NW == "city_minoc") { return ("the city of Minoc"); } if (Q5NW == "city_vesper") { return ("the city of Vesper"); } if (Q5NW == "city_cove") { return ("the village of Cove"); } if (Q5NW == "city_britain") { return ("the city of Britain"); } if (Q5NW == "city_moonglow") { return ("the city of Moonglow"); } if (Q5NW == "city_magincia") { return ("the city of Magincia"); } if (Q5NW == "city_ocllo") { return ("the island of Ocllo"); } if (Q5NW == "city_skara") { return ("Skara Brae"); } if (Q5NW == "city_trinsic") { return ("Trinsic"); } if (Q5NW == "city_nujelm") { return ("Nujel'm"); } if (Q5NW == "city_serphold") { return ("Serpent's Hold"); } if (Q5NW == "city_jhelom") { return ("the city of Jhelom"); } if (Q5NW == "city_bucden") { return ("Buccaneer's Den"); } if (Q5NW == "shrine") { return ("any of the shrines of the Virtues"); } if (Q5NW == "inn") { return ("an inn where I can rest and recover"); } if (Q5NW == "tavern") { return ("a tavern where I can recover"); } if (Q5NW == "city") { return ("any city"); } return ("an inn"); }
function string Q4RI(string Q5NW) { if (Q5NW == "city_yew") { return ("the city of Yew"); } if (Q5NW == "city_minoc") { return ("the city of Minoc"); } if (Q5NW == "city_vesper") { return ("the city of Vesper"); } if (Q5NW == "city_cove") { return ("the village of Cove"); } if (Q5NW == "city_britain") { return ("the city of Britain"); } if (Q5NW == "city_moonglow") { return ("the city of Moonglow"); } if (Q5NW == "city_magincia") { return ("the city of Magincia"); } if (Q5NW == "city_ocllo") { return ("the island of Ocllo"); } if (Q5NW == "city_skara") { return ("Skara Brae"); } if (Q5NW == "city_trinsic") { return ("Trinsic"); } if (Q5NW == "city_nujelm") { return ("Nujel'm"); } if (Q5NW == "city_serphold") { return ("Serpent's Hold"); } if (Q5NW == "city_jhelom") { return ("the city of Jhelom"); } if (Q5NW == "city_bucden") { return ("Buccaneer's Den"); } if (Q5NW == "dungn") { return ("a dungeon"); } return ("somewhere"); }