Encounters determined by a variable

Status
Not open for further replies.

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
616
Reaction score
145
First Language
English
Primarily Uses
RMMZ
I have a time system set up for a portion of my game. I use a variable to represent the current hour said time is. Is there a way to make certain encounters only appear during certain "hours"( i.e. when a variable is a certain value range?)

For example:

When variable is from 10-18, daytime monsters appear, and when variable is from 19-24 and 1-9, nighttime monsters appear.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,070
Reaction score
13,688
First Language
English
Primarily Uses
RMMV
Are you using RANDOM encounters, or are your monsters events on the map?
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
616
Reaction score
145
First Language
English
Primarily Uses
RMMZ
For the most part, random encounters.
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
616
Reaction score
145
First Language
English
Primarily Uses
RMMZ
I got it to work! :D Thanks!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,070
Reaction score
13,688
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,635
Messages
1,015,166
Members
137,306
Latest member
lzh1703
Top