Le deal à ne pas rater :
Réassort du coffret Pokémon 151 Électhor-ex : où l’acheter ?
Voir le deal

Aller en bas
Korndor
Korndor
Staffeux retraité

Nombre de messages : 4959
Age : 110
Localisation : Erem Vehyx
Distinction : Champion de boxe et au lit ! :O [Wax]
Être Mythique [Mister]
Papi Korndor qui a l'ostéoporose [Skillo]
Soldat Ikéa [Coco']
Un bonhomme, un vrai ! [Neresis]
Vieillard acariâtre [Didier Gustin]
Date d'inscription : 16/12/2007
http://www.rpgmakervx-fr.com/

Météo et teinte en combat Empty Météo et teinte en combat

Sam 15 Nov 2008 - 10:48
Source: RRR, évidemment :P

Mais qu'est-ce donc?!
Se demanderont certains...

Bon, alors premièrement:
Météo et teinte en combat Bluean10

Toujours pas?
Bon...
Ce script active - désactive un effet météo ou la teinte, en combat, de façon indépendante par les interrupteurs défini dans la section personnalisation du script.
Pour le reste, voyez les parties commentées du script Wink

Code:
#===============================================================
#                         
#                rpgmakervx.1fr1.net                                         
#     
#===============================================================

#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
#_/ ◆ Battle Screen Effects - MRA_BattleScreenEffects ◆ VX ◆
#_/ ◇ Last Update: 2008/09/27 ◇
#_/ ◆ Created by Mr. Anonymous ◆
#_/ ◆ Creator’s Blog: ◆
#_/ ◆ http://mraprojects.wordpress.com ◆
#_/—————————————————————————-
#_/ This script enables weather and screen tone to carry over from the map
#_/ screen into battle.
#_/============================================================================
#_/ Aliased Methods: Spriteset_Battle’s initialize, dispose, update,
#_/ update_viewports
#_/============================================================================
#_/ Install: Insert above main.
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

#=============================================================================#
# ★ Customization ★ #
#=============================================================================#
module MRA
module BattleScreenEffects

# ★ Weather Switch ID ★
# This allows you to designate a switch that enables or disables the
# continuation of weather from the map into battle.
WEATHER_SWITCH_ID = 14

# ★ Screen Tone Switch ID ★
# This allows you to designate a switch that enables or disables the
# continuation of screen tone from the map into battle.
TONE_SWITCH_ID = 13

end
end
#=============================================================================#
# ★ End Customization ★ #
#=============================================================================#

#==============================================================================
# ** Spriteset_Battle
#——————————————————————————
# This class brings together battle screen sprites. It’s used within the
# Scene_Battle class.
#==============================================================================

class Spriteset_Battle
#————————————————————————–
# * Object Initialization
#————————————————————————–
alias initialize_mra_battle_screen_effects initialize
def initialize
if $game_switches[MRA::BattleScreenEffects::WEATHER_SWITCH_ID]
create_weather
end
initialize_mra_battle_screen_effects
end
#————————————————————————–
# * Dispose
#————————————————————————–
alias dispose_mra_battle_screen_effects dispose
def dispose
dispose_mra_battle_screen_effects
if $game_switches[MRA::BattleScreenEffects::WEATHER_SWITCH_ID]
dispose_weather
end
end
#————————————————————————–
# * Frame Update
#————————————————————————–
alias update_mra_battle_screen_effects update
def update
update_mra_battle_screen_effects
if $game_switches[MRA::BattleScreenEffects::WEATHER_SWITCH_ID]
update_weather
end
end
#————————————————————————–
# * Update Viewport
#————————————————————————–
alias update_viewports_mra_battle_screen_effects update_viewports
def update_viewports
update_viewports_mra_battle_screen_effects
if $game_switches[MRA::BattleScreenEffects::TONE_SWITCH_ID]
@viewport1.tone = $game_map.screen.tone
else
@viewport1.tone = $game_troop.screen.tone
end
end
#————————————————————————–
# * Create Weather
#————————————————————————–
def create_weather
@weather = Spriteset_Weather.new(@viewport2)
end
#————————————————————————–
# * Dispose of Weather
#————————————————————————–
def dispose_weather
@weather.dispose
end
#————————————————————————–
# * Update Weather
#————————————————————————–
def update_weather
@weather.type = $game_map.screen.weather_type
@weather.max = $game_map.screen.weather_max
@weather.ox = $game_map.display_x / 8
@weather.oy = $game_map.display_y / 8
@weather.update
end
end


Dernière édition par Tretian le Sam 15 Nov 2008 - 11:22, édité 1 fois
Sylphlorian
Sylphlorian
Membre

Nombre de messages : 228
Age : 29
Localisation : Bretagne
Distinction : aucune
Date d'inscription : 18/02/2008

Météo et teinte en combat Empty Re: Météo et teinte en combat

Sam 15 Nov 2008 - 10:53
Ça c'est le genre de script très utile quand par exemple il
pleut et que l'on veut qu'il pleuve en combat.

Pareil pour les teinte, quand par exemple il fait nuit.
Mais par contre, c'est tout l'écran qui change de teinte ou juste le background ?

Merci du partage.
Korndor
Korndor
Staffeux retraité

Nombre de messages : 4959
Age : 110
Localisation : Erem Vehyx
Distinction : Champion de boxe et au lit ! :O [Wax]
Être Mythique [Mister]
Papi Korndor qui a l'ostéoporose [Skillo]
Soldat Ikéa [Coco']
Un bonhomme, un vrai ! [Neresis]
Vieillard acariâtre [Didier Gustin]
Date d'inscription : 16/12/2007
http://www.rpgmakervx-fr.com/

Météo et teinte en combat Empty Re: Météo et teinte en combat

Sam 15 Nov 2008 - 10:54
Hum, je crois que la fenêtre des commandes ne change pas de teinte; ça fait une plombe que je n'utilise plus ce script ^^'
Contenu sponsorisé

Météo et teinte en combat Empty Re: Météo et teinte en combat

Revenir en haut
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum