Author Topic: CMD-Triggered Events  (Read 1240 times)

so, what if there was an event input (as in, something along the lines of onActivate, onContentStart, etc) that listened to and defined a specific slash command arguement (maybe something like /event command) that, when this command was entered in chat by an appropriate person (defined in the event output?), returned positive

another input, onCalled, would be started up whenever this particular brick's /event command was used and would cause the brick to actually do things, like set up racing lights, or open doors



sort of like a verbal remote control.

i feel like there's a better way to go about this. if so, do not hesitate to tell me

sounds like it would require input parameters.

Would it be custom /command like /start race or a certain one like /announce go

Well, hopefully this isn't like not what your trying to say, but if so please correct me.

To me a much easier way of doing it would be one main input event such as OnCommandCalled or whatever
With that input you can use the output of IfCommand and the parameter's could be an equal or not equal dropdown, then a text box with whatever you the command is

an example so far of correct usage:

OnCommandCalled -> Self -> IfCommand [==] [help]

Then another input would be OnCommand which would check if OnCommandCalled was true, and allows you to do things based on if it's true or not.

If this is what is being said, then I fully support.

OnCommand and OnCommandCalled in the above example should be switched though

Well, hopefully this isn't like not what your trying to say, but if so please correct me.

To me a much easier way of doing it would be one main input event such as OnCommandCalled or whatever
With that input you can use the output of IfCommand and the parameter's could be an equal or not equal dropdown, then a text box with whatever you the command is

an example so far of correct usage:

OnCommandCalled -> Self -> IfCommand [==] [help]

Then another input would be OnCommand which would check if OnCommandCalled was true, and allows you to do things based on if it's true or not.

If this is what is being said, then I fully support.

that is exactly what i'm saying, so yeah

so, what if there was an event input (as in, something along the lines of onActivate, onContentStart, etc) that listened to and defined a specific slash command arguement (maybe something like /event command) that, when this command was entered in chat by an appropriate person (defined in the event output?), returned positive

another input, onCalled, would be started up whenever this particular brick's /event command was used and would cause the brick to actually do things, like set up racing lights, or open doors



sort of like a verbal remote control.

i feel like there's a better way to go about this. if so, do not hesitate to tell me


VCE.

Once you're finished looping the Relays, do Retrocheck>Ifplayerlastmessage> (I think player refers to the brick's owner, or output parameters ask for the player's name) [MESSAGE HERE]


Then Onvariabletrue >blablabla>blablabla>blablabla


Other tahn this we can ask Red_Guy how in his Unlimited Mining /help /help1 /help2 and /help3 work.
« Last Edit: August 01, 2012, 12:07:45 AM by Duhman115 »


VCE.

Once you're finished looping the Relays, do Retrocheck>Ifplayerlastmessage> (I think player refers to the brick's owner, or output parameters ask for the player's name) [MESSAGE HERE]


Then Onvariabletrue >blablabla>blablabla>blablabla


Other tahn this we can ask Red_Guy how in his Unlimited Mining /help /help1 /help2 and /help3 work.
We don't want ugly relay loops.
Bah.

Btw, /help[1,2,3] are a simple servercmdhelp that just message the client.
No brick has to do anything together with them.



Hmm
How do we know on which bricks to trigger the event?
We don't want to loop through all of them, aka LAG

Package servercmdaddevent with a simple check to add the brick to a list when the input event is onCommandCalled



If noone is already making this, I'll do it
« Last Edit: August 01, 2012, 05:28:33 AM by Mold »

Shall it trigger the event on the CLIENTS bricks, or on ALL?

Add-on finished, submitting to RTB / uploading here when back on my laptop, ~ in 1 hour


Hey Mold,
I just wanted to say this really quick.

I love you.

Hey Mold,
I just wanted to say this really quick.

I love you.
<3