Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

2 Pages V  < 1 2  
Reply to this topicStart new topic
> [Eventing]Extremely Simple Day/Night, For those who dont want it to be complicated
Rukiri
post Nov 21 2008, 04:05 PM
Post #21


emerge -avt awesome! Wait... it brings me.... HERE?!
Group Icon

Group: Revolutionary
Posts: 1,717
Type: Scripter
RM Skill: Advanced




Not bad at all, but you should go by a 24hr clock"not real time... that'd be forever"

Example.

Seconds =
CODE
var[001] Seconds + 1

wait 2 frames
condition brach
if var[001] Seconds >=60
var[001] Seconds = 0
var[002] Minutes = [001] + 1
ende case
wait 2 frames
if var[002] Munutes >=60
var[002] Minutes = 0
var[003] Hours = [003] + 1
end case
wait 2 frames


Just a clock timer, works great, but if you're going by real time, you need to have a wait 60; at the end of the event because 60/60=1 second;


__________________________
Xeilsoft
- Follow your dreams to the very end..

Kits that I'm working on.
[Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.

Main PC
Core i7 3820 overclocked @ 4.8GHZ
Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB
Asrock X79 Extreme9 w' creative sound
64GB corsair platinum @ 1600MHZ
Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD.
Rosewill Lightning 1000W PSU
OS: Funtoo Linux, Windows 8 (Virtual Machine)

iMac (March 2013)
3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz
16GB 1600MHz DDR3 SDRAM - 2X8GB
1TB Serial ATA Drive @ 7200 rpm
NVIDIA GeForce GTX 680MX 2GB GDDR5
Go to the top of the page
 
+Quote Post
   
Nuque
post Nov 22 2008, 05:13 PM
Post #22


Level 8
Group Icon

Group: Revolutionary
Posts: 118
Type: Developer
RM Skill: Skilled




I updated it, and now it is a lot less clogged up.

Achilles had said that lots of people have their own huds, so I created a Window_PlayTime edit that shows my time variables.
Now you dont need a hud anymore!

Also Mystic, I dont completely understand everything you said. Do you mean that you want times like 17:00 or 23:20? I had that before, and now I have AM/PM. It doesnt show AM/PM, but there is a variable for it, so that there is a difference between 3:00 in the morning or night. Like this:

At 3:00 in the morning, var Hours is 3 and var AM/PM is 1

At 3:00 at night, var Hours is 3 and var AM/PM is 2

EDIT: Also is 'Mystic' a DBZ reference? Meaning Gohan's form in the end of the Buu Saga? I like DBZ too, bro

This post has been edited by shantanu: Nov 22 2008, 05:22 PM


__________________________
[Show/Hide] Koushaku Productions

Current Koushaku Productions Members:
2
Current Koushaku Productions Projects: 3
Go to the top of the page
 
+Quote Post
   
Rukiri
post Nov 22 2008, 11:29 PM
Post #23


emerge -avt awesome! Wait... it brings me.... HERE?!
Group Icon

Group: Revolutionary
Posts: 1,717
Type: Scripter
RM Skill: Advanced




Yea, it's a reference.


__________________________
Xeilsoft
- Follow your dreams to the very end..

Kits that I'm working on.
[Unity3D 4.0] LTTP/Minish Cap - I don't have time for custom gfx like what the pze folks are doing but I will try and work on some enhanced LTTP graphics.

Main PC
Core i7 3820 overclocked @ 4.8GHZ
Galaxy: Nvidia Geforce GTX 680 GDDR5 2GB
Asrock X79 Extreme9 w' creative sound
64GB corsair platinum @ 1600MHZ
Muchkin 128GB SSD(boot), OZKIN 2TB SSD, Western Digital GREEN 1TB HDD.
Rosewill Lightning 1000W PSU
OS: Funtoo Linux, Windows 8 (Virtual Machine)

iMac (March 2013)
3.4GHz Quad-core Intel Core i7, Turbo Boost up to 3.9GHz
16GB 1600MHz DDR3 SDRAM - 2X8GB
1TB Serial ATA Drive @ 7200 rpm
NVIDIA GeForce GTX 680MX 2GB GDDR5
Go to the top of the page
 
+Quote Post
   
IchigekiHissatsu...
post Dec 8 2008, 07:47 AM
Post #24


Level 1
Group Icon

Group: Member
Posts: 14
Type: Event Designer
RM Skill: Beginner




QUOTE (-Mystic- @ Nov 21 2008, 04:05 PM) *
Not bad at all, but you should go by a 24hr clock"not real time... that'd be forever"

Example.

Seconds =
CODE
var[001] Seconds + 1

wait 2 frames
condition brach
if var[001] Seconds >=60
var[001] Seconds = 0
var[002] Minutes = [001] + 1
ende case
wait 2 frames
if var[002] Munutes >=60
var[002] Minutes = 0
var[003] Hours = [003] + 1
end case
wait 2 frames


Just a clock timer, works great, but if you're going by real time, you need to have a wait 60; at the end of the event because 60/60=1 second;


Um i know that im not that great at this but i wana take a shot at it, lets see if i understand what this script does, every 60 seconds it turns into 1 min, but also restarts the seconds clock, right???? and the same with minutes and hours??? that way after 12 hrs itll be nite and then day again???


__________________________
IcHiGeKiHiSsAtSuShInIgAmI
Go to the top of the page
 
+Quote Post
   

2 Pages V  < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 06:41 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker