View Full Version : Event Code with Weather and seasons
The White JackeL
09-26-2005, 03:51 PM
Ok, i found out last night that you can make a invisable event that will refreash the town that your in when it go's from day to night alowing you to be out side and still have the NPC's disapear if you have them set to off at night and so on. Witch made me wonder if you could make a invisable event that would randomly or not so randomly change wather and seasons i played with it for a good hour or so last night and got it to sort of work, although it would rain every evening of every day and stop at night and so on, would some one help me out on this? pls? to make a event code that would alow close to random weather changes thru difrent times.
`ty
bjohnson250
09-26-2005, 03:57 PM
Ok, i found out last night that you can make a invisable event that will refreash the town that your in when it go's from day to night alowing you to be out side and still have the NPC's disapear if you have them set to off at night and so on. Witch made me wonder if you could make a invisable event that would randomly or not so randomly change wather and seasons i played with it for a good hour or so last night and got it to sort of work, although it would rain every evening of every day and stop at night and so on, would some one help me out on this? pls? to make a event code that would alow close to random weather changes thru difrent times.
`ty
yes its under contorl
The White JackeL
09-26-2005, 04:04 PM
Thank you, i will be looking forward to seeing what we come up with. :)
Doyleman
09-26-2005, 05:41 PM
i have one word- use of variables.
RPG Maker 3 has no random variable effects, but if your good enough, you can
make a sudo random effect.
The best way would be too keep track of what the player does, and at a
given time, check what it equals to, do some special formula, and if it equals
whatever, then it makes a weather effect.
Example:
Each time the player goes in any place, add 1 to variable 01; and after the
next time setting (dawn, noon, evening, night), check if it equals 8, if so, make
it rain, if it equals 9, make it foggy, if its 10, thunder storm.
This is only an example, but it's the closest thing there is that I can think of.
The White JackeL
09-26-2005, 06:27 PM
Hahaha sounds logical and all and that it would work, but i have no clue how to use the dang variables *sigh* there a pain in the butt.
Doyleman
09-26-2005, 06:36 PM
Well, I'll summarize.
Variables in RPGM3 can be any number between 0 and 999,999 (i believe). You can Set their value, add onto their value, or subtract their value. Just make it so
an Auto event or something adds one or so to a variable used for the weather system, and force ends that event until you re enter.
The White JackeL
09-26-2005, 07:00 PM
*sigh* i will try but i really dont think i will get it haha cuz i dont even know how to get into the veriable settings unless im test playing the game and it wont save em and such.
Doyleman
09-26-2005, 07:02 PM
in the event code, in the menu while editing the code, select Control. From there you can 'Modify', 'Add', and 'Subtract' shared variables or internal variables. use the Shared Variables for now, as I dont know what internal is all about, but it deals with the characters, maps, and other data in the game.
The White JackeL
09-26-2005, 07:07 PM
thanks man, i will give this all a shot later on today or tomarrow. :)
Doyleman
09-26-2005, 07:09 PM
no problem, if you need some more tips on what I'm talking about, I come here frequently, so ask and I'm sure others or myself will help.
The White JackeL
09-26-2005, 07:16 PM
yeah i come here a lot too and thank you i look forward to it :) and if some how haha i ever become smart enof i can help you out or others.
Doyleman
09-26-2005, 07:22 PM
After using RPGM2 for quite some time, and switching to 3, i'm sure you'd be as good, as this is a major step down on the hardness level. I dont doubt that you could end up helping me some time though, as just awhile back, a person 'glitched' RPGM3's system to letting any character have any weapon graphic (not including animals i believe)
Peng!33
09-26-2005, 07:34 PM
Actually, I was wondering if you can trigger an event, like the poster stated (having NPC disappear at night) without the character interacting with the person? How is this done?
Doyleman
09-26-2005, 07:36 PM
That's explained in the FAQ page of your instruction manual... in event code, Display> Refresh Screen
That'll check all the stuff that needs to be... checked. and do the appropriate settings.
Brutemein
09-26-2005, 08:15 PM
Yeah, having variables in this game instead of just switches gives you more "switches" than you would probably ever need. The only inconvenient thing is you can't name the variables in game, but that's what pencil and paper are for.
Chalk me up though as being disappointed that the game doesn't let you check variables such as "is someone dead or not," variables for random creatures, etc. It seems a shame to put so many variables to use in the game and then restrict them to basic event type stuff.
Doyleman
09-26-2005, 08:17 PM
maybe one of the internal variables deal with them stuff. but then again, i'm not clear on what internal variables exactly do.
Rodak
09-27-2005, 05:05 AM
The only inconvenient thing is you can't name the variables in game, but that's what pencil and paper are for.
I made a dummy event whose script just lists what I used variables for.
I tried pencil & paper for my RPGM2 game (before I realized you could rename variables in that game) and went mad when I lost my notes.
I can't lose a file stored in the game though.
Just a tip that might save you some hair if you were to lose your notes.
Peace.
Killafoo
09-30-2005, 04:23 AM
hey guys, im new to the boards,
but i've been using rpgmaker since rpgm1 on ps1.
i've been toying around with making random weather effects, and up to now
i've only gotten what jackel got...
but since omnislash killed the autoloop bug(THANK YOU!!!)
i've been messing around with the variable idea alot...
i made a fake map and named it random weather variables
and used the first internal var from it.
since he did kill that bug...i've been able to make a system to where,
depending on which places the character go into, and whether the var is =10
or <=10, you can get progressing weather.
all depending on how many places the user goes into.
i'll post a tutorial if anyone is interested.
hopefully this helps!
*note*
the code for this process is pretty time consuming just to let you know
it involves alot of mode changes, and variable condition branches.
The White JackeL
10-01-2005, 02:03 AM
i was able to make a event where the weather changed useing variables and one where it used a system of after every so many days at a sertan time it woudl start raining and so on but theres a flaw in both, if u enter and exit a building or town while the event is going on and go back out or in so on it will cancel it out and put thigns back to normle untill it is activated again...
So it works for both (although i prefer the days event to triger it makes it feel more real) the only set back is that it reverts if u go inside or leave and then come back in but if that dont bother ya haha then hey :)
If any one wants to know how to do either, (mind u i only know how to make the weather change from its norm to one other at the moment) i will put up here how to do so. :)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.