Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker VX > Time System Using ONLY Events Pt V (Time Dependent Events)

Time System Using ONLY Events Pt V (Time Dependent Events)


For this tutorial, the variables will be as so:

Day = Var001
Date = Var002
Month = Var003
Year = Var004
Hour = Var005
Minute = Var006
Second = Var007
Season = Var008

Now that you have a parallel process time system, it is time to add some time dependent events. In this tutorial, I will show you how to have:
1) A shop open 9am-6pm Monday-Friday, 9am-5pm Saturday and 10am-4pm on Sunday.
2) A guard on patrol between the hours of 11pm and 5am
3) A cafe closed on Christmas.

1) The shop

Create a door which will lead into your shop (you can use Ctrl, 2 to quickly make a door). Open the event. Before the "Play SE: 'Open1', 80, 100" (which is the default for a door opening), create a conditional branch. This conditional branch will read "Day =< 5" (5 being Friday). Under the yes section, add another conditional branch, which reads "Hour >= 9". Inside this, place another conditional branch, reading "Hour < 18".

THIS TUTORIAL IS CONTINUED IN PART VI (SHOP OPENING TIMES) 
Details
Tutorial: Time System Using ONLY Events Pt V (Time Dependent Events)
Date Listed: 2012-05-22
Author: TheDreamWriter
Total Hits: 1796


Embed
Short URL:

HTML:

BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal