Auto Event Opacity & BlendVersion 1.0
by Woratana
Release Date: 20/02/2008
Introduction When I'm looking in VX character set of one website, I saw RTP character sets that make it ghost-like by change its transparent.
And I think 'this can be done by just change character opacity in game'. This way will not waste your game's space to store ghost character too.
Then I realize that in VX, we can only change its opacity by 'set move route' thing. That's why I script this to make it easier to set opacity, and this can set blend type (addition, subtraction) too~
FeaturesVersion 1.0- Change event's opacity (and/or) blend type by add 'comment' in event.
ScriptPlace it above main.
if you have problem with codebox, you can download script in text file here:
autoopacblend10.txt ( 1.42K )
Number of downloads: 191CODE
#======================================================================
========
# [VX] Auto Event Opacity & Blend
#------------------------------------------------------------------------------
# Version: 1.0
# Released on: 20/02/2008
# by Woratana [woratana@hotmail.com]
#
# Exclusive for RPGRevolution.com
#
# +[How to use]+
# Put Comment (It's in 1st page of event command) like this:
# [o(number of opacity)] << To change it's opacity
# [add] << To change character's blend to adddition
# [neg] << To change character's blend to subtraction
#
# +[Example]+
# You want opacity to be 180, add comment:
# [o180]
# You want character's blend type to addition, add comment:
# [add]
# You want opacity to be 150 and character's blend type to subtraction, add:
# [o150][sub]
#
#==============================================================================
class Game_Character
attr_accessor :opacity, :blend_type
end
class Game_Event < Game_Character
alias wor_ev_opac_setup setup
def setup(new_page)
wor_ev_opac_setup(new_page)
for i in 0...@list.size
next if @list[i].code != 108
if @list[i].parameters[0].include?("[o")
list = @list[i].parameters[0].scan(/\[o([0-9]+)\]/)
@opacity = $1.to_i
end
if @list[i].parameters[0].include?("[add]")
@blend_type = 1
end
if @list[i].parameters[0].include?("[neg]")
@blend_type = 2
end
end
end
end
Instruction+[How to use]+Put Comment (It's in 1st page of event command) like this:
CODE
[o(number of opacity)] << To change it's opacity
[add] << To change character's blend to adddition
[neg] << To change character's blend to subtraction
+[Example]+You want opacity to be 180, add comment:
CODE
[o180]
You want character's blend type to addition, add comment:
CODE
[add]
You want opacity to be 150 and character's blend type to subtraction, add:
CODE
[o150][sub]
Author's NotesFree for use in your non-commercial work if credit included. If your project is commercial, please contact me.
Please do not redistribute this script without permission.
And don't post this script out of http://rpgrevolution.com/ without permission.