- Nov 10, 2013
- Reaction score
- First Language
- Primarily Uses
All the information you need is in the Game_Interpreter class of the script. It has methods that accept arguments from your Script event command, and then calls the appropriate Fog method to do what you need. Each of those methods only has one command. So you can basically copy the command, substitute the values, and replace screen with the appropriate variable - either $game_map.screen or $game_troop.screen (the former for on a map, the latter for in battle).
Thanks! It worked fine for creating a new fog ($game_map.screen.fogs.show(...)), but I got an issue when erasing or changing a previosly created fog´s tone ($game_map.screen.fogs.start_opacity_change(etc) and $game_map.screen.fogs.erase ):
Script 'Shaz Multiple Fogs' line 219: NoMethodError ocurredundefined method '-' for nil:NilClassRight here:
def update_move ---> @sx2 -= @sx / 8.0 @sy2 -= @sy / 8.0If I create the new fog on the script and after that try to change it's tone/erase it, then it works fine.
Last edited by a moderator: