Make Floaty Text, or Speach on objects and doors[edit | edit source]

For Objects[edit | edit source]

you would place this script in the OnUsed handle. Remove the parts (or comment out) you don't want to use.

void main()
{
    object oPC = GetLastUsedBy();
    // For Floaty Text
    FloatingTextStringOnCreature("Your Message",oPC);
    // For Speaking a string, Text is displayed for one Hartbeat.
    SpeakString("Your Message");
    // For a Privet message
    SendMessageToPC(oPC,"Your Message");
}

For Doors[edit | edit source]

you can place it in the OnUsed, but useually doors that say something usually is because it is locked. In that case you would need to place this script in the OnFailed to open. Same as above but oPC is now GetClickingObject()

void main()
{
    object oPC = GetClickingObject();
    // For Floaty Text
    FloatingTextStringOnCreature("Your Message",oPC);
    // For Speaking a string, Text is displayed for one Hartbeat.
    SpeakString("Your Message");
    // For a Privet message
    SendMessageToPC(oPC,"Your Message");
    // To start a Conversation
    ActionStartConversation(oPC);
}
Community content is available under CC-BY-SA unless otherwise noted.