Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 RPG::ME Extended
#1
RPG::ME Extended

by Kyonides

Introduction

This scriptlet is just an extension of the ME already present in both editions of the RPG Maker engine. It mimics the BGM's and BGS's ability to keep track of the ME currently playing. If any...

The Script

Code:
# * RPG::ME Extended * #
#  2024-05-04

module RPG
  class ME
    @@last = ME.new
    def play
      if @name.empty?
        Audio.me_stop
        @@last = ME.new
      else
        Audio.me_play('Audio/ME/' + @name, @volume, @pitch, pos)
        @@last = self.clone
      end
    end
    alias :replay :play

    def self.stop
      Audio.me_stop
      @@last = ME.new
    end

    def self.fade(time)
      Audio.me_fade(time)
      @@last = ME.new
    end

    def self.last
      @@last
    end
  end
end

Terms & Conditions

Free for use in ANY Gamer game.
That's it! Grinning
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#2
Important Bug Fix

I revisited my scriptlet as of recent only to fix the module / class scope issue that it triggered while creating a new ME object.
Without the Bug bug fix, the code would make your game crash in no time. Happy with a sweat
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Charlie's Mini-Map Extended DerVVulfman 16 13,205 09-02-2020, 03:49 AM
Last Post: DerVVulfman
   Extended Random Encounters Kread-EX 6 11,217 06-17-2010, 02:42 PM
Last Post: Kread-EX
   Screen Shake Extended DerVVulfman 0 5,604 12-31-2009, 05:16 AM
Last Post: DerVVulfman



Users browsing this thread: