DeM0nFiRe's Advanced Cutscenes

DeM0nFiRe's Advanced Cutscenes
Current Version: v1.0(8/17/07)

Introduction

Recently I've been seeing alot of talk about cutscenes, and I decided to make a cutscene script. Basically this script provides biulding blocks for you to make a cutscene similar in looks to a cross between Fire Emblem and Knights of the Old Republic.

Features
# - Current Features: This scripts lets you create cutscenes with about 1/10   #
#                     The effort needed to create the same cutscenes without   #
#                     this script.                                             #
#                                                                              #
#                     Currently, this script let's you create cutscenes with:  #
#                     -Widescreen Format                                       #
#                     -Top and Bottom Message                                  #
#                     -Wait For C                                              #
#                     -Yes, No Option                                          #
#                     -2,3 and 4 Choices                                       #
#                     -Map Background                                          #
#                     -Show, Move, and Flash Face                              #
#                     -Dispose                                                 #
#                                                                              #
Expand to see the code.

Screenshots

screenshots Spoiler


Script
script Spoiler
################################################################################
# - Title: DeM0nFiRe's Cutscenes                                               #
# - Scripted by: DeM0nFiRe                                                     #
# - Current Version: V1.0                                                      #
# - Current Features: This scripts lets you create cutscenes with about 1/10   #
#                     The effort needed to create the same cutscenes without   #
#                     this script.                                             #
#                                                                              #
#                     Currently, this script let's you create cutscenes with:  #
#                     -Widescreen Format                                       #
#                     -Top and Bottom Message                                  #
#                     -Wait For C                                              #
#                     -Yes, No Option                                          #
#                     -2,3 and 4 Choices                                       #
#                     -Map Background                                          #
#                     -Show, Move, and Flash Face                              #
#                     -Dispose                                                 #
#                                                                              #
#=======Make sure you read everything from this double line to the next========#
# - Requirements: AC_Windowskin_01(Information on obtaining this can be found  #
#                 in the script's topic thread.                                #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - Installation: 1.)Insert this script above main                             #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - How to Build a Cutscene:                                                   #
#       This script contains the building blocks for making cutscene, however  #
#   the creativity of putting it together is all up to you. Below are the      #
#   things you need to do to start making your cutscene.                       #
#                                                                              #
#   Preliminary Setup per Cutscene:                                            #
#   1.)Create an event or event page that you want to trigger the start of the #
#   cutscene. This could be something like an NPC that the player talks to, or #
#   an invisible event that the player steps on, it's up to you.               #
#                                                                              #
#   2.)Use the Call Script Command and put this line: @cutscene = Cutscene.new #
#                                                                              #
#   Building a Cutscene:                                                       #
#   To build a cutscene, you have to call the different methods contained in   #
#   this script using the Call Script event command in the same event where    #
#   you setup the cutscene. Below is a list of methods, what they do and how   #
#   to call them                                                               #
#                                                                              #
#   Widescreen Format                                                          #
#   This gives an illusion of widescreen by putting black bars across the top  #
#   and bottom of the screen.                                                  #
#   To Call: @cutscene.widescreen                                              #
#                                                                              #
#   Top and Bottom Message                                                     #
#   These tow methods display a message on the top and bottom of the screen    #
#   respectively. The top message is yellow, bottom is blue.                   #
#   To Call: Top: $top_message_1 = "[first line of the message]"               #
#                 $top_message_2 = "[second line of message]"(optional)        #
#                 @cutscene.message_top                                        #
#            Bottom: $bottom_message_1 = "[first line of the message]"         #
#                    $bottom_message_2 = "[second line of message]"(optional)  #
#                    @cutscene.message_bottom                                  #
#                                                                              #
#   Wait For C                                                                 #
#   This will halt everything until the player presses the C button as defined #
#   in the game's controls.                                                    #
#   To Call: @cutscene.wait_for_c                                              #
#                                                                              #
#   Yes, No Option                                                             #
#   This gives the player a choice between yes and no. If Yes is picked,       #
#   switch 1000 will be on, if No, the switch will be off                      #
#   To Call: @cutscene.yes_no                                                  #
#                                                                              #
#   2,3, and 4 Choices                                                         #
#   These 3 methods give the player a choice between 2, 3 and 4 choices.       #
#   Variable 1000 will be set to the number of the choice selected by the      #
#   player.                                                                    #
#   To Call: 2 Choices: $choice_1 = "[choice]"                                 #
#                       $choice_2 = "[choice]"                                 #
#                       @cutscene.choices_2                                    #
#            3 Choices: $choice_1 = "[choice]"                                 #
#                       $choice_2 = "[choice]"                                 #
#                       $choice_3 = "[choice]"                                 #
#                       @cutscene.choices_3                                    #
#            4 Choices: $choice_1 = "[choice]"                                 #
#                       $choice_2 = "[choice]"                                 #
#                       $choice_3 = "[choice]"                                 #
#                       $choice_4 = "[choice]"                                 #
#                       @cutscene.choices_4                                    #
#                                                                              #
#   Map Background                                                             #
#   This will display the battle background for the map you're on. Useful for  #
#   conversation cutscenes when combined with Show Face and the Messages       #
#   To Call: @cutscene.map_background                                          #
#                                                                              #
#   Show, Move and Flash Face                                                  #
#   These will show a face graphic, move an already called graphic, and flash  #
#   a graphic respectively.                                                    #
#   NOTE: To use this feature you must put all face graphics you'll use in     #
#   'Pictures/Faces'. Also, the face graphics must be named Face_# where # is  #
#   any number. This number is the number you'll use to call the face graphic. #
#   To Call: Show Face: @cutscene.face([x pixel],[y pixel],[number of face]    #
#            Move Face: @cutscene.move_face([x],[y],[order in which you called #
#                                                    the face you want to move #
#            Flash Face: @cutscene.flash_face([order in which you called the   #
#                                              face you want to flash          #
#   Dispose                                                                    #
#   This will get rid of everything from your cutscene. However, if switches   #
#   and variables have changed due to Yes, No or Choices, they will remain     #
#   changed until you clear them.                                              #
#   To Call: @cutscene.dispose                                                 #
#                                                                              #
#   NOTE: To make sure the cutscene doesn't repeat over and over, put an Erase #
#         Event or a Wait at the end of the cutscene event.                    #
#         If there are any other questions or problem, caontact DeM0nFiRe      #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - Terms of Use: In order to use this script you MUST agree to ALL of the     #
#                 following:                                                   #
#                       >You will credit DeM0nFiRe in any and all projects you #
#                        you use this script in, or any pictures made to go    #
#                        this script                                           #
#                       >The pictures named in the requirements are for this   #
#                        ONLY, and may NOT be used for any other purpose       #
#                       >This script will be used ONLY for non-commercial(free)#
#                        projects. If you would like to use this script in a   #
#                        project for money, contact DeM0nFiRe.                 #
#===Thank you for using DeM0nFiRe's Advanced Cutscenes=========================#
################################################################################
class Cutscene
#------------------------------------------------------------------------------
#  - Initialize                                                               
#------------------------------------------------------------------------------
  def initialize
    @faces = []
    @face_number = 0
  end
#------------------------------------------------------------------------------
#  - Widescreen                                                               
#------------------------------------------------------------------------------
  def widescreen
    @widescreen_top = Sprite.new
    @widescreen_top.bitmap = Bitmap.new(640,80)
    @widescreen_top.bitmap.fill_rect(0,0,640,100,Color.new(0,0,0))
    @widescreen_top.z = 9998
    @widescreen_bottom = Sprite.new
    @widescreen_bottom.bitmap = Bitmap.new(640,80)
    @widescreen_bottom.bitmap.fill_rect(0,0,640,100,Color.new(0,0,0))
    @widescreen_bottom.y = 400
    @widescreen_bottom.z = 9998
    @widescreen_on = true
  end
#------------------------------------------------------------------------------
#  - Bottom Message                                                           
#------------------------------------------------------------------------------
  def message_bottom
    if @message_bottom_on
      @message_bottom.dispose
    end
    @message_bottom = Sprite.new
    @message_bottom.bitmap = Bitmap.new(640,100)
    @message_bottom.bitmap.clear
    @message_bottom.bitmap.font.color = Color.new(150,150,255)
    @message_bottom.bitmap.draw_text(20,0,600,32,$bottom_message_1)
    if $bottom_message_2 != nil
      @message_bottom.bitmap.draw_text(20,32,600,32,$bottom_message_2)
    end
    @message_bottom.y = 400
    @message_bottom.z = 9999
    @message_bottom_on = true
  end
#------------------------------------------------------------------------------
#  - Top Message                                                           
#------------------------------------------------------------------------------
  def message_top
    if @message_top_on
      @message_top.dispose
    end
    @message_top = Sprite.new
    @message_top.bitmap = Bitmap.new(640,100)
    @message_top.bitmap.clear
    @message_top.bitmap.font.color = Color.new(255,255,0)
    @message_top.bitmap.draw_text(20,0,600,32,$top_message_1)
    if $top_message_2 != nil
      @message_top.bitmap.draw_text(20,32,600,32,$top_message_2)
    end
    @message_top.y = 0
    @message_top.z = 9999
    @message_top_on = true
  end
#------------------------------------------------------------------------------
#  - Wait For C                                                               
#------------------------------------------------------------------------------
  def wait_for_c
    loop do
      Graphics.update
      Input.update
      if Input.trigger?(Input::C)
        break
      end
    end
  end
#------------------------------------------------------------------------------
# - Yes, No, Option
#------------------------------------------------------------------------------
  def yes_no
    s1 = "Yes"
    s2 = "No"
    @command_window = Window_Command.new(192, [s1, s2])
    @command_window.back_opacity = 0
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 400
    @command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
    loop do
      Input.update
      Graphics.update
      @command_window.update
      if Input.trigger?(Input::C)
        break
      end
    end
    if @command_window.index == 0
      $game_switches[1000] = true
    else
      $game_switches[1000] = false
    end
    @command_window.dispose
  end
#------------------------------------------------------------------------------
# - 2 Choices
#------------------------------------------------------------------------------
  def choices_2
    s1 = $choice_1
    s2 = $choice_2
    @command_window = Window_Command.new(192, [s1, s2])
    @command_window.back_opacity = 0
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 400
    @command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
    loop do
      Input.update
      Graphics.update
      @command_window.update
      if Input.trigger?(Input::C)
        break
      end
    end
    $game_variables[1000] = @command_window.index + 1
    @command_window.dispose
  end
#------------------------------------------------------------------------------
# - 3 Choices
#------------------------------------------------------------------------------
  def choices_3
    s1 = $choice_1
    s2 = $choice_2
    s3 = $choice_3
    @command_window = Window_Command.new(192, [s1, s2, s3])
    @command_window.back_opacity = 0
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 400
    @command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
    loop do
      Input.update
      Graphics.update
      @command_window.update
      if Input.trigger?(Input::C)
        break
      end
    end
    $game_variables[1000] = @command_window.index + 1
    @command_window.dispose
  end
#------------------------------------------------------------------------------
# - 4 Choices
#------------------------------------------------------------------------------
  def choices_4
    s1 = $choice_1
    s2 = $choice_2
    s3 = $choice_3
    s4 = $choice_4
    @command_window = Window_Command.new(192, [s1, s2, s3, s4])
    @command_window.contents.font.size = 12
    @command_window.back_opacity = 0
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 400
    @command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
    @command_window.contents.font.size = 12
    loop do
      Input.update
      Graphics.update
      @command_window.update
      if Input.trigger?(Input::C)
        break
      end
    end
    $game_variables[1000] = @command_window.index + 1
    @command_window.dispose
  end
#------------------------------------------------------------------------------
# - Map Background
#------------------------------------------------------------------------------
  def map_background
    @map = load_data(sprintf("Data/Map%03d.rxdata", $game_map.map_id))
    @map_background = Sprite.new
    @map_background.y = 80
    @map_background.bitmap = RPG::Cache.battleback($data_tilesets[@map.tileset_id].battleback_name)
    @map_background_on = true
  end
#------------------------------------------------------------------------------
# - Show Face
#------------------------------------------------------------------------------
  def face(x,y,face_graphic)
    @face_number = @face_number + 1
    @faces[@face_number] = Sprite.new
    @faces[@face_number].bitmap = RPG::Cache.picture("Faces/Face_" + face_graphic.to_s)
    @faces[@face_number].x = x
    @faces[@face_number].y = y
    @face_on = true
  end
#------------------------------------------------------------------------------
# - Move Face
#------------------------------------------------------------------------------
  def move_face(x,y,face_number)
    @faces[face_number].x = x
    @faces[face_number].y = y
  end
#------------------------------------------------------------------------------
# - Flash Face
#------------------------------------------------------------------------------
  def flash_face(face_number)
    @faces[face_number].flash(Color.new(255,255,255), 15)
    @frame = Graphics.frame_count
    loop do
      @faces[face_number].update
      Graphics.update
      if @frame == (Graphics.frame_count - 15)
        break
      end
    end
  end
#------------------------------------------------------------------------------
# - Dispose
#------------------------------------------------------------------------------
  def dispose
    if @widescreen_on
      @widescreen_top.dispose
      @widescreen_bottom.dispose
    end
    if @message_top_on
      @message_top.dispose
    end
    if @message_bottom_on
      @message_bottom.dispose
    end
    if @map_background_on
      @map_background.dispose
    end
    if @face_on
      for i in 1...(@face_number+1)
      @faces[i].bitmap.dispose
      @faces[i] = 0
     end
    end
  end
end


Expand to see the code.


Instructions

instructions Spoiler
# - Requirements: AC_Windowskin_01(Information on obtaining this can be found  #
#                 in the script's topic thread.                                #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - Installation: 1.)Insert this script above main                             #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - How to Build a Cutscene:                                                   #
#       This script contains the building blocks for making cutscene, however  #
#   the creativity of putting it together is all up to you. Below are the      #
#   things you need to do to start making your cutscene.                       #
#                                                                              #
#   Preliminary Setup per Cutscene:                                            #
#   1.)Create an event or event page that you want to trigger the start of the #
#   cutscene. This could be something like an NPC that the player talks to, or #
#   an invisible event that the player steps on, it's up to you.               #
#                                                                              #
#   2.)Use the Call Script Command and put this line: @cutscene = Cutscene.new #
#                                                                              #
#   Building a Cutscene:                                                       #
#   To build a cutscene, you have to call the different methods contained in   #
#   this script using the Call Script event command in the same event where    #
#   you setup the cutscene. Below is a list of methods, what they do and how   #
#   to call them                                                               #
#                                                                              #
#   Widescreen Format                                                          #
#   This gives an illusion of widescreen by putting black bars across the top  #
#   and bottom of the screen.                                                  #
#   To Call: @cutscene.widescreen                                              #
#                                                                              #
#   Top and Bottom Message                                                     #
#   These tow methods display a message on the top and bottom of the screen    #
#   respectively. The top message is yellow, bottom is blue.                   #
#   To Call: Top: $top_message_1 = "[first line of the message]"               #
#                 $top_message_2 = "[second line of message]"(optional)        #
#                 @cutscene.message_top                                        #
#            Bottom: $bottom_message_1 = "[first line of the message]"         #
#                    $bottom_message_2 = "[second line of message]"(optional)  #
#                    @cutscene.message_bottom                                  #
#                                                                              #
#   Wait For C                                                                 #
#   This will halt everything until the player presses the C button as defined #
#   in the game's controls.                                                    #
#   To Call: @cutscene.wait_for_c                                              #
#                                                                              #
#   Yes, No Option                                                             #
#   This gives the player a choice between yes and no. If Yes is picked,       #
#   switch 1000 will be on, if No, the switch will be off                      #
#   To Call: @cutscene.yes_no                                                  #
#                                                                              #
#   2,3, and 4 Choices                                                         #
#   These 3 methods give the player a choice between 2, 3 and 4 choices.       #
#   Variable 1000 will be set to the number of the choice selected by the      #
#   player.                                                                    #
#   To Call: 2 Choices: $choice_1 = "[choice]"                                 #
#                       $choice_2 = "[choice]"                                 #
#                       @cutscene.choices_2                                    #
#            3 Choices: $choice_1 = "[choice]"                                 #
#                       $choice_2 = "[choice]"                                 #
#                       $choice_3 = "[choice]"                                 #
#                       @cutscene.choices_3                                    #
#            4 Choices: $choice_1 = "[choice]"                                 #
#                       $choice_2 = "[choice]"                                 #
#                       $choice_3 = "[choice]"                                 #
#                       $choice_4 = "[choice]"                                 #
#                       @cutscene.choices_4                                    #
#                                                                              #
#   Map Background                                                             #
#   This will display the battle background for the map you're on. Useful for  #
#   conversation cutscenes when combined with Show Face and the Messages       #
#   To Call: @cutscene.map_background                                          #
#                                                                              #
#   Show, Move and Flash Face                                                  #
#   These will show a face graphic, move an already called graphic, and flash  #
#   a graphic respectively.                                                    #
#   NOTE: To use this feature you must put all face graphics you'll use in     #
#   'Pictures/Faces'. Also, the face graphics must be named Face_# where # is  #
#   any number. This number is the number you'll use to call the face graphic. #
#   To Call: Show Face: @cutscene.face([x pixel],[y pixel],[number of face]    #
#            Move Face: @cutscene.move_face([x],[y],[order in which you called #
#                                                    the face you want to move #
#            Flash Face: @cutscene.flash_face([order in which you called the   #
#                                              face you want to flash          #
#   Dispose                                                                    #
#   This will get rid of everything from your cutscene. However, if switches   #
#   and variables have changed due to Yes, No or Choices, they will remain     #
#   changed until you clear them.                                              #
#   To Call: @cutscene.dispose                                                 #
#                                                                              #
#   NOTE: To make sure the cutscene doesn't repeat over and over, put an Erase #
#         Event or a Wait at the end of the cutscene event.                    #
#         If there are any other questions or problem, caontact DeM0nFiRe      #
Expand to see the code.


Terms and Conditions
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - Terms of Use: In order to use this script you MUST agree to ALL of the     #
#                 following:                                                   #
#                       >You will credit DeM0nFiRe in any and all projects you #
#                        you use this script in, or any pictures made to go    #
#                        this script                                           #
#                       >The pictures named in the requirements are for this   #
#                        ONLY, and may NOT be used for any other purpose       #
#                       >This script will be used ONLY for non-commercial(free)#
#                        projects. If you would like to use this script in a   #
#                        project for money, contact DeM0nFiRe.                 #
Expand to see the code.


http://i13.tinypic.com/6bu4gh1.jpg[/img]
@DeM0nFiRe= to use the spoiler dingy right don't space the code start and end have it like this spoiler=instructions then it'll look like this
instructions Spoiler
test

and this will be good in conjunction with the stand graphics that i have for the RTP sets. and as for the main code do this
script Spoiler
################################################## ##############################
# - Title: DeM0nFiRe's Cutscenes #
# - Scripted by: DeM0nFiRe #
# - Current Version: V1.0 #
# - Current Features: This scripts lets you create cutscenes with about 1/10 #
# The effort needed to create the same cutscenes without #
# this script. #
# #
# Currently, this script let's you create cutscenes with: #
# -Widescreen Format #
# -Top and Bottom Message #
# -Wait For C #
# -Yes, No Option #
# -2,3 and 4 Choices #
# -Map Background #
# -Show, Move, and Flash Face #
# -Dispose #
# #
#=======Make sure you read everything from this double line to the next========#
# - Requirements: AC_Windowskin_01(Information on obtaining this can be found #
# in the script's topic thread. #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - Installation: 1.)Insert this script above main #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - How to Build a Cutscene: #
# This script contains the building blocks for making cutscene, however #
# the creativity of putting it together is all up to you. Below are the #
# things you need to do to start making your cutscene. #
# #
# Preliminary Setup per Cutscene: #
# 1.)Create an event or event page that you want to trigger the start of the #
# cutscene. This could be something like an NPC that the player talks to, or #
# an invisible event that the player steps on, it's up to you. #
# #
# 2.)Use the Call Script Command and put this line: @cutscene = Cutscene.new #
# #
# Building a Cutscene: #
# To build a cutscene, you have to call the different methods contained in #
# this script using the Call Script event command in the same event where #
# you setup the cutscene. Below is a list of methods, what they do and how #
# to call them #
# #
# Widescreen Format #
# This gives an illusion of widescreen by putting black bars across the top #
# and bottom of the screen. #
# To Call: @cutscene.widescreen #
# #
# Top and Bottom Message #
# These tow methods display a message on the top and bottom of the screen #
# respectively. The top message is yellow, bottom is blue. #
# To Call: Top: $top_message_1 = "[first line of the message]" #
# $top_message_2 = "[second line of message]"(optional) #
# @cutscene.message_top #
# Bottom: $bottom_message_1 = "[first line of the message]" #
# $bottom_message_2 = "[second line of message]"(optional) #
# @cutscene.message_bottom #
# #
# Wait For C #
# This will halt everything until the player presses the C button as defined #
# in the game's controls. #
# To Call: @cutscene.wait_for_c #
# #
# Yes, No Option #
# This gives the player a choice between yes and no. If Yes is picked, #
# switch 1000 will be on, if No, the switch will be off #
# To Call: @cutscene.yes_no #
# #
# 2,3, and 4 Choices #
# These 3 methods give the player a choice between 2, 3 and 4 choices. #
# Variable 1000 will be set to the number of the choice selected by the #
# player. #
# To Call: 2 Choices: $choice_1 = "[choice]" #
# $choice_2 = "[choice]" #
# @cutscene.choices_2 #
# 3 Choices: $choice_1 = "[choice]" #
# $choice_2 = "[choice]" #
# $choice_3 = "[choice]" #
# @cutscene.choices_3 #
# 4 Choices: $choice_1 = "[choice]" #
# $choice_2 = "[choice]" #
# $choice_3 = "[choice]" #
# $choice_4 = "[choice]" #
# @cutscene.choices_4 #
# #
# Map Background #
# This will display the battle background for the map you're on. Useful for #
# conversation cutscenes when combined with Show Face and the Messages #
# To Call: @cutscene.map_background #
# #
# Show, Move and Flash Face #
# These will show a face graphic, move an already called graphic, and flash #
# a graphic respectively. #
# NOTE: To use this feature you must put all face graphics you'll use in #
# 'Pictures/Faces'. Also, the face graphics must be named Face_# where # is #
# any number. This number is the number you'll use to call the face graphic. #
# To Call: Show Face: @cutscene.face([x pixel],[y pixel],[number of face] #
# Move Face: @cutscene.move_face([x],[y],[order in which you called #
# the face you want to move #
# Flash Face: @cutscene.flash_face([order in which you called the #
# face you want to flash #
# Dispose #
# This will get rid of everything from your cutscene. However, if switches #
# and variables have changed due to Yes, No or Choices, they will remain #
# changed until you clear them. #
# To Call: @cutscene.dispose #
# #
# NOTE: To make sure the cutscene doesn't repeat over and over, put an Erase #
# Event or a Wait at the end of the cutscene event. #
# If there are any other questions or problem, caontact DeM0nFiRe #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# - Terms of Use: In order to use this script you MUST agree to ALL of the #
# following: #
# >You will credit DeM0nFiRe in any and all projects you #
# you use this script in, or any pictures made to go #
# this script #
# >The pictures named in the requirements are for this #
# ONLY, and may NOT be used for any other purpose #
# >This script will be used ONLY for non-commercial(free)#
# projects. If you would like to use this script in a #
# project for money, contact DeM0nFiRe. #
#===Thank you for using DeM0nFiRe's Advanced Cutscenes=========================#
################################################## ##############################
class Cutscene
#------------------------------------------------------------------------------
# - Initialize
#------------------------------------------------------------------------------
def initialize
@faces = []
@face_number = 0
end
#------------------------------------------------------------------------------
# - Widescreen
#------------------------------------------------------------------------------
def widescreen
@widescreen_top = Sprite.new
@widescreen_top.bitmap = Bitmap.new(640,80)
@widescreen_top.bitmap.fill_rect(0,0,640,100,Color .new(0,0,0))
@widescreen_top.z = 9998
@widescreen_bottom = Sprite.new
@widescreen_bottom.bitmap = Bitmap.new(640,80)
@widescreen_bottom.bitmap.fill_rect(0,0,640,100,Co lor.new(0,0,0))
@widescreen_bottom.y = 400
@widescreen_bottom.z = 9998
@widescreen_on = true
end
#------------------------------------------------------------------------------
# - Bottom Message
#------------------------------------------------------------------------------
def message_bottom
if @message_bottom_on
@message_bottom.dispose
end
@message_bottom = Sprite.new
@message_bottom.bitmap = Bitmap.new(640,100)
@message_bottom.bitmap.clear
@message_bottom.bitmap.font.color = Color.new(150,150,255)
@message_bottom.bitmap.draw_text(20,0,600,32,$bott om_message_1)
if $bottom_message_2 != nil
@message_bottom.bitmap.draw_text(20,32,600,32,$bot tom_message_2)
end
@message_bottom.y = 400
@message_bottom.z = 9999
@message_bottom_on = true
end
#------------------------------------------------------------------------------
# - Top Message
#------------------------------------------------------------------------------
def message_top
if @message_top_on
@message_top.dispose
end
@message_top = Sprite.new
@message_top.bitmap = Bitmap.new(640,100)
@message_top.bitmap.clear
@message_top.bitmap.font.color = Color.new(255,255,0)
@message_top.bitmap.draw_text(20,0,600,32,$top_mes sage_1)
if $top_message_2 != nil
@message_top.bitmap.draw_text(20,32,600,32,$top_me ssage_2)
end
@message_top.y = 0
@message_top.z = 9999
@message_top_on = true
end
#------------------------------------------------------------------------------
# - Wait For C
#------------------------------------------------------------------------------
def wait_for_c
loop do
Graphics.update
Input.update
if Input.trigger?(Input::C)
break
end
end
end
#------------------------------------------------------------------------------
# - Yes, No, Option
#------------------------------------------------------------------------------
def yes_no
s1 = "Yes"
s2 = "No"
@command_window = Window_Command.new(192, [s1, s2])
@command_window.back_opacity = 0
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 400
@command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
loop do
Input.update
Graphics.update
@command_window.update
if Input.trigger?(Input::C)
break
end
end
if @command_window.index == 0
$game_switches[1000] = true
else
$game_switches[1000] = false
end
@command_window.dispose
end
#------------------------------------------------------------------------------
# - 2 Choices
#------------------------------------------------------------------------------
def choices_2
s1 = $choice_1
s2 = $choice_2
@command_window = Window_Command.new(192, [s1, s2])
@command_window.back_opacity = 0
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 400
@command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
loop do
Input.update
Graphics.update
@command_window.update
if Input.trigger?(Input::C)
break
end
end
$game_variables[1000] = @command_window.index + 1
@command_window.dispose
end
#------------------------------------------------------------------------------
# - 3 Choices
#------------------------------------------------------------------------------
def choices_3
s1 = $choice_1
s2 = $choice_2
s3 = $choice_3
@command_window = Window_Command.new(192, [s1, s2, s3])
@command_window.back_opacity = 0
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 400
@command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
loop do
Input.update
Graphics.update
@command_window.update
if Input.trigger?(Input::C)
break
end
end
$game_variables[1000] = @command_window.index + 1
@command_window.dispose
end
#------------------------------------------------------------------------------
# - 4 Choices
#------------------------------------------------------------------------------
def choices_4
s1 = $choice_1
s2 = $choice_2
s3 = $choice_3
s4 = $choice_4
@command_window = Window_Command.new(192, [s1, s2, s3, s4])
@command_window.contents.font.size = 12
@command_window.back_opacity = 0
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 400
@command_window.windowskin = RPG::Cache.windowskin("AC_Windowskin_01")
@command_window.contents.font.size = 12
loop do
Input.update
Graphics.update
@command_window.update
if Input.trigger?(Input::C)
break
end
end
$game_variables[1000] = @command_window.index + 1
@command_window.dispose
end
#------------------------------------------------------------------------------
# - Map Background
#------------------------------------------------------------------------------
def map_background
@map = load_data(sprintf("Data/Map%03d.rxdata", $game_map.map_id))
@map_background = Sprite.new
@map_background.y = 80
@map_background.bitmap = RPG::Cache.battleback($data_tilesets[@map.tileset_id].battleback_name)
@map_background_on = true
end
#------------------------------------------------------------------------------
# - Show Face
#------------------------------------------------------------------------------
def face(x,y,face_graphic)
@face_number = @face_number + 1
@faces[@face_number] = Sprite.new
@faces[@face_number].bitmap = RPG::Cache.picture("Faces/Face_" + face_graphic.to_s)
@faces[@face_number].x = x
@faces[@face_number].y = y
@face_on = true
end
#------------------------------------------------------------------------------
# - Move Face
#------------------------------------------------------------------------------
def move_face(x,y,face_number)
@faces[face_number].x = x
@faces[face_number].y = y
end
#------------------------------------------------------------------------------
# - Flash Face
#------------------------------------------------------------------------------
def flash_face(face_number)
@faces[face_number].flash(Color.new(255,255,255), 15)
@frame = Graphics.frame_count
loop do
@faces[face_number].update
Graphics.update
if @frame == (Graphics.frame_count - 15)
break
end
end
end
#------------------------------------------------------------------------------
# - Dispose
#------------------------------------------------------------------------------
def dispose
if @widescreen_on
@widescreen_top.dispose
@widescreen_bottom.dispose
end
if @message_top_on
@message_top.dispose
end
if @message_bottom_on
@message_bottom.dispose
end
if @map_background_on
@map_background.dispose
end
if @face_on
for i in 1...(@face_number+1)
@faces[i].bitmap.dispose
@faces[i] = 0
end
end
end
end
Expand to see the code.

this way you won't have a very long topic for people to scroll to acquire all of it. next time be little more careful on it k.
Yeah, I figured that out, thanks.
oh and another thing don't have these " in the spoiler code or it won't work.
No, my actual problem was that when I copied the template for submitting scripts, it added in the code to make the color of the text I copied black. Having quotations does not make the spoiler not work(that's what I'm using now, and as you can see it works)
Odd. Other than that little mix up nice work on the script.
Yet another great script by DeM0nFiRe :D
That's good, my game uses battlers I had created by artists and I had a special series drawn up for cutscenes...this could work for me.
nice script do we copy everything in script?
yes. xD
This looks pretty good. The screens shout out Fire Emblem for GC to me. Pretty nifty script though.
it be cool if there was a demo but still awesome work dude im glad someone makes something noone has tried
Thanks for the comments guys.

@mastermind:Ha ha, I'm glad you said that. The script is modeled after a mix between Fire Emblem and Star Wars: Knights of the Old Republic.
I like the script but it looks so confusing to setup.
It can be a little hard. The best thing to do would be to make sure you read the instructions completely.
ok thanks.
I like how you made a wide screen what about a static effect like a face off cut scence thing..??
Well, give me an example and I'll consider putting it in the next version.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=26938