The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Jakexxx on January 02, 2006, 04:59:42 AM

Title: Raining "SCRIPT"
Post by: Jakexxx on January 02, 2006, 04:59:42 AM
Well i've got a question.. I have the advanced day/night system with the clock, and all that jazz... what I am wondering if someone would be willing to make a 'script' to make random rain come in? What would be helpful if it was like the day/night, except with raining. When I use the events it works, until I enter a house. When I enter a house, I have to put a event to make it stop. And then when I go back outside, it doesnt re-start. I am wondering if there is a way like the day/night thing where I could put another * or something at the end of the map name to tell that it is a raining map? If someone could help me with this I would be VERY thankful!
Title: You dont need a script
Post by: Sophist on January 02, 2006, 04:32:05 PM
You need a common event+variable.And the random raining wouldnt seem to help,as It would proabably start while you were inside a building,randomly.Not a great idea,but go for it if you REALLY need it,just used common events and variables.
Thats my 4 cents.
-
Black
-EDIT-Also,it would have to know the names of your maps,so It could do it,and that seems a bit too hassleesh...hassleish.Really,just have it transition rain,and have it go off.Use the weather like normal.It just seems easier to do that then make a RGSS that would comply with the Night/Day scripts.
Title: Raining "SCRIPT"
Post by: Jakexxx on January 02, 2006, 04:53:26 PM
yes, i figures that out already. i did the events, and its all good now. i got it to work entering buildings, etc using variables, thanx anyways
Title: Raining "SCRIPT"
Post by: Jakexxx on January 03, 2006, 05:09:41 AM
Quote from: Jakexxx
yes, i figures that out already. i did the events, and its all good now. i got it to work entering buildings, etc using variables, thanx anyways


NEW PROBLEM.
I decided to use events to make it rain, and couldnt get it so when I go inside of a building it wouild stop, and if i were to go ourside it would still be going. I tried using variables, but i dont know.
Title: Raining "SCRIPT"
Post by: Saber on January 03, 2006, 06:31:35 AM
I don't know exactly how you have it set up, but what I would do is have the event have a conditional branch in the 'random rain event' that checked for a switch that I would call "Indoors?".

Whenever you have a transition that would take a character 'indoors', set the Indoors? to 'On'. Whenever you have a transition that would take a character 'outdoors', set it to 'Off'. As long as your conditional branch is set up right, this should solve your problem.

Good luck!
Title: Raining "SCRIPT"
Post by: Jesse 015 on January 03, 2006, 09:11:51 PM
it may sound confusing, but use the rain event on the outside, and when entering a building, the door event put it on none, and when leaving the buildingjust put the evnt in the doorway out
Title: Raining "SCRIPT"
Post by: Jakexxx on January 03, 2006, 10:01:36 PM
Quote from: Jesse 015
it may sound confusing, but use the rain event on the outside, and when entering a building, the door event put it on none, and when leaving the buildingjust put the evnt in the doorway out



well problem with that is that if it wasnt raining when I went inside, it wouldnt work when i went out. I think the switch idea was the best
Title: Raining "SCRIPT"
Post by: SiR_VaIlHoR on January 04, 2006, 03:25:02 PM
a great idea!
maybe we can add it to day and night! that woulb be wonderful!
Title: Raining "SCRIPT"
Post by: Jakexxx on January 04, 2006, 10:08:51 PM
Quote from: SiR_VaIlHoR
a great idea!
maybe we can add it to day and night! that woulb be wonderful!

haha if i could do it myself I would. I have level 0 scripting skills :D

I cant sit and read something to learn to script, i get hyper and move around haha.
Title: Raining "SCRIPT"
Post by: SiR_VaIlHoR on January 05, 2006, 12:09:59 AM
i'm trying but that's not easy at all lol
Title: Raining "SCRIPT"
Post by: Jakexxx on January 05, 2006, 12:33:27 AM
i see. whatever you can do is fine.