- Joined
- Apr 22, 2019
- Messages
- 3
- Reaction score
- 1
- First Language
- German
- Primarily Uses
- RMMV
Hello, everyone! First time poster here - hope I hit the correct forum for this kind of thread 
I'm having problems getting some code to work. I am an absolute beginner when it comes to using script blocks so I'm terribly sorry if my mistake is one that is totally obvious to you - definitely isn't to me ^^"
This is the part that is getting me headaches in RMMV:
By the time this event runs, the 11th element of Var[3] usually is not equal to 0, meaning "else" code should be carried out. But no matter what value I set my array element to before I activate the event, only the "then" code is carried out while "else" never takes place. Why does this happen? What have I been doing wrong? I tried using === instead of ==, but that does not seem to change the outcome.
Any help is greatly appreciated! Thanks in advance
I'm having problems getting some code to work. I am an absolute beginner when it comes to using script blocks so I'm terribly sorry if my mistake is one that is totally obvious to you - definitely isn't to me ^^"
This is the part that is getting me headaches in RMMV:
Code:
* If: Player is facing Down
* * Script:
if ($gameVariables.value(3)[$gameVariables.value(11)] == 0) {
$gameMessage.add("Ping! Fehler!");
} else {
$gameTemp.reserveCommonEvent(2);
}
*
: End
*
By the time this event runs, the 11th element of Var[3] usually is not equal to 0, meaning "else" code should be carried out. But no matter what value I set my array element to before I activate the event, only the "then" code is carried out while "else" never takes place. Why does this happen? What have I been doing wrong? I tried using === instead of ==, but that does not seem to change the outcome.
Any help is greatly appreciated! Thanks in advance


