Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> +[Auto Event Opacity & Blend]+ version 1.0, *Easier way to set event's opacity & blend type~
woratana
post Feb 19 2008, 06:00 PM
Post #1


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Auto Event Opacity & Blend
Version 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~



Features
Version 1.0
- Change event's opacity (and/or) blend type by add 'comment' in event.


Script
Place it above main.
if you have problem with codebox, you can download script in text file here:
Attached File  autoopacblend10.txt ( 1.42K ) Number of downloads: 191

CODE
#======================================================================
========
# [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 Notes
Free 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.


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
SeeYouAlways
post Feb 19 2008, 10:04 PM
Post #2


Demented Moogle
Group Icon

Group: Banned
Posts: 1,130
Type: None
RM Skill: Undisclosed




The title in the post says "Skip Title Script". Heh heh. Anyway, I just wanted to post here because I have been busy (and lazy) lately and I need to add your other scripts... I'll try do this by today. pinch.gif


__________________________
Go to the top of the page
 
+Quote Post
   
woratana
post Feb 19 2008, 10:40 PM
Post #3


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Ohhhh!

Edited. Thanks to let me know smile.gif and Thanks a lot for your hard work!! SYA


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
jasonicus
post Feb 20 2008, 04:16 AM
Post #4


All Lies Lead to the Truth
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Developer
RM Skill: Advanced




This is cool. I like the idea of making it easier to change opacity and whatnot. It used to be more simple, but now, like you said you have to use a move event command, which can be cumbersome.
Go to the top of the page
 
+Quote Post
   
tlkpubink
post Feb 29 2008, 08:01 PM
Post #5



Group Icon

Group: Member
Posts: 2
Type: None
RM Skill: Skilled




This is really useful! Will make ghosts much easier biggrin.gif
Unfortunately I keep getting this error: Line 35: NoMethodError undefined method "size" for nil:NilClass
This is my line 35: for i in 0...@list.size
For some reason it doesn't happen on an event that is transparent, it keeps happening on an event that has a move command in it.
Any help would be appreciated!

~EDIT~

Thanks for getting back to me so soon. I'm still having the problem though. I made a demo of the event that's causing the error ~ if you flip the switch once it's fine, but when you do it again the error message pops up.

http://www.megaupload.com/?d=9WHKDDJ1

This post has been edited by tlkpubink: Feb 29 2008, 10:12 PM


__________________________
QUOTE
The three rules of the Librarians of Time and Space are: 1) Silence; 2) Books must be returned no later than the date last shown; and 3) Do not interfere with the nature of causality. ~Terry Pratchett
Go to the top of the page
 
+Quote Post
   
woratana
post Feb 29 2008, 08:44 PM
Post #6


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Try this >_<"
change this line
QUOTE
for i in 0...@list.size

to
QUOTE
for i in 0...@list.size - 1


================

Sent me a demo of the problem in your game would be appreciate tongue.gif


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
tlkpubink
post Mar 2 2008, 10:49 PM
Post #7



Group Icon

Group: Member
Posts: 2
Type: None
RM Skill: Skilled




Hm, it seems to work now. I had to leave a blank page in the event that got turned on by the switch. Thanks for the help biggrin.gif I'll definitely be using this!


__________________________
QUOTE
The three rules of the Librarians of Time and Space are: 1) Silence; 2) Books must be returned no later than the date last shown; and 3) Do not interfere with the nature of causality. ~Terry Pratchett
Go to the top of the page
 
+Quote Post
   
GenoWolf1982
post Apr 10 2008, 01:31 PM
Post #8



Group Icon

Group: Member
Posts: 2
Type: Artist
RM Skill: Beginner




I Have a request for a script!
The Final FantasyII Word System where you can learn word,ask about the word,and showthe person items!
Go to the top of the page
 
+Quote Post
   
woratana
post Apr 10 2008, 03:32 PM
Post #9


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




lol, this is not script request topic.

Create new request topic in this forum and describe about that system more than this. I will take a look at it. smile.gif


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 05:44 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker