- Joined
- Jan 24, 2021
- Messages
- 16
- Reaction score
- 4
- First Language
- English
- Primarily Uses
- RMMZ
I'm trying to do a conditional branch to determine the amount of days in that month
I have my game variables set as:
0001 Day of Week
0002 Week (number of weeks passed)
0003 Month
0004 Day of Month
0003 ranges from 1-12
I know months 1, 3, 5, 7, 8, 10, and 12 have 31 Days
Month 2 has 28
Everything else has 30
So i first wanted to set conditions for the months with 31 days
I thought that
if $gameVariables.value(0003) == [1,3,5,7,8,10,12]
would mean "If the value of variable 0003 is equal to one of these numbers..."
but, I'm not getting that result
I'm very new to java script, so any help would be appreciated!
I have my game variables set as:
0001 Day of Week
0002 Week (number of weeks passed)
0003 Month
0004 Day of Month
0003 ranges from 1-12
I know months 1, 3, 5, 7, 8, 10, and 12 have 31 Days
Month 2 has 28
Everything else has 30
So i first wanted to set conditions for the months with 31 days
I thought that
if $gameVariables.value(0003) == [1,3,5,7,8,10,12]
would mean "If the value of variable 0003 is equal to one of these numbers..."
but, I'm not getting that result
I'm very new to java script, so any help would be appreciated!