Author Topic: ifLastMsg for VCE  (Read 832 times)

I was reading the VCE page and this came up. They said you were supposed to use
input>Client>IfVar:LastMsg==___>_____
But I couldn't get it to work. Is there an actual option I'm supposed to choose or what?

<var:client:lastmsg>

input>self>vce_ifvalue[<var:cl:lastmsg>[== or !=][words/numbers][target events]

input>self>vce_ifvalue[<var:cl:lastmsg>[== or !=][words/numbers][target events]
Hmm... Wouldn't the "self" be checking the brick it was put in as opposed to the player activating the event? Oh well, I'll give it a shot. Thank you for helping

With the VCE_ifValue event, it sends the output to the brick. <var:cl:Test> would check the Clients variable Test, check for whatever you have after that, then send the output to the brick

Ex;
onActivate -> self -> VCE_ifValue -> <var:client:lastMsg> -> Equals -> Hello!
onVariableTrue -> client -> centerPrnt -> You said Hello!

You can change the Self to a other named brick and the onVariableTrue would have to be on that said named brick.

So, if the last said was "Hello!" then would it spam the centerprint or whatever the output was? Or would it just do it once?

it would only do it once as you only clicked it once, if you spam click, it will spam output