Author Topic: Event help  (Read 663 times)

Can someone please tell me how to make it so when people do something or click something they get a message or something but cant get it again? I would be very thankful
Thx.

You can use VCE for this.

OnActivate>Player>VCEModVariable Gotten=1
OnActivate>Player>IfVCEVaraibel Gotten=1   3 3
OnVCETrue>Player/Client>.............

If you do not have VCE yet, look for it.

Don't forget to save and load it!

onActivate > Self > VCE_loadVariable {Client} > [FirstTime]
onActivate > Client > VCE_ifVariable > [FirstTime] != [1] [ ]
onVariableTrue > Client > centerPrint > [<color:FFFFFF>One time message] [3]
onVariableTrue > Self > VCE_modVariable {Client} > [FirstTime] set [1]
onVariableTrue > Self > VCE_saveVariable {Client} > [FirstTime]

Don't forget to save and load it!

onActivate > Self > VCE_loadVariable {Client} > [FirstTime]
onActivate > Client > VCE_ifVariable > [FirstTime] != [1] [ ]
onVariableTrue > Client > centerPrint > [<color:FFFFFF>One time message] [3]
onVariableTrue > Self > VCE_modVariable {Client} > [FirstTime] set [1]
onVariableTrue > Self > VCE_saveVariable {Client} > [FirstTime]
There ya go. I also made a mistake in my one... Curse the lack of a modify button.

You can use VCE for this.

OnActivate>Player>VCEModVariable Gotten=1
OnActivate>Player>IfVCEVaraibel Gotten=1   3 3
OnVCETrue>Player/Client>.............

If you do not have VCE yet, look for it.
Thanks guys, but do you want me to use a certain VCE? Im pretty sure i got the latest and its not letting me do  VCEModVariable Gotten=1, theres no gotten button or anything. But ill continue.
thx

Thanks guys, but do you want me to use a certain VCE? Im pretty sure i got the latest and its not letting me do  VCEModVariable Gotten=1, theres no gotten button or anything. But ill continue.
thx

Gotten is what you'd call the variable. So you'd have at the end:

[gotten] == [1]

From what I know, VCE 6 and up should work.

Gotten is what you'd call the variable. So you'd have at the end:

[gotten] == [1]
Im doing a thing as a achivment, and i dont want them to use the thing that earns them their badge and spam with it. They wont get anything, and if they do they we will be allowed to get it again but get no achivment. Theres 1 space when i do varible mod, then a list of comands, then another space. Ill try to ask Zloff because hes good at VCE but i dont under stand what to put in the spaces.
From what I know, VCE 6 and up should work.
Ill try to download then.

I'm good at the VCE. You can ask me questions too. :3


I need help with a similar thing. I have it so you can get something once but not again, but how would I make it so that 2 variables have to be right? It's for a dm, where kills and whether you already have that weapon both count.

Wait, I think I got it. Someone correct me If I'm wrong, but I think that I should have ( I added comments to explain what I believe each line would be for, maybe to help a VCE noob that's reading this)

1. OnActivate > player > VCEifVariable > pistol > less than > 1 > [1 2] (for checking if you already have a pistol.)
2. OnvariableTrue > Client > VCEifVariable > kills>greater than or equal to> 5> [3 6] (checks if you have enough kills.)
3. OnvariableFalse > Client > CenterPrint > You can't take 2 pistol types. (tells you that you took a pistol already.)
4. OnvariableTrue > Client > CenterPrint > You took a pistol. (tells you that you got a pistol.)
5. OnvariableTrue > Player > VCEmodVariable > pistol > set > 1 (goes with the check in the first event, activated if the kill check turns up true.)
6. OnvariableTrue > Player > Additem > Pistol (gives you the pistol, obviously)
7. OnvariableFalse > Client > CenterPrint > You don't have enough kills. (Activated if the kill check turns up false)

Please tell me If this wouldn't work, I tried testing it by making bricks that set the kills to different numbers of kills. Seemed to work fine.

events start at line 0, not 1, but the events have it right (not your way of displaying them)

Okay, and I forgot about events starting at zero >.> I'm just about to test it for real with my sister in a lan party, so then I can be sure that nothing at all is wrong with them.