[VX][VXA] NAM's Random Battle Transitions

Started by tSwitch, April 20, 2012, 02:45:19 pm

Previous topic - Next topic

tSwitch

April 20, 2012, 02:45:19 pm Last Edit: April 24, 2012, 11:52:32 am by Blizzard
NAM'S Random Battle Transitions
Authors: NAMKCOR
Version: 1.0
Type: Eye Candy
Key Term: Battle Add-on



Introduction

With simple configuration, you too can have a myriad number of random battle transitions for your RPG Maker VX Ace title.


Features


  • Easily set up as many random battle transitions as you want




Screenshots

Battle transitions are animated, and I don't have the time to make a .gif, so you don't get any >:C


Demo

N/A


Script

Spoiler: ShowHide

#==============================================================================
# ** NAMKCOR's Random Battle Transition
#------------------------------------------------------------------------------
#  Override to the standard Scene_Map to allow for random selection of
#  multiple battle transition graphics.
#
#  Configuration:
#  > Ensure that all of your BattleStart graphics are named as follows:
#    BattleStart_X.png, where X is the number.
#
#  > Example: if we had 3 BattleStart graphics, I would name them:
#    BattleStart_1.png, BattleStart_2.png, and BattleStart_3.png
#
#  > At Configuration Point A, set the 'return' value to the number
#    of BattleStart graphics in your System folder.
#==============================================================================

module NAMKCOR
 
 #============================================================================
 # Configuration Point A
 #============================================================================
 def self.battle_transition_count
   return 10
 end
 
#==============================================================================
# DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING!
# YOU HAVE BEEN WARNED!
#==============================================================================
 
 def self.battle_transition_graphic
   return "Graphics/System/BattleStart_" +
          (rand(battle_transition_count) + 1).to_s
 end

end

class Scene_Map < Scene_Base
 def perform_battle_transition
   Graphics.transition(60, NAMKCOR.battle_transition_graphic, 100)
   Graphics.freeze
 end
end



Instructions

Configuration:
Ensure that all of your BattleStart graphics are named as follows: BattleStart_X.png, where X is the number.
Example: if we had 3 BattleStart graphics, I would name them:

BattleStart_1.png
BattleStart_2.png
BattleStart_3.png


At Configuration Point A (labeled in the script), set the 'return' value to the number of BattleStart graphics in your Graphics/System folder.


Compatibility

None.


Credits and Thanks


  • NAMKCOR




Author's Notes

Enjoy.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

Blizzard

*pokes NAMK / one of the mods* Template. ._.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G


LiTTleDRAgo

by the way, it seems this script can be used in VX too

Blizzard

Let us know if it works after you have tried it out. :)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

LiTTleDRAgo

yes, I tried that and works both in VX and VXA

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.