RPG Maker Forums

Hello, I have a question

I'm using Yami's Classic Actime Time battle script and an add-on called Lunatic CATB Start and I want to make a starting formula tag allows me to make the start rate is from 0 to X%, I tried to create a new method in the CATB Start script, but it doesn't work, can some help me to make what I want to do?


The method I tried to create, based in this's script start battle tag is the next one


#----------------------------------------------------------------------
# ATB Starter Formula No.1: RANDOM START BATTLE
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set starting ATB to X percent.
#
# Formula notetag:
# <custom catb start: rand start battle x%>
#----------------------------------------------------------------------
when /RAND START BATTLE[ ](\d+)([%%])/i
@catb_value = MAX_CATB_VALUE * rand($1.to_i) / 100


However, it works exactly the same as Start battle one, can someone help me to change this one? Thank you :)

P.D: I tried to use the custom catb start string format, but I'm not sure how to make it work

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top