I would love some help with a Script

Hi, I've been using RPG Maker VX Ace for quite a while now but I've never really used many scripts and since I can't get a thing to work with out the scripts, maybe you guys could help me out with this one.


Ok, what I'm trying to do is almost like a Conditional Branch but much bigger, instead of beeing "Conditional Branch (if switch[1]) = On, Then) I'm trying to do it with 8 switches at the same time like, If switches 1,2,3,4,5,6,7,8 = on then that happens.


Is it possible? If yes please help me out.
You don't really need script for that, you can just make CBranch if switch is on then CBranch if switch is on then CBranch if switch is on then CBranch if switch is on then etc. it's little bit awkward if you have some ton of switches, but I think that if you haven't more than 15, it won't take much time nor space.


Example of manual CBranching:

Spoiler
nhWLy5p.png
Tou can do this with a script code in condition, like:

$game_switches[1] == true && $game_switches[2] == true && $game_switches[3] == true

Or using command events. Its a more conventional method, putting a condition "within another"
Any problem, send me a message. Your language is portuguese, it's easier of I explain you.
I've tried Both ways you guys told me and yet none has worked out.


And King Gerar, if you want you can answer me in Portuguese if it's easier for you.
@miguelsacas Then you made a mistake, because both ways should work - can you give us a screenshot of your sequence?


However, in case of KingGerars answer, it would be better to write it as follows:


($game_switches[1] == true) && ($game_switches[2] == true) && ($game_switches[3] == true)
Ok it worked now, the mistake that I made in the Scripting was the "octal numbers" and i went searching and I found out that I should not make "switch[0687]" but I should make "switch[687]".


Resuming, I didn't knew you couldn't place zeros on scrips.


Thanks to everyone that answered and sorry for the inconvenience.


.
Uhm, hi again, I've been looking everywhere but I can't find this anywhere, hope you guys can help me 1 more time ^^" it'll be the last I promise.


So I'm having a tiny problem with the events properties in a double block chair or a chair template (don't know what to call it), if I place it on Below Character this happens Screenshot_2.pngScreenshot_3.png but when I place it Above Character this happens Screenshot_1.pngScreenshot_4.png. Is there any way to make an event have a double property?in order to make it like this Screenshot_1.pngScreenshot_2.png staying behind the chair and the chair not eating half of the characters head.


Sorry again for beeing a bother and thank you for your time ^^".
Try this. You may use on top tile of the chair.
King that scrip is always giving me an error -> Screenshot_1.pngignore the ### n the window, that's the game title... and i'm using this script you gave on the previous post - > http://pastebin.com/raw/eMy52RAH
Ahhh, sorry. I give you a plugin link, to RM MV. I forgot that you use Ace. ^^'
Here the script link to VX Ace. It's similar, anyway.
Not to be a pain in the back but, it's still the same o.o as if i didn't had the script at all -> Screenshot_2.png
oh!? I'm sry and thanks for all the help but I figured it out by my self, it seems I did not even needed a script.Screenshot_3.pngchanged the priority to Same as Character and ticked the Through box now I have the double property I wanted.


Thanks again for all the help and good bye :3
miguelsacas, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you need to add something and the last post is yours, please edit it instead.


Also, do not continue to ask new, unrelated questions in the same thread.  One question/subject per thread, and the thread gets locked when the question is answered.


A comment on the original question ... you don't have to do $game_switches[1] == true - that is the "long" format.  You can just do $game_switches[1] instead, which gives the same results (true if the switch is on, false if the switch is off).  It's a shorter version to type, and some of the editors only allow a limited space.


Anyway, since both questions have now been answered, I'm going to lock this.  Next time, please post separate topics for unrelated questions.

Original thread: https://forums.rpgmakerweb.com/threads/i-would-love-some-help-with-a-script.55749/