The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: jomarcenter on May 04, 2012, 07:42:48 AM

Title: [vxace]script use real time
Post by: jomarcenter on May 04, 2012, 07:42:48 AM
can anyone provide a script that use real time...
like a certain time something will happen or other things in the game...
and also change the day and night setting in a game...

tell me if you have that script
Title: Re: [vxace]script use real time
Post by: AbsoluteIce on May 04, 2012, 07:46:29 AM
Put more information into your request, or people won't understand with
the little information that you have.  ???
Title: Re: [vxace]script use real time
Post by: jomarcenter on May 04, 2012, 09:56:39 AM
Quote from: AbsoluteIce on May 04, 2012, 07:46:29 AM
Put more information into your request, or people won't understand with
the little information that you have.  ???
here the detail

the game use a real time clock...
and depend on the time set in the real time clock the game change as well
like if the time is morning the game is light and when the time is night the game is at night as well
and also a certain date and time event like every Friday you can but certain item that is not regularly for sale...
and also changes battle rate in the morning and in the night...
you know kinda like pokemon use real time just to change its weather and seasons and event...
Title: Re: [vxace]script use real time
Post by: mobychan on May 04, 2012, 10:34:21 AM
you can event that yourself, here you can read a bit about it: *klick* (http://forums.rpgmakerweb.com/index.php?/topic/51-event-system-support/page__st__20#entry8973)
not sure about the battle rate though, that might require a little script call(one or two lines)
I'll see if it's possible with eventing, if not, I'll provide you with the script call


Edit:
Insert this inside the Scripts, below Materials but above Main:

# With this you can set the Encounter Rate of the current Map using
# $game_map.set_encounter_step(x)
# with x being the value you'd set inside the Map Properties


class Game_Map
  def set_encounter_step(steps)
    @map.encounter_step = steps
  end
end


You can change the encounter rate by using
$game_map.set_encounter_step(x)
x being the desired value
Title: Re: [vxace]script use real time
Post by: jomarcenter on May 04, 2012, 11:59:06 AM
Quote from: mobychan on May 04, 2012, 10:34:21 AM
you can event that yourself, here you can read a bit about it: *klick* (http://forums.rpgmakerweb.com/index.php?/topic/51-event-system-support/page__st__20#entry8973)
not sure about the battle rate though, that might require a little script call(one or two lines)
I'll see if it's possible with eventing, if not, I'll provide you with the script call


Edit:
Insert this inside the Scripts, below Materials but above Main:

# With this you can set the Encounter Rate of the current Map using
# $game_map.set_encounter_step(x)
# with x being the value you'd set inside the Map Properties


class Game_Map
  def set_encounter_step(steps)
    @map.encounter_step = steps
  end
end


You can change the encounter rate by using
$game_map.set_encounter_step(x)
x being the desired value
not like that the script use the pc current time to change the rate according to the time...
Title: Re: [vxace]script use real time
Post by: mobychan on May 04, 2012, 12:06:36 PM
Are you sure you want the player to be forced playing your game at specific times to get special items or such?
I mean, in Pokémon it's only a matter of day/night and in case of Black/White the seasons but you want events to happen at specific days...
I think it would be a nuisance and could prevent some people from playing your game.
I hate it when a game forces me to play on specific days, specific times may be managable but days...

Think about it, if it wouldn't be easier to use a in-game time or dump the specific day stuff, would be better I think
Title: Re: [vxace]script use real time
Post by: D&P3 on May 04, 2012, 12:08:30 PM
It's not so bad. Check out Animal Crossing. :)
Title: Re: [vxace]script use real time
Post by: mobychan on May 04, 2012, 12:10:51 PM
Sure, there are games where it's ok, but I think an RPG as Jomar wants to do it wouldn't attract many people with it ^^''
Title: Re: [vxace]script use real time
Post by: Mushu on May 04, 2012, 02:38:45 PM
Yeah, for crystal version they did that day-of-week stuff.

You know, it would change up an rpg. You could only, let's say, enter the 'mines of moria' on a sunday night. Then again, the game itself would have to be very worth playing for that to be interesting.
Title: Re: [vxace]script use real time
Post by: Lethrface on May 04, 2012, 03:11:27 PM
I've actually been considering implementing something like this in my contest entry so when I get around to scripting it, I'll let you know unless someone beats me to it.
Title: Re: [vxace]script use real time
Post by: Lethrface on May 04, 2012, 03:58:05 PM
Quote from: Darkwing Duck on May 04, 2012, 03:11:27 PM
I've actually been considering implementing something like this in my contest entry so when I get around to scripting it, I'll let you know unless someone beats me to it.

Someone beat me to it.

http://forums.rpgmakerweb.com/index.php?/topic/1065-basic-real-time-system-time/

Seems fairly simple.  If you have any problems with it, speak with the author of that topic through that link.

(EDIT:...apparently clicked quote instead of modify.  I apparently need more sleep.
Title: Re: [vxace]script use real time
Post by: jomarcenter on May 10, 2012, 04:19:59 AM
finally i found that script
http://www.rpgmakervxace.net/topic/3225-basic-game-time-nightday/
this is what i'm talking about!!!