Help with an Event

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV


The above picture above is the contents.

So this was working before just fine, but I decided to see if I could edit it a little further. Originally this Common Event is supposed to happen on the Overworld Map, but it would randomly keep raining on different maps. I wanted to basically branch it out so whenever it was raining on the Overworld it would keep raining in the village.

So I needed to change some of the timing and put a line it that would set the variable to a Value of 5 so that I could see if the map transitions worked. It seemed to be working ok, though I wanted to keep tweaking Wait times. It also seemed like whenever it rained, it wouldn't stop raining and no amount of Weather:None Lines would stop it from doing so.

Then it just randomly stopped working altogether. Like No rain. Nothing. The values change, as I have an event that reads me the Variable number. But even if generates the right numbers I get no weather effects.

Anyone who has an idea of what is going on, I could use a few insightful ideas. This has been pretty frustrating.
 
Last edited:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
is the switch being turned off somewhere? That's a pretty low-numbered switch, so see if you've added any new plugins recently that use that switch number.
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
No plugins Except for the basic stuff that already comes with MV.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
So can you confirm that switch 2 IS on? F9 is the debug panel.

I think you need to host your picture somewhere else as well. I could see it originally, but now I'm getting the "you must update your account" message where the picture should be. That means probably others can't see it either.
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
Yeah so, after Photobucket decided to block that photo, I decided enough was enough and used Imgur instead. Hopefully, it shows up now. I'm done with Photobucket and their endless greedy website filled with so many damn ads you can't even navigate the place.

In any case, getting back ON TOPIC:

I managed to make it rain again. I had made another Common event to set the Weather effect to None because I don't want the rain to show up on inside Maps. I set it to an inside Map because I was trying to test the screen effects. After removing it, the rain started working again. While that is fine, it does bring me back to my original conundrum.

So to Summarize:
Parallel Events Seem to run in the background, no matter what Map you're on. This is evidenced by the fact that when I started a New game and hadn't even traveled onto the inside map, it was still affecting the original code.

The Rain effect still runs at random intervals, sometimes giving me short or prolonged storms.

The effect will happen on any map, which is just going back to the original problem I had to begin with.
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
As @Shaz said make sure the switch 2 is on on the world map and off anywhere else.

parllel events run on any map, as long as the switch is on.

Simple way to do this is,when you go from your town maps/duegons/non-overworld map to the overworld map turn the switch on. And when you go from the over world
to non-overworld maps turn the switch off.

The other way, to make it run on the overworld only is to get a different variable set it to Map Id and then set the conditional branch to check if the variable is equal to the overworld map Id, and place everything in the common event in that conditional branch, and it'll always run on the overworld onl y.
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
Nice. I'll have to try that. Honestly, my intention was to create effects like having it rain in towns when the player enters the town while it's raining. It would cause the NPCs to behave different. (Perhaps move indoors, that kind of thing.) But yes, it looks like I'm going to have to use Switches to do all of that.

Edit: Hmm. Would turning OFF the Switch stop the Variable from changing in Value, effectively keeping it on that number until the Switch is turned back on? If that's the case, it could work.
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
@OmnislashXX to answer your question, yes the variable value would be set untill the switch is turned back on.

You can also have the switch turn off after the transfer, not before.

Also remember that the variable is being set random fron 1-100, when common event is on every ~5 sec, and based on your event, you get rain 5% of the time, a storm 5% of the time and nothing the other 90% of the time.
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
@OmnislashXX to answer your question, yes the variable value would be set untill the switch is turned back on.

You can also have the switch turn off after the transfer, not before.

Also remember that the variable is being set random fron 1-100, when common event is on every ~5 sec, and based on your event, you get rain 5% of the time, a storm 5% of the time and nothing the other 90% of the time.
Yes which is what I was going for. I really don't want it raining all of the time. PLus I am going to enter some Wait Commands so the Random Variable doesn't change so much. that being said, since the Switch turns off the Variable's RNG than I could run some conditional Branchs during each transfer point to get the screen to change when going inside and out.

Edit: Trying that out, it ended up being successful. There is only a slight rain effect when you are inside a building, but it quickly goes away. Might be a cool effect to leave it like that.

So in Short: When it rains on the World Map, if you step inside the town it won't stop raining until you return to the World Map. If you go inside a House, you won't see rain, but if you exit the house, it will still be raining in the town.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,242
Members
137,609
Latest member
shododdydoddy
Top