Author Sticky: Post Working Scripts Here
Jorgon Posted: Tuesday, 25 June 10:42PM
Script: Easy Sign Making

Function: Translates the tag into a spoken string for a sign. I created this to put in a custom sign object and paste it everywhere, only needing 1 instance of the script and no altering.

Use: I suggest you make a new useable sign that has the script in the OnUse trigger. From there you just place the sign, and in the tag type what you want the sign to say, using "_"s instead of " "s, such as "The_Friendly_Arm_Inn". The string will be reparsed and displayed above the sign for reading.

NWScript:
// Created By Jorgon

void main()

{

    string tag = GetTag(OBJECT_SELF);

    string parsed = "\n";

    while(FindSubString(tag, "_") > 0)

    {

        parsed = parsed + " "+ GetSubString(tag, 0, FindSubString(tag, "_")) + " ";

        tag = GetSubString(tag, (FindSubString (tag, "_") + 1), GetStringLength(tag) - (FindSubString (tag, "_") + 1));

     }

    parsed = parsed + " " + tag;

    SpeakString(parsed);

}



Thanks to Bioware for the great game! finally a toolset I can use, and program!