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: 2022/11/24 07:45 by 127.0.0.1

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


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