RPG Maker Times

Smile Game Builder and RPG Maker Tutorials, Plugins, Resources, Windowskins

Smile Game Builder Tutorial #8: Time and Date

SGB Tutorial 8: Time and Date

This tutorial is an overview of the Time and Date function (in the Advanced Variables Option). It demonstrates how you can use and display the local system time in message boxes. The initial intention for this tutorial was a simple calendar system, but due to the nature of parallel events, it wasn’t working as it should. (I recently discovered this and know how to fix it for the actual calendar system tutorial.) Video It’s important to note that the "issue" with adding to the time and it going beyond 24 hours is irrelevant and unimportant. It IS possible to insert an event "subroutine" to check and modify the time/day. Duplicate…

Real Time KTS Mod

This is in answer to Miaucho‘s question (in the comments) about how it would be possible to rename the months to something else and is a followup to the Kylock Time System Script I posted a while ago. While I have an intermediate understanding of RGSS at the moment, I will experiment on my own. That’s how I learn things. Thing is I couldn’t quite figure out how to implement the month array into the time system without encountering a few problems. My mind drew a blank. Anyway, I found the Real Time KTS Mod by accident. This is a modification of Kylock’s, but it’s a very good one at…

Kylock Time System Script

This is in answer to Steve‘s question (in one of the comments), asking if it was possible to place the actual time and date into separate in-game variables. Short answer is “Yes, it is!” I’m still working on my full calendrical system script, but the best time system that I’ve found is this one: This video shows how to use the demo script, downloadable here. Alternatively, the “original” forum post goes into much more detail.

Time/Date Formats

In yesterday’s entry, System Time/Date Script, I showed how to use the built-in Time function to display the current (system) time and date. To change format, the strftime method has a number of options available. Its basic format is strftime(format) where format is the format string to be used, which may be specified with the following: %A – Full day of the week (Sunday, Monday, etc.) %a – Abbreviated day of the week (Sun, Mon, etc.) %B – Full month (January, February, etc.) %b – Abbreviated month (Jan, Feb, etc.) %c – Current Date and Time (system clock format) %d – Day of the month (01-31) %H – Time of…

System Time/Date Script

RMXP and RMVX has a built-in Time function that allows the display of the current date and time (based on the system clock). I found this by accident while sifting through the Help file – actually while searching for Bitmap and Sprite management – and after some experimentation discovered how to place it in windows. To use it, there are two functions to be aware of: Time.now This reads the current time and date from the system clock. strftime(“%I:%M:%S %p”) This converts the time into a string, using the time of day (in 12-hour format), minutes and seconds, as well as showing AM/PM. So to add the time and date,…

Categories

Archives

Hi-Tex House Pack Vol. 1

For Smile Game Builder

The Hi-Tex House Pack Vol. 1 contains 297 assets: 284 house wall terrains and 13 models. Get your copy for only $5!

Sponsored Ad

Sponsored Ad


Follow me on Twitter

© 2008-2018, Companion Wulf. All Rights Reserved.