Steam Avatar
You aren't signed in

Command Events

3 KB, 11 years ago, submitted by Mold

Trigger Events with commands!
Say /eventcmd [CommandName] to trigger the event 'onCmd' on all bricks.

(To prevent lag while looping through all bricks to trigger the event, bricks are added to a list when the event is added and removed when the event is removed instead.)

Then, you can choose
onCmd - Self - ifCmd [CommandName] [Restriction Type] [BL_IDs for restrict] [Which events to trigger]
to check whether the entered command is the same as CommandName.
Then, you can choose restrictions.
You have the following:
-Unrestricted (Everyone)
-Same Minigame (Everyone in your minigame)
-BL_ID Allow (Enter IDs in the field to allow them)
-BL_ID Deny (Enter IDs in the field to deny them)
-No Trust (Only people without your trust)
-Build Trust (Only people with your build/full trust)
-Full Trust (Only people with your full trust)
-Distance limit (Everyone within a certain range)

ifCmd triggers onCmdCalled if the command is the same as what you chose...
and triggers onCmdRestricted instead if the command is the same but the restriction failed.


New:
Additional parameters.

Instead of /ec [Command]
You can now also say
/ec [Command] [Param] [Param] [Param] [Param] [Param].

Those parameters get saved to client variables which you can access with VCE_ifValue.
They are
<var:cl:ceparam1> | First parameter
<var:cl:ceparam2> | Next parameter
<var:cl:ceparam3> | Next parameter
<var:cl:ceparam4> | Next parameter
<var:cl:ceparam5> | Last paramter

You can now make awesome things like shops with this!
Example of use: Screenshot 2.

Dimitry
Looks really nice.
Blocky999
Sweet, RTB action.
Counter
/buy Sword
-200 coins removed.
+Sword added!
Icanbreathfire
/eventcmd fireturret1
(turret one fires and kills the other team)
MegaCrazyDerp
Offtopic@dimitry
Will you ever unban me?

Ontopic@events
Sweet! I could use this for an evi-er-free candy machine.
AromaniaFTW
HOLY SHIT.
YOU ARE BRILLIANT.
littlepile
Woooaaah. Bro. Bro. Woah.
Alxetora
I don't get it D:
super kevin
it is not work for me
@super kevin

What exactly does not work?
Anyways I'll put an update later today
super kevin
thanks:)
sniper150
can you do this for like... ANY event? like this which im trying to do: /setclass Heavy
Vergick
@sniper150

Yes, you can. ANY event.
super kevin
IT IS
NOT WORKING
I AM TRYING HARD
AND IT IS REALY NOT WORK
FOR ME
PLZ HELP MY
Rainbow colors made by:super kevin
Magnusson
how do you set the color size and put pictures on you comments and words?
CrazyMan501
I GONNA TRY IT, IF ITS WORK, I WILL... RATE 5/5!!
CrazyMan501
ummm
s
CrazyMan501
NUB
CrazyMan501
HEY
Communist
I was looking for this mod. Thanks!
doonlord13
if im correct dose this bring back the good ol Bl ID access and deny? so i can finally keep ppl out of my house? yes SWEEET ty you so much man
doonlord13
well i liked it but it dosent work with setprint event add-on...so ya still 5/5 though