Navigation

    City of Arabel

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    "dot" commands

    Scripting
    9
    11
    3695
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      darkelf24420 last edited by

      So how does one get the cool using . and ??

      OnPLayerChat?

      Where might I find that?

      Cola Sane….... is now just a side

      Barakis- Vengeful Coward.

      1 Reply Last reply Reply Quote
      • StrawMan
        StrawMan last edited by

        We use a considerably customized version of this system:

        DMFI Wands & Widgets 1.09

        …Little Gods, In The Spaces Of Spiders...

        1 Reply Last reply Reply Quote
        • C
          COA_Aristos last edited by

          If you are looking to write your own, you need to pull up your module, and go to "Edit" and "Module Properties" and "Events" look for OnPlayerChat. The script specified there will run whenever any text is entered. In that script use the following functions -

          GetPCChatSpeaker() returns (type 'object') the PC who typed the text
          GetPCChatMessage() returns (type 'string') what they typed
          SetPCChatMessage(""); will block what they said from appearing (actually you can make it have them say anything you want in place of what they actually typed)

          So, your script will look something like this -

          void main()
          {
             object oPC = GetPCChatSpeaker();
             string sText = GetPCChatMessage();
             string sCommandParameter;
          
             if (GetStringLeft(sText,9) == ".command ")
             {
                SetPCChatMessage("");
                sCommandParameter = GetStringRight(sText,GetStringLength(sText)-9));
          
             ..... Your Code .......
          
                return;
             }
          }
          

          Note the "9" because ".command " is 9 characters long.

          –----------------------------
          Character - Belir Faethalor (Hellos)
          Character - Pang (smash!)
          Character - Hannan Swift (dead)
          Character - Zacham Nefzen (dead)

          1 Reply Last reply Reply Quote
          • K
            KrodtheMandoon last edited by

            I really do miss the ability to say

            …

            in game.

            Will it be a lot of trouble to modify the script so that we can do that?

            "Vanos my statuesque love! Your little nugget counts the hours until you nibble on him again! I long to be consumed by your bottomless hunger, send for me soon! - Little Nugget"

            1 Reply Last reply Reply Quote
            • Yardsale
              Yardsale last edited by

              The triple dot is a command, so I'm afraid not.

              1 Reply Last reply Reply Quote
              • Lamancha
                Lamancha last edited by

                I knever know what

                …

                means, anyway

                Lamancha

                • Daniel Wintersun PD Scout
                • Ignatius Blake - Mage Guild
                • Sir Jason Ogrebane - Redhart
                • Marin Lightsord - Five Star
                • Radwa al Maloof - Thond
                1 Reply Last reply Reply Quote
                • StrawMan
                  StrawMan last edited by

                  That would be an ellipsis.

                  …Little Gods, In The Spaces Of Spiders...

                  1 Reply Last reply Reply Quote
                  • S
                    SeriouslyTough last edited by

                    So in the description of a Eslipsis. It says a common use would be (-). Does that mean..:

                    Somebody says something stupid. Or irelevent(like this) and I could reply with a.

                    As the only chat?

                    1 Reply Last reply Reply Quote
                    • Elegy of Fools
                      Elegy of Fools last edited by

                      @SeriouslyTough:

                      So in the description of a Eslipsis. It says a common use would be (-). Does that mean..:

                      Somebody says something stupid. Or irelevent(like this) and I could reply with a.

                      As the only chat?

                      You could use an emote.

                      Better a witty fool than a foolish wit. – Feste, 1.5.32 (Twelfth Night)
                      The appropriate response to reality is to go insane. – Phillip K. Dick
                      Life in a box is bett…

                      1 Reply Last reply Reply Quote
                      • M
                        Mortek last edited by

                        WAY off topic kinda, but I've been thinking of dabbling in the scripting but haven't look at it yet. More to the point, from what was posted above, is this basically C++ kinda stuff? Looks a lot like it.

                        1 Reply Last reply Reply Quote
                        • Elegy of Fools
                          Elegy of Fools last edited by

                          @Mortek:

                          WAY off topic kinda, but I've been thinking of dabbling in the scripting but haven't look at it yet. More to the point, from what was posted above, is this basically C++ kinda stuff? Looks a lot like it.

                          It's watered-down, but effectively that's that it's based off of.

                          Better a witty fool than a foolish wit. – Feste, 1.5.32 (Twelfth Night)
                          The appropriate response to reality is to go insane. – Phillip K. Dick
                          Life in a box is bett…

                          1 Reply Last reply Reply Quote
                          • 1 / 1
                          • First post
                            Last post