Talking

Corrade can be made to talk either on local chat, a region-wide say or in a group. For example to send the message Good day! to a configured group, you would issue:

        llInstantMessage(CORRADE, 
            wasKeyValueEncode(
                [
                    "command", "tell",
                    "group", wasURLEscape(GROUP),
                    "password", PASSWORD,
                    "entity", "group",
                    "message", "Hello!",
                    "callback", wasURLEscape(URL)
                ]
            )
        );

You can also make Corrade talk on local chat:

        llInstantMessage(CORRADE, 
            wasKeyValueEncode(
                [
                    "command", "tell",
                    "group", wasURLEscape(GROUP),
                    "password", PASSWORD,
                    "entity", "local",
                    "message", "Hello!",
                    "callback", wasURLEscape(URL)
                ]
            )
        );

or whisper, by specifying type:

        llInstantMessage(CORRADE, 
            wasKeyValueEncode(
                [
                    "command", "tell",
                    "group", wasURLEscape(GROUP),
                    "password", PASSWORD,
                    "entity", "local",
                    "type", "whisper",
                    "message", "Hello!",
                    "callback", wasURLEscape(URL)
                ]
            )
        );

or perhaps shout on channel 10:

        llInstantMessage(CORRADE, 
            wasKeyValueEncode(
                [
                    "command", "tell",
                    "group", wasURLEscape(GROUP),
                    "password", PASSWORD,
                    "entity", "local",
                    "type", "shout",
                    "channel", 10,
                    "message", "Hello!",
                    "callback", wasURLEscape(URL)
                ]
            )
        );

Index


secondlife/scripted_agents/corrade/tutorials/talking.txt ยท Last modified: 2019/01/03 01:36 (external edit)

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the copyright, license, warranty and privacy terms for the usage of this website please see the license, privacy, copyright and the plagiarism pages.