Author Topic: onSpecificChat  (Read 1720 times)

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!
Thanks as well

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

-snip-


Sorry about the "Fuzzy" image. Btw the end numbers are only to effect dif vars
Wered you get that OnChatMessege event? i tried searching for it but couldn't find it

Wered you get that OnChatMessege event? i tried searching for it but couldn't find it
DelayInputTargetOutputArguments
0[V]onChatMessageSelfVCE_ifValue<var:cl:lastmsg> == jump
0[V]onVariableTruePlayeraddVelocity0 0 25

You can grab onChatMessage from http://forum.blockland.us/index.php?topic=141379.0.

for forgets sake people
Destiny copied and pasted my explanation and everyones thanking him
yes imad

No, there's differences.
In fact, yours would never show the onvariable false message.

yeah you're right mine was faulty

but I thought it was VCE_ifValue not ifVariable
Won't it not work because of that?


Biggest flaw with onChatMessage is it isn't global. I have the same need for some add-on that has onChatMessage, but global. But since I am good at editing scripts shall I edit onChatMessage addon..?

Biggest flaw with onChatMessage is it isn't global. I have the same need for some add-on that has onChatMessage, but global. But since I am good at editing scripts shall I edit onChatMessage addon..?
There's a reason they aren't global.
1) onChatMessage - Client - VCE_ifVariable [lastmsg] [!=] [lol] []
2) onVariableTrue - Player - kill
3) onVariableFalse - Player - kill

another thing, onChatMessage has to loop through every brick in the area to process the input event, so being global isn't a good thing to do.

unless i'm wrong.

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!

If you really want it to seem like you are having a conversation, and not have to type and then click, but click first, use:
0) onActivate - Client - [Hello, I am a brick.]
1) onChatMessage - Self - VCEretrocheck [ifLastPlayerMsg] [==] [Hi]
2) onVariableTrue - Client - ChatMessage [Hello to you too]

For if you want to actually seem like you are having a conversation with a brick.

on this one sking server there's letters that take you to diffrent chat rooms so this wouldn't need a mod