Author Topic: onSpecificChat  (Read 1726 times)

I don't know if something like this was made, I've searched and there was nothing I could find.

onSpecificChat relies on the player typing and saying something that is relevant to what the event was named (Don't know how to explain better)

Like this:

onSpecificChat - "Hi there, bot!" - Client - ChatMessage:"<color:FFFFFF>Hello, <color:FFFFFF>%1<color:FFFFFF>! How are you today?"

And the event would only start if the brick with the event on it has raycasting, for obvious reasons.

So... an event that will trigger when someone says the same "trigger word(s)" that are put into the event? I like it.


Dragon shouts... skyrim @o@

So... an event that will trigger when someone says the same "trigger word(s)" that are put into the event? I like it.

Yes.

Oh that can be done with VCE and onChatMessage

Oh that can be done with VCE and onChatMessage

I don't know the first thing about VCE and onChatMessage triggers when any chat message is displayed.

Ive done this with VCE and the Onchatmessage
I don't know the first thing about VCE and onChatMessage triggers when any chat message is displayed.
With VCE you can make it only display to certain words I can post a pic later just not now

onSpecificChat - "Hi there, bot!" - Client - ChatMessage:"<color:FFFFFF>Hello, <color:FFFFFF>%1<color:FFFFFF>! How are you today?"
Bolded the problem, considering you can't do that with events.
There is no place for input event parameters, as cool as that would be.

Wait, what are you saying Chrono?
Because you can do this:

OnSpecificChat - "Hi there bot!" - Self - FireRelay
OnRelay - Client - ChatMessage:"<color:FFFFFF>Hello, <color:FFFFFF>%1<color:FFFFFF>! How are you today?"

It's still viable, despite the fact that you can't use relays for other stuff and the event would be confined to a brick.
The latter would probably introduce some abusivity though...

K here teh image You can get a good idea on how to do this




Sorry about the "Fuzzy" image. Btw the end numbers are only to effect dif vars

Wait, what are you saying Chrono?
Because you can do this:

OnSpecificChat - "Hi there bot!" - Self - FireRelay
OnRelay - Client - ChatMessage:"<color:FFFFFF>Hello, <color:FFFFFF>%1<color:FFFFFF>! How are you today?"

It's still viable, despite the fact that you can't use relays for other stuff and the event would be confined to a brick.
The latter would probably introduce some abusivity though...
That's even more forgeted than what I said was wrong because you're having onRelay target a client.

It doesn't address the problem I pointed out.

And the event would only start if the brick with the event on it has raycasting, for obvious reasons.

I guess these reasons aren't so obvious...? Why would it need raycasting?

I understand the problem chrono is specifying

You cannot define a variable in the first column in the event menu.

0) onActivate - Self/Player - saidSpecificChat [line of text] [event to goto]
1) onSpecificChat - do w/e

now in context


0) onActivate - Self/Player - saidSpecificChat [Hi there bot!] [1]
1) onSpecificChat - Client - ChatMessage:"<color:FFFFFF>Hello, <color:FFFFFF>%1<color:FFFFFF>! How are you today?"
2) onSpecificChat - Client - ChatMessage:"<color:FFFFFF>No, <color:FFFFFF>%1<color:FFFFFF>, forget you!"

The above example would run the first onSpecificChat as the number 1 line is selected.
All of this is easy as forget with VCE.


0) onActivate - Self - VCE_value [var:cl:lastmsg] [==] [Hi there Bot!] [1 1]
1) onVariableTrue - Client - ChatMessage:"<color:FFFFFF>Hello, <color:FFFFFF>%1<color:FFFFFF>! How are you today?"
2) onVariableFalse - Client - ChatMessage:"<color:FFFFFF>Hi there!<color:FFFFFF>...<color:FFFFFF>Well forget you! You didn't even say hi to me!

I just don't know how to use VCE, but thanks for explaining to me! :D

Don't complicate things for him seeing as he's new to it, you can just do:
0) onActivate - Client - VCE_ifVariable [lastmsg] [==] [Hi there Bot!] []
1) onVariableTrue - Client - ChatMessage:"<color:FFFFFF>Hello, <color:FFFFFF>%1<color:FFFFFF>! How are you today?"
2) onVariableFalse - Client - ChatMessage:"<color:FFFFFF>Hi there!<color:FFFFFF>...<color:FFFFFF>Well forget you! You didn't even say hi to me!