Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: Tsuna on 2017-05-09 20:19:35

Title: Editing the battle scripts
Post by: Tsuna on 2017-05-09 20:19:35
Is there a way that the battle and field scripts communicate?

I have found a way to make it rain on certain fields randomly.
What i'm gonna need is to be able to make random encounters have the rain effect if in the scene has the correct var=1

Or i guess if anyone happens to know about the attempts at random weather effects that have tried it before lemme know how because i wanna play with it
Title: Re: Editing the battle scripts
Post by: nfitc1 on 2017-05-09 20:25:48
Both the field and the battle scripts have access to the entirety of the savemap.
Title: Re: Editing the battle scripts
Post by: Tsuna on 2017-05-09 20:29:38
In MR it says the battle between Sephi and Cloud vs that dragon has rain. It is battle 292.
It seems that the scene ID 3a is the only scene that has rain.

But im new to this so im stuck. Got any ideas?
Title: Re: Editing the battle scripts
Post by: nfitc1 on 2017-05-09 20:43:58
You can't just add a screen filter to the battles. The rain is part of the battle stage.
Title: Re: Editing the battle scripts
Post by: Tsuna on 2017-05-09 20:49:09
I need a way where:

In flevel using MR, i'll use a create random number for var X making it rain.
I'll then use a invisible timer till when it stops raining.
Unless there's a better way.

Then try to have the random battles during this time also have the rain script applied.



I don't where the rain script is in battle, or where to find it. I'm using Proud Clod but to no success yet

ALso if i can edit the world map scripts for a simmilar thing that would be amazing.


There must be a script attached to that scene somewhere
Title: Re: Editing the battle scripts
Post by: nfitc1 on 2017-05-09 20:54:40
It's part of the animations of that stage. I can't be certain, but check the **ab file of that stage and see what is going on. That's likely where it is.
Title: Re: Editing the battle scripts
Post by: Tsuna on 2017-05-09 20:55:36
Oooh that sounds plausible.

Unsure how to edit that scene specifically though.
I just got the battle itself not the scene