Oh sorry.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Quote from: Zexion on April 07, 2013, 12:45:44 pm
I was actually going to make an evented title demo the other day, but I got lazy and didn't. Now that someone actually needs it I'll do it
I'll put up the demo tonight
Quotewhat do you mean
Make a new file with an .rb extension in the Extensions folder of RMX-OS and copy-paste this script into it.
Quote from: KK20 on December 14, 2012, 07:25:25 pm
In your event (most likely a door), put the first event command to turn a switch OFF (we will use this to determine whether the place is open/closed). Then use a script call and copy something like this:
return if ['Thursday', 'Saturday',
'Sunday'].include?(time.day_name)
return unless (10..14).include?(
time.current_time[1])
$game_switches[ID] = true
Replace ID with the same number as the switch we used at the beginning of our example.
Then, use a conditional branch and, under tab 4, use a script. Write this in the box:
$game_switches[ID]
Again, replacing ID with the switch we are using for this example.
If it's true, then the place is open. Otherwise, it's closed.