Problem with global clock

Im trying to script a global clock for my game.

http://gyazo.com/224c73541940d4547ffd209e37937d8e

this is the event I created for it.

I then created a key item called a wrist watch that the player can use at any time, that will display the time.

http://gyazo.com/678f869716735f6e3c6a1da54812650c

and at certain times I set it up so that my main character will go into her "vampire form" and her portrait changes while giving her a permanant buff while she is in this form.

http://gyazo.com/fa4eadd4052d5417446a1df8b4021d51

I can't seem to get any of it to work,

the time will display from the item, but the time is not counting, and if I try to set the process at the start of the game, it simply freezes.
You are not scripting. You are eventing. Make sure you use the correct terms, as those two words have VERY different meanings.

It's a bit hard to confirm, because you've got a popup dialogue covering the most important event commands there, but it LOOKS like you are changing the wrong variable (or changing the right variable, but at the wrong time).

You are adding 1 to HOURS and then setting HOURS to 0. The += 1 therefore has no effect.

It looks like you're doing the same to MINUTES and SECONDS - you increment them, then immediately set them back to 0.

Time will never move forward.

Your logic sequence is not quite right. It should be something like this:

Code:
Seconds += 1If Seconds >= 60  Seconds = 0  Minutes += 1  If Minutes >= 60    Minutes = 0    Hours += 1    If Hours >= 24      Days += 1      Hours = 0      ... and so on    End  EndEnd
No im setting it to start from 0, and go to 59 then repeat by adding +1 to the next variable, and resetting the previous variable to 0 once it does.

That is event script inside that common event threshold no? Sorry if that is an oversight, I think of coding != scripting since I take programming classes.

with yours I will have 25 hours. 61 seconds, and 61 minutes.

(Rather it would display something like 25:60:60 which isnt what I want the time to look like  since time irl would stop at 23:59:59: and reset to 0:00:00. Yes?

(I think at least since I am using greater than or equal too but the popup likely blocked that )

(I was looking to see if there was a way to hard code a clock directly in the game and have it display on the character main screen like next to where currency is displayed, this was the faster/temp fix route that I thought of.

The time clock is displaying fine, at least from the item that I set it too.

I cannot get a process to run it though.

The wrist watch item is displaying it correcting.

The problem is the time is not COUNTING in real time.

As in I set it at the start of the game for 20:50:00

http://gyazo.com/29c56d9119ff2b114a2275dd25dfe37b

It displays as I set it.

It just does not count.

Basically the clock is not running, the time is "idle"

I didn't need help with the event script.

http://gyazo.com/c153928909eaea14f7e6540a8ecbce26

Didnt see the popup thing show up while I was segmenting the screenshot.

I tried to run it as a switch at the start of the game, but it conflicted with the auto run sequence I have set up for the intro.  When the switch is set to "on" the auto run freezes. Basically nothing happens with the intro screen pulled up.

http://gyazo.com/e4410fa182677b0e3431d45c2b05f8d5

that freezes the autorun intro.

I assigned it to a differnt event at the start.

It crashes the event, but the game is still playable, its like it erases the event by being turned on. (The game itself does not crash)

So what is wong?

If you need any other information please let me know.

Thank you for the reply! 
Look at your screenshot again. What I said is EXACTLY what the problem is.

Control Variables [HOURS] += 1Control Variables [HOURS] = 0You have no condition there after incrementing it to determine whether to set it back to 0 or not. Therefore if that condition is ever met, it will be incremented and then immediately set to 0. What you are seeing - time does not progress - is EXACTLY the symptom I said this issue would cause - the seconds are being incremented and then immediately being set back to 0 before you even see the increment.If you add 1 to the minutes variable and immediately check to see if it's 60 or more, and if it is, set it back to 0, then at no point in your game will you see it as 60 or 61.

If you don't need it to run at the start of the game, don't try and make it. Why add extra issues and complexity when you don't need to?

It comes down to this - if you can't get it to work and you want to ask for help, at least be prepared to try the suggestion offered. I do have a tad more experience. Just trust me. I actually DO know what I'm talking about 😉
http://gyazo.com/f790e8206cfe6014f910e1fe13680bc1

Like this?

Time still doesn't move.

I need the time to start very early since the very start of the game is a "buy time till vampire hour" 

Ive done this for a few years, I just havent in a while so Ive lost all the memorization with the eventing process and its different between the one I was using, and this one.

Again, thank you for reply.
Almost. But you really DO need to make it 60. Otherwise it's going to count up to 58 then go back to 0. Remember, you don't see what it looks like between the increment and the reset to 0.


Are you CERTAIN that it's not incrementing? Hit F9 while the clock is active and see if those variables are changing. Is your switch 100 turned on to activate the parallel process? If turning that switch on interferes with your intro autorun event, it may be that you're using the same switch for multiple purposes (this often happens when people add scripts to their game and don't take the time to configure the switches/variables used - though I'd be surprised if any script you've downloaded from somewhere uses switch 100 by default, unless you've changed it)


Other things to note - not related to the issue, just to keep in mind...


Also, because it's a parallel process common event, you don't need to put the whole thing into a loop. It will loop by default.


Another thing that won't affect what it does, but just makes it easier to read, is that when you have a conditional branch, if you don't want to put anything in the "else" block, just uncheck that box.
It works for me http://s280.photobucket.com/user/TechnicalFox/library/RPG%20MAKER%20VX%20ACE?sort=3&page=1
The code is right, but the clockstart event is not independently running.

Where should I run the event so it starts?

Im trying to link a player buff associated with night time with another global event.

It works when I manually start it from the F9 list.

also I don't see a way to "uncheck" anything for the "else" conditioning. 

Are you CERTAIN that it's not incrementing? Hit F9 while the clock is active and see if those variables are changing. Is your switch 100 turned on to activate the parallel process? If turning that switch on interferes with your intro autorun event, it may be that you're using the same switch for multiple purposes (this often happens when people add scripts to their game and don't take the time to configure the switches/variables used - though I'd be surprised if any script you've downloaded from somewhere uses switch 100 by default, unless you've changed it)

It will increment when I MANUALLY F9 and turn it on. 

Even when I set an event switch to turn it on, it simply doesn't turn the damn thing on. Frustrating.

There is nothing that I am using in the game script that uses switch/var 100. 

Funny thing, if I set the switch to "on" in the intro, the intro isn't running. but if I go to the F9 menu and (It is STILL not turning on ) turn the clockstart to ON, the intro runs fine.

http://gyazo.com/92e4ac1a1a2721a4d09ddb8d62eb418b

[edit]

FIXED.

My mistake was trying to turn the switch on in the event processing to the left, instead of double clicking the event page and going to control switches and turning it on there.

Oppps my bad there I knew I was doing something wrong!

thanks everyone for their help! <3

now if I can just get a weather/day/night tint transition to work 😀 haha.
ahahaha! Always a simple solution, but boy, it took a long time to find!


Of course, you understand what the switches on the left of the event page are for? They are the conditioning switches that help determine what page is active. They look at the switches and act depending on their value, but they don't change them 🙂


Onward! 😀
It took about an hour in actuality. I had to sleep early then work a 10 hour shift, then when I got home I figured out what was wrong.

I then got my other global events working CX

I appreciate your help, any other advice you'd like to pass me?

Me and my girlfriend are vampire cosplayers and Roleplayers, So I sorta am making this RPG based on her roleplay character for LARP.
You can get LOTS of good advice here, but you usually need to start with a question first, otherwise it'll just be a "spew out everything we know" and you'll be overwhelmed 🙂


As for the "tips" I gave you above, no matter how long you use the engine, you will always be discovering new/easier/better/other ways of doing things. When you do, resist the urge to go back and change things that are already working, unless they have issues, or you'll never get your game done 😉
Most of what I need to know I tend to research up on my own unless I can't find anything is when I post about it. Its usually a last resort for me.

I only have 10 maps completed xD I'll be busy with this project for a long time. The most time consuming part is actually enemy creation/editing/testing. You have to know how strong your players characters are going to be, what gear is available to them, and the level/stats they will likely have when creating the monsters. Thats the biggest time consumption part that I have noticed. Making the map layouts isn't that hard. 

Good thing tho I added a feature that helps with this a little.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-global-clock.40171/