"dot" commands
-
So how does one get the cool using . and ??
OnPLayerChat?
Where might I find that?
-
We use a considerably customized version of this system:
-
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.
-
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?
-
The triple dot is a command, so I'm afraid not.
-
I knever know what
…
means, anyway
-
That would be an ellipsis.
-
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?
-
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.
-
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.
-
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.