Author Topic: Need Help With a Failed Set of VCE Events  (Read 760 times)

Considering VCE is a meta-scripting language, I thought I'd post it here.

http://tinypic.com/view.php?pic=2dbw5z9&s=6

Thanks, Forums.

While I am not certain what the actual name is, I know for a fact that the variable for the client's last message is wrong. Instead, use the VCE_ifRetrocheck output, as one of its parameters has something you may find helpful. Other than that, there's all there is to say.

Hope I helped. :)

While I am not certain what the actual name is, I know for a fact that the variable for the client's last message is wrong. Instead, use the VCE_ifRetrocheck output, as one of its parameters has something you may find helpful. Other than that, there's all there is to say.

Hope I helped. :)
What do you mean VCE_IfRetrocheck?

Sorry, it's VCE_retrocheck. Instead of using VCE_ifVariable, try that instead. And then, do ifPlayerLastMsg == Wand. I haven't evented in a while, which is why I screwed up, but this is stuck in my memory.

EDIT:

OH GOD, I DIDN'T NOTICE! Your target is client, not self. Change it to self, trust me. You can do everything you can do with a client as your target, plus more.
« Last Edit: April 08, 2013, 11:32:25 PM by childofdarkness016 »

Considering VCE is a meta-scripting language, I thought I'd post it here.
Even if it's a meta-scripting language, this for torque problems.
« Last Edit: April 08, 2013, 11:42:07 PM by Honorabl3 »

Change the first event to onActivate Self VCE_ifValue <var:cl:lastmsg> == wand 1 4

 why does everyone use retro check


For forgets sake people, get with the times

why does everyone use retro check


For forgets sake people, get with the times

It doesn't really matter, does it? It still does the same thing, but it requires slightly less typing.

Here's my expert brown townysis:

Your issue lies on Line 0.

Code: [Select]
OnActivate -> Self -> VCE_ifVariable  ->  "<var:cl:lastmsg>"  ->  ">="  ->  "Wand"  ->  "1 4"

The problem is your output event, VCE_ifVariable. See, that only works for user-defined variables, however, the client's last team message isn't defined by events. Therefore, the correct way to do this event would be:

Code: [Select]
OnActivate -> Self -> VCE_ifValue  ->  "<var:cl:lastmsg>"  ->  ">="  ->  "Wand"  ->  "1 4"
VCE_ifValue is used for all the player, client, global, minigame, and vehicle variables that use vce's tagging system, so you have to use that whenever you check something like <var:pl:health>. Yes, Zeblote answered this question about 3 posts up, but I went into more detail with it so you understand why to use VCE_ifValue.

You're quite welcome!
« Last Edit: April 09, 2013, 06:35:11 PM by Evar678 »