Is there a way to set two or more variables in one click?

Is there a way to set two or more variables in one click? Like when I click action it will set variable A to 1 and variable B to 0? Thanks and God bless!

6 Commentsto Is there a way to set two or more variables in one click?

  1. I do it with a script that looks like this http://i.imgur.com/gepsEZg.png

  2. Can you explain me what’s happening on that script? I think I’m getting to it. Hahaha

  3. The top line sets up a function called “editor” that takes two arguments in both sets of ()’s. You then call the function with a bunch of sets of arguments (variable, value), then at the bottom, store everything you’ve just set up.

  4. So meaning every time you click on that script the variable a and c goes 1 and the others 0? Is that what that code means? 🙂

  5. Yes! sorry, I didn’t realize that that’s what you were asking.

  6. Thank you very much. No no it’s okay. I think I did understand the code a bit because of what you’ve explained. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *