Jump to content
Vlue

Advanced Game Time

Recommended Posts

Oh I see what the problem was I think it was placing whatever the month was with the minute I believe and if I am wrong oh well it works hurray.

 

Edit:

I tried setting the blinky dots to true but it doesn't work and I have tried on 2 different computers oh well also what do you mean reserve time? And is their a way to make an internal battery I believe it called to where it will keep time flowing even when the game is not on. is turned off? Like in pokemon games I guess is the best reference off the top of my mind.

Edited by Letsgo12

Share this post


Link to post
Share on other sites

Im curious, how do you use the reverse time? Also, I noticed in the script, something about variables for seconds and minutes. Is that part of it and if so, how do I use it?

Share this post


Link to post
Share on other sites

Oh I see what the problem was I think it was placing whatever the month was with the minute I believe and if I am wrong oh well it works hurray.

 

Edit:

I tried setting the blinky dots to true but it doesn't work and I have tried on 2 different computers oh well also what do you mean reserve time? And is their a way to make an internal battery I believe it called to where it will keep time flowing even when the game is not on. is turned off? Like in pokemon games I guess is the best reference off the top of my mind.

 

Only reason I can see blinkymcblinkydots not working is if you're using a custom clock?

I'm sure there is a way to do the battery thing, we'll find out someday!

 

 

Im curious, how do you use the reverse time? Also, I noticed in the script, something about variables for seconds and minutes. Is that part of it and if so, how do I use it?

 

GameTime.set("remmin", 50) would reverse time by 50 minutes

GameTime.set("remday", 2) would reverse time (and day of the week) by two days

 

The variables for seconds and minutes don't have anything to do with reverse time

Share this post


Link to post
Share on other sites

Im curious, how do you use the reverse time? Also, I noticed in the script, something about variables for seconds and minutes. Is that part of it and if so, how do I use it?

 

GameTime.set("remmin", 50) would reverse time by 50 minutes

GameTime.set("remday", 2) would reverse time (and day of the week) by two days

 

The variables for seconds and minutes don't have anything to do with reverse time

 

You should consider changing the name of this script to Perfect Game Time because this script is considered 100% perfect now and pure awesome! Now, if only I can get one other bug, not related to this script solved, I can be able to continue work on my game. By the way, because of all the nice work you have done for all of us, not only will you have a special thanks in my game's credits, but Im going to add you in my game too! Consider it as my personal way of saying thanks.

  • Like 1

Share this post


Link to post
Share on other sites

Im sorry about the double post, but I did manage to find a bug. Yes, I do know about the edit button, but I just didnt want to ruin the nice comment I mentioned to Vlue earlier. Anyways, I found that if you are at 12 midnight or around any time where the hour is 12 AM, if you go back an hour, the game crashes. Im sure it would be a small fix for our buddy, Vlue.

Share this post


Link to post
Share on other sites

Well that's good, because I'm not notified if you just edit a post and wouldn't respond until someone does post something new or mentions it!

Anywho, new version that fixes that, whee.

Share this post


Link to post
Share on other sites

Well that's good, because I'm not notified if you just edit a post and wouldn't respond until someone does post something new or mentions it!

Anywho, new version that fixes that, whee.

 

It still crashes. Heres the error.

 

Script 'Advanced Game Time + Night/Day v1.2.3' line 454:

NoMethodError occurred.

 

undefined method 'red' for nil:NilClass

Share this post


Link to post
Share on other sites

Yah, that's the one I swore I fixed! Try grabbing it from the pastebin again (Updated a line)

Share this post


Link to post
Share on other sites

Yah, that's the one I swore I fixed! Try grabbing it from the pastebin again (Updated a line)

 

Its fixed. :D Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

You can use conditional branches! They have a script box option and if you put oh say...:

GameTime.hour? > 21 or GameTime.hour < 6

Then the branch will only activate when the time is between 9pm and 6am!

Share this post


Link to post
Share on other sites

Hey Vlue is there any way i could do a conditional branch like that, only with days of the week? like....

GameTime.day_week? = sunday

Sunday switch = on

saturday switch = off

Branch end

 

something like that?

 

Thanks,

 

-T

Edited by trogador2005

Share this post


Link to post
Share on other sites

Yah, dayweek is an integer and not a string, so GameTime.dayweek returns a number based on the current day (0 = sunday, 1 = monday, etc)

Share this post


Link to post
Share on other sites

Not quite sure I know what you mean.... so like...

Conditional branch Script:GameTime.dayweek = 0

all the crap i want

Branch end?

 

-T

Share this post


Link to post
Share on other sites

good lord Vlue!

i've been creating my project for years now and i haven't actually included any scripts from outside sources so far. you have some great stuff and i can't help but want to use it...i may break down and include a few of your scripts.

 

p.s. is this particular script still free for non-commercial games?

  • Like 1

Share this post


Link to post
Share on other sites

good lord Vlue!

i've been creating my project for years now and i haven't actually included any scripts from outside sources so far. you have some great stuff and i can't help but want to use it...i may break down and include a few of your scripts.

 

p.s. is this particular script still free for non-commercial games?

 

All my scripts are free for non-commercial use, always. That will never change.

As it does say in my signature though, I would like to hear from anyone who releases a game, commercial or not, that uses my scripts, because I like to check them out.

  • Like 1

Share this post


Link to post
Share on other sites

if your scripts find their way into my main project i will personally PM you a link.

 

i feel like we have common interests in our needs. i really take to your scripts because they seem like they do exactly what i need and never have extra bulk that i find useless. everything seems to be relative, thought out, and coded well. you're a good RM programmer in my opinion.

  • Like 1

Share this post


Link to post
Share on other sites

Hey there, sorry to post again so soon but I'm using Khas and I cant seem to get the tint to pause with the "@<Comment: GameTime.pause_tint = true" command to work.

if I put notint in the map notes the tint turns off but then i can't set my own tint on the map. am I doing something wrong?

 

-T

Edited by trogador2005

Share this post


Link to post
Share on other sites

Hey there, sorry to post again so soon but I'm using Khas and I cant seem to get the tint to pause with the "@<Comment: GameTime.pause_tint = true" command to work.

if I put notint in the map notes the tint turns off but then i can't set my own tint on the map. am I doing something wrong?

 

-T

 

Yes! The functions have to be called via the script command and not embedded in a comment. It's on page 3, bottom right.

Share this post


Link to post
Share on other sites

I originally was using it as a script.

Script:GameTime.pause_tint = true

 

and i get Game_interpreter line 1409: no method

undefined method 'pause_tint=' for gameTIme:Module

 

:(

 

-T

Share this post


Link to post
Share on other sites

I originally was using it as a script.

Script:GameTime.pause_tint = true

 

and i get Game_interpreter line 1409: no method

undefined method 'pause_tint=' for gameTIme:Module

 

:(

 

-T

 

It's GameTime.pause_tint(true) or GameTime.pause_tint(false)

Share this post


Link to post
Share on other sites

Oh wow I feel dumb haha. ^_^ It was staring me in the face in the instructions! thanks!

 

But I think I may have found a bug....If i have an event move time forward with the Script:GameTime.set("addhour",x) command the screen will change the tint to whatever time that command makes it.

 

so like if I have Script:GameTime.set("addhour",3) and the time is midnight, and the tint is paused, it will change the tint to the 9am tint but still keep it paused there unless I have another time change.

 

Or i could be doing something way wrong again lol.

Share this post


Link to post
Share on other sites

Nope, not wrong, the command was there but it didn't do anything anyways. Fixed up in the recent version.

Share this post


Link to post
Share on other sites

I was trying to change the game time using a script call, but every time I do I get "Script 'Game_Interpreter' line 1411: ArgumentError occurred. wrong number of arguments (7 for 6)" I tried googling it, and messing around with the call. I know next to nothing about scripting, though, so there's a good chance I'm messing up something little.

 

I used the button under "Advanced" on page three, and inserted the "GameTime.change(nil,30,4,1,1,1,2012)" thing, thinking that maybe the numbers I had put in where wrong in some way. I still got the same thing. Any clue as to how to fix this?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted