Lowell

The Walking Atelier
Veteran
Joined
Apr 21, 2012
Messages
292
Reaction score
69
First Language
English
Primarily Uses
I'm trying to recreate the BP System found in Romancing SaGa: Minstrel's Song and I've got this much of it working already.
 

#========================================# Initial BP Setting#----------------------------------------# Grabs the Initial BP Value at the# start of battle and on revival.#========================================class Game_Battler < Game_BattlerBase    def init_mp     self.mp = 4 #Note Tag Goes Here    end     #------------------------    # Battle Start Alias    #------------------------    alias lowe_battle_start on_battle_start    def on_battle_start        init_mp    endendWhat I need help with at the moment is implementing Notetags that can be read from Actors, Enemies, and Items. I'm already familiar with writing the REGEXP that grabs the value (it should work according to rubular), just not too familiar with having it load in various environments.
 
Last edited by a moderator:

IceDragon

Elder Cookie Dragon
Veteran
Joined
Mar 8, 2012
Messages
73
Reaction score
63
First Language
English
Primarily Uses
N/A
Code:
class RPG::Actor  def initial_mp    @note =~ /<initial_mp:\s+(\d+)>/ ? $1 : 4   endend class Game_Actor  def init_mp    actor.initial_mp  endend
 

Lowell

The Walking Atelier
Veteran
Joined
Apr 21, 2012
Messages
292
Reaction score
69
First Language
English
Primarily Uses
With a bit of tweaking I got it to work correctly, thanks IceDragon.

The finish code is

class RPG::Actor  def initial_mp    @note =~ /<initial[-_ ]?mp:\s*(\d+)\s*>/i ? $1 : 4  endendclass RPG::Enemy  def initial_mp    @note =~ /<initial[-_ ]?mp:\s*(\d+)\s*>/i ? $1 : 4  endendclass Game_Actor  def init_mp    self.mp = actor.initial_mp.to_i  endendclass Game_Enemy  def init_mp    self.mp = enemy.initial_mp.to_i  endend  class Game_Battler < Game_BattlerBase        #------------------------    # Battle Start Alias    #------------------------    alias lowe_battle_start on_battle_start    def on_battle_start        init_mp    endendThis Topic can be locked.
 
Last edited by a moderator:

Latest Threads

Latest Profile Posts

Worked on a cutscene skip domino effect using Maker Systems' script as the basis. Basically if I have a batch of cutscenes in a row on different maps, now when you skip one cutscene it will skip the entire set. No more spamming X to skip a scene every new map.

Oh and it will work regardless of where you do it from in the set. Convenient!
seems absolutely WILD to me now all the hundreds of hours of work I used to do in 2k(3) over a decade ago with a resolution of 320x240. that seems so insanely TINY now, seemed so normal at the time!
Playing Aroma Indosiar theme song.
Aroma is an Indonesian TV show about cooking. :)
Working on a characteeer! (Why is it so hard to color hair?) ;-;
Silly-Sketches.png
Just finished eventing a couple simple puzzles in RMMV, for my very first game "Sample Quest." Just messing around, throwing things together, and calling it a story XD On a non-RM note, got my hair cut today!

Forum statistics

Threads
115,376
Messages
1,089,384
Members
150,074
Latest member
Blazeymix
Top