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
> New show balloon icon command, Show a balloon icon using different file
reijubv
post Mar 14 2009, 01:21 AM
Post #1


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




New show balloon icon command
by reijubv


What is this?!

This script enables you to show a balloon icon with different picture, but must in same format as default one...

Feature :

+Use different balloon icon file!
+Easy to use

Screenshot :

Not necessary

Script :

[Show/Hide] Script's Here
#=============================================================
# ? [VX] ? New Balloon Command ? ?
# * Show a balloon with different filename *
#-------------------------------------------------------------------------------
# ? by reijubv [aruyasoft@comic.com]
# ? RPG RPG Revolution
# ? Released on: 14/03/2009
# ? Version: 1.0
#-------------------------------------------------------------------------------
# ? Feature:
# A small script that will allows you to show balloon sprite on your game using
# different file, but the balloon file must be in same size as the one from RTP
#
# call script : New_Balloon(wichevent,balid,filename)
# wichevent : -1 for player, 0 for 'this event', >0 for that event id
# balid : balloon index id, starts from 1 to 10
# filename : balloon icon filename, ex: "balloon01", must be in System folder!
#
# example :
# @>Script: New_Balloon(-1,1,"balloon01")
#
# will show balloon index 1 from file "balloon01" on player character
#
#-------------------------------------------------------------------------------
# Credit me (reijubv) if you use this script....
#-------------------------------------------------------------------------------
# ? Installation:
# Put this script above main
#==============================================================


#==============================================================
# ** Game_System
#==============================================================
class Game_System
#Public instance variable >> $game_system.balloon_file
attr_accessor :balloon_file

#Initialize balloon file
alias reiinitialize initialize unless method_defined?('reiinitialize')
def initialize
reiinitialize
@balloon_file = "Balloon" #Default balloon icon name
end
end
#=============================================================
# ** Game_Interpreter
#=============================================================
class Game_Interpreter
#alias command_213 (normal show balloon icon)
alias reicommand213 command_213 unless method_defined?('reicommand213')

def command_213
reicommand213
$game_system.balloon_file = "Balloon"
end
#------------------------------------------------------------------------------
# new : def NewBalloon
#------------------------------------------------------------------------------
def New_Balloon(wichevent,balid,filename)
character = get_character(wichevent)
#set baloon icon file
$game_system.balloon_file = filename
if character != nil
character.balloon_id = balid
end
return true
end
end
#=============================================================
# ** Sprite_Character
#=============================================================
class Sprite_Character < Sprite_Base
#alias start_balloon
alias reistartballoon start_balloon unless method_defined?('reistartballoon')
def start_balloon
reistartballoon
dispose_balloon
@balloon_duration = 8 * 8 + BALLOON_WAIT
#create balloon sprite
@balloon_sprite = ::Sprite.new(viewport)
#new lines
if $game_system.balloon_file != nil
@balloon_sprite.bitmap = Cache.system($game_system.balloon_file)
else
@balloon_sprite.bitmap = Cache.system("Balloon")
end
#end of new lines
@balloon_sprite.ox = 16
@balloon_sprite.oy = 32
update_balloon
end
end
#=============================================================
# END OF SCRIPT
#=============================================================


Demo :
Exe Demo > 379.1 Kb
Zip Demo > 221.27 Kb

Balloon Examples :




How to use :
CODE
call script : New_Balloon(wichevent,balid,filename)
          >wichevent : -1 for player, 0 for 'this event', >0 for that event id
          >balid     : balloon index id, starts from 1 to 10
          >filename  : balloon icon filename, ex: "balloon01", must be in System folder!
        
          example :
          @>Script: New_Balloon(-1,1,"balloon01")
        
          this will show balloon index 1 from file "balloon01" on player character


This post has been edited by reijubv: Apr 1 2009, 09:36 PM


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
Valnar
post Mar 15 2009, 09:56 AM
Post #2


Level 4
Group Icon

Group: Member
Posts: 47
Type: Developer
RM Skill: Masterful




Could be good to put the Script in an Spoiler(,and give exaple Ballons).
i Think this Scripts isn´t really needed because for that you could changed the grafic or oyu just will use the new for script,but correct me if i´m wrong ^^


__________________________
Memories....
http://avalnar.co.cc/ - PHP;HTML;CSS;SQL;PS;TOP Tutorials and Sources

Go to the top of the page
 
+Quote Post
   
reijubv
post Mar 15 2009, 08:43 PM
Post #3


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




Mmm..
When I used the spoiler, all the texts were aligned to left...

For the sample balloon icons, Im still making it now, I'll upload them later...

Well, in my project i need many balloon so I made this script,
then I think share it here is a good idea..

Thanks for the suggestion!


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
miget man12
post Mar 15 2009, 09:00 PM
Post #4


Making a Comeback
Group Icon

Group: Revolutionary
Posts: 393
Type: Musician
RM Skill: Intermediate




You might be better off just uploading a text file with the script in it... But I think script is a good idea, I'm probably going to end up using it, good job.

All the best,
Miget man12


__________________________
By the way:


I'm bored because it's summer so I decided to drop by for a bit.
Go to the top of the page
 
+Quote Post
   
Valnar
post Mar 16 2009, 08:37 AM
Post #5


Level 4
Group Icon

Group: Member
Posts: 47
Type: Developer
RM Skill: Masterful




Gonna try the sample Demo then so upload it quick then and i give more suggestions xP


__________________________
Memories....
http://avalnar.co.cc/ - PHP;HTML;CSS;SQL;PS;TOP Tutorials and Sources

Go to the top of the page
 
+Quote Post
   
reijubv
post Mar 17 2009, 08:46 PM
Post #6


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




hmm..
demo?

maybe I'll make one,
im in middle of a test in my school, so im quite busy studying at home (oh yeah?)

so maybe next week, after the test has finished..


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
miget man12
post Mar 17 2009, 08:55 PM
Post #7


Making a Comeback
Group Icon

Group: Revolutionary
Posts: 393
Type: Musician
RM Skill: Intermediate




I'd be happy to make a demo for you, reijubv, if you'd like? I got more than enough free time...

~Miget man12


__________________________
By the way:


I'm bored because it's summer so I decided to drop by for a bit.
Go to the top of the page
 
+Quote Post
   
reijubv
post Mar 17 2009, 10:03 PM
Post #8


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




QUOTE (miget man12 @ Mar 18 2009, 11:55 AM) *
I'd be happy to make a demo for you, reijubv, if you'd like? I got more than enough free time...

~Miget man12


really?
thanks,

please make one for me!


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
Sakura_Martinez
post Mar 18 2009, 05:58 AM
Post #9


Level 6
Group Icon

Group: Member
Posts: 77
Type: Writer
RM Skill: Intermediate




This is pretty useful.
Thanks for sharing the script! happy.gif


__________________________
Courage is the magic that turns dreams into reality.

My Blogsite
<< Click on my dragon PUHLEASSSEEE >>>>
Go to the top of the page
 
+Quote Post
   
reijubv
post Mar 18 2009, 08:22 PM
Post #10


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




QUOTE (Sakura_Martinez @ Mar 18 2009, 08:58 PM) *
This is pretty useful.
Thanks for sharing the script! happy.gif


Really?
Im glad to help laugh.gif
Thanks!


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
reijubv
post Mar 27 2009, 09:24 PM
Post #11


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




Sorry 4 double post, but I just add a demo and some custom balloon examples....! happy.gif


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
Sakura_Martinez
post Mar 28 2009, 04:12 AM
Post #12


Level 6
Group Icon

Group: Member
Posts: 77
Type: Writer
RM Skill: Intermediate




lol, love the balloons! They're cute.


__________________________
Courage is the magic that turns dreams into reality.

My Blogsite
<< Click on my dragon PUHLEASSSEEE >>>>
Go to the top of the page
 
+Quote Post
   
reijubv
post Mar 31 2009, 01:38 AM
Post #13


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




haha, me too!

I like making those balloons, and i think I'll make another and will post it soon!!


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
kocoum
post May 24 2009, 01:53 PM
Post #14


Level 2
Group Icon

Group: Member
Posts: 25
Type: None
RM Skill: Undisclosed




where should the script be placed? above Main?


EDIT: oh nevermind that.

but i'm not really sure how to use it. don't really understand the example of "how to use"

This post has been edited by kocoum: May 24 2009, 02:01 PM
Go to the top of the page
 
+Quote Post
   
reijubv
post May 24 2009, 10:18 PM
Post #15


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




@kocoum
Try download the demo and check every events that is on the map....


__________________________
I'll be back again :P
Go to the top of the page
 
+Quote Post
   
kocoum
post May 24 2009, 11:18 PM
Post #16


Level 2
Group Icon

Group: Member
Posts: 25
Type: None
RM Skill: Undisclosed




thanks very much smile.gif
it works great, nice job
Go to the top of the page
 
+Quote Post
   
reijubv
post May 24 2009, 11:43 PM
Post #17


It's been awhile lol
Group Icon

Group: Revolutionary
Posts: 168
Type: Artist
RM Skill: Advanced




@kocoum
You're welcome...!
happy.gif


__________________________
I'll be back again :P
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: 18th May 2013 - 11:21 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker