Status
Not open for further replies.

Berylstone

Veteran
Veteran
Joined
Jun 3, 2013
Messages
642
Reaction score
62
First Language
English
Primarily Uses
I was hoping someone might could help me out with a script for this since it seems it's not possible using the default system in Ace.

What I am trying to do is use my weather effects during a battle event.  Since my time cycle continues to progress during combat it would be nice if I could progress the weather effects too. 
 

Berylstone

Veteran
Veteran
Joined
Jun 3, 2013
Messages
642
Reaction score
62
First Language
English
Primarily Uses
class Spriteset_Battle

#just throw the weather creation somewhere after viewports created...
alias tsuki_weatherfx_create_viewports create_viewports
def create_viewports
tsuki_weatherfx_create_viewports
create_weather
end

def create_weather
@weather = Spriteset_Weather.new(@viewport2)
@weather.type = $game_map.screen.weather_type
@weather.power = $game_map.screen.weather_power
end

alias tsuki_screenfx_spritebattle_update update
def update
tsuki_screenfx_spritebattle_update
update_weather
end

#only update weather if it's not the same as the current weather?
def update_weather
@weather.type = $game_troop.screen.weather_type
@weather.power = $game_troop.screen.weather_power
@weather.update
end

#throw weather disposal somewhere before viewports are disposed...
alias tsuki_weatherfx_dispose_viewports dispose_viewports
def dispose_viewports
dispose_weather
tsuki_weatherfx_dispose_viewports
end

def dispose_weather
@weather.dispose
end
end

class Game_Interpreter

#allow weather in battle
alias tsuki_weatherfx_command_236 command_236
def command_236
if $game_party.in_battle
screen.change_weather(@params[0], @params[1], @params[2])
wait(@params[2]) if @params[3]
else
tsuki_weatherfx_command_236
end
end
end
Here is one Tsukihime wrote that works good also.  Posting it in case anyone else has a need for.
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,908
Reaction score
14,548
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I've been working on some ABS team A.I. for 'A New Suburbia', and thought I'd share.

I'm generally quite please although the AI is a little grenade heavy right now :rolleyes: - Sneaking and stalking next! Please excuse the terrible map... it was just for ease of viewing!
Voting for the second round of the Map Madness Tournament is now live! Vote for your favorite in each matchup! https://forums.rpgmakerweb.com/index.php?forums/map-madness-2021-polls.187/
Just bought the Visustella All Waves bundle... Time to go IN!!
Oh, I was just confirmed I'll be doing small online classes during june - july, on one side I'm nervous and looking forward it, on the other one: I've became the very thing I swore to destroy. :kaodes:
Work starts today at 2pm. I hate jeans, but the dress code says I have to wear them... That's how I discovered I was a plus size. Shopping for my first pair of jeans.
Anyhow, I'll post a new video on TheDazzlingsAreBack as soon as I'm able to.

Forum statistics

Threads
110,576
Messages
1,054,330
Members
143,689
Latest member
Twin_A
Top