Main Menu
  • Welcome to The RPG Maker Resource Kit.

[vxace]script use real time

Started by jomarcenter, May 04, 2012, 07:42:48 AM

0 Members and 1 Guest are viewing this topic.

jomarcenter

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

AbsoluteIce

Put more information into your request, or people won't understand with
the little information that you have.  ???
なんでやねん

jomarcenter

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...

mobychan

#3
you can event that yourself, here you can read a bit about it: *klick*
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




jomarcenter

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*
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...

mobychan

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




D&P3

#6
It's not so bad. Check out Animal Crossing. :)
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

mobychan

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 ^^''




Mushu

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.

Lethrface

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.
I am out of fucks to give.  In fact, I think you owe ME some fucks.  I have insufficient fucks in the fucking account.

Lethrface

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.
I am out of fucks to give.  In fact, I think you owe ME some fucks.  I have insufficient fucks in the fucking account.

jomarcenter