Author Topic: Variable/Conditional Events (V.4)  (Read 61494 times)

Variable/Variable comparisons would be nice (for example, var1 == var2), although I suppose that could fall under the category of performing arithmetic on two variables.

Also nice would be more output events mirroring regular events that take numbers as input, but accepting variables instead.

Amazing this update shall be. :D

You think you can Add an OnTouching event or something like that.

Variable/Variable comparisons would be nice (for example, var1 == var2)
I have this done, I just have to fix a few other bugs.
Also nice would be more output events mirroring regular events that take numbers as input, but accepting variables instead.
The problem with this would be too many outputs, and replacing the originals would screw up saving.


You think you can Add an OnTouching event or something like that.
What do you mean?


Output's
Brick Variables - All the same things you can do with player and client, only you can use them with bricks too.
CntrPrintVariable - Shows the variable value in center print.
BttmPrintVariable - Shows the variable value in bottom print.
ChatMsgVariable - Shows the variable value in the chat box.
These will be:
Client>displayVariable>Client or player, method (Center/bottom, chat, message box), time in seconds for prints, variable.
Self/<NAMED BRICK> > displayVariable>method(center/bottom, chat, message box), time in seconds for prints, variable.

All the brick variables are the same as client and player, but with an extra.
This is addVarToVar, which will allow you to add a variable to another.
Self/<NAMED BRICK> > target (client, player, brick), target variable, other target (client, player, brick), other variable.
This also includes subVarFromVar and SetVarToVar, which work the same way.
However those are bugged, and need to be fixed.
« Last Edit: September 02, 2008, 08:40:49 PM by Chrono »

Like a button that toggles so when someone is touching it then brick is activated and when they get off the event it is not activated.
Example: someone stands on a plate that makes a brick Green but when there not standing on it, it's red

Or would that belong in a separate add-on.


Like a button that toggles so when someone is touching it then brick is activated and when they get off the event it is not activated.
Example: someone stands on a plate that makes a brick Green but when there not standing on it, it's red

Or would that belong in a separate add-on.

This already exists in the game.
on>0>OnPlayerTouch> do stuff
on>500>onPlayerTouch> turn stuff off

and when they get off, the 0.5 second timer will kick in and shut it off.

This already exists in the game.
on>0>OnPlayerTouch> do stuff
on>500>onPlayerTouch> turn stuff off

and when they get off, the 0.5 second timer will kick in and shut it off.
I didn't know it could work like that.

Wow, I found out what the bug was. I was missing a few : signs.


It's a v2 bug. Don't worry if you have v1.1. :D

Okay, I fixed all the problems, now I just gotta get this to Destiny so he can add his stuff, then post it.

>:O
Wake up dest before I kick your dog!

I love these. Another quality event.

It's a v2 bug. Don't worry if you have v1.1. :D

Okay, I fixed all the problems, now I just gotta get this to Destiny so he can add his stuff, then post it.

Send them to me now. My comp was stuffting itself so I had to give it a break :P.

Bump:
Change Log
Version 2:
  • ifVarToVar
  • addVarToVar
  • subVarToVar
  • displayVariable
  • setVarToVar