Author Topic: [VCE] How do you change variables via chat?  (Read 1294 times)

As in, how would I make it so that if I type in a certain string in the chat, it would modify a variable?
I've seen it done before, so I'm pretty sure it is possible.

They probably used Eval and modified the actual global variable of the VCE variable.

They probably used Eval and modified the actual global variable of the VCE variable.
Yeah, this. It's how I do it.

There's an "onChatEvent" mod

There's an "onChatEvent" mod
you can do it purely with VCE using retroCheck

I believe there is something like lastMsg that you can process as a variable. What is the exact syntax?
Edit: Scratch that, I found out. Except, my events don't work.
« Last Edit: August 02, 2014, 05:13:16 PM by Johnny Blockhead »

I believe there is something like lastMsg that you can process as a variable. What is the exact syntax?
Edit: Scratch that, I found out. Except, my events don't work.

onRelay - Self - VCE_retroCheck - lastChatMsg (or something like that) == '/sanic'

http://forum.blockland.us/index.php?topic=40948.60

this thread contains OnPlayerTalk.  It's what I've always used.