Just need help fixing this script line

When the forums changed it messed up old scripts posted, tried sorting this one myself but I haven't seen this particular script setup before.

I get the error for the line " class[-_ ]?holder[-_ ]?battler[-_ ]?{class_id}:\s*(.*)\s*>"
Not sure how to unsort that one, any help would be appreciated.

The Error Message.

The unsorted/broken script

Spoiler: Code
#===============================================================================#
# script: Customizable Holder Battlers
# Author: Selchar
# Credits: Yami
#================================================================================
#begin
# This is an extention of Yami's Holder Battler addon for Battle Engine Symphony.
# It allows for different battlers based on class id, as well as changing it
# via scriptcall.
# Scriptcall changes take priority over class specific, which takes priority over
# the default holder notetag.
#-------------------------------------------------------------------------------#
#Actor Notetag
# <class holder battler class_id: filename>
#-------------------------------------------------------------------------------#
# Scriptcall
#-------------------------------------------------------------------------------
# $game_actors[actor_id].new_holders_name = 'filename'

# Replace class_id or actor_id with the relevant number, and filename with the
# name of the holder style image you want to use.
# =end
#===============================================================================#
# The script
#===============================================================================
module
Selchar module Symphony
def self.holder_class(class_id)
class[-_ ]?holder[-_ ]?battler[-_ ]?{class_id}:\s*(.*)\s*>
end
end
end
class Game_Actor < Game_Battler
attr_accessor:new_holders_name def holders_name
if
@new_holders_name != nil
return @new_holders_name
if @new_holders_name != ''
end
return
actor.class_holder_name(@class_id)
if actor.class_holder_name(@class_id)
return actor.holders_name
end
end
class RPG::Actor
def class_holder_name(class_id)
if @class_holder_name.nil?
@class_holder_name = {} $data_classes.each
do |i| next
unless i @class_holder_name[i.id] = $1
if @note =~ Selchar::Symphony.holder_class(i.id)
end
end
@class_holder_name[class_id]
end
end
#===============================================================================#
Spoiler
Code:
#===============================================================================
# Script: Customizable Holder Battlers
# Author: Selchar
# Requestor: Nosleinad
# Credits: Yami
#================================================================================
=begin
This is an extention of Yami's Holder Battler addon for Battle Engine Symphony.
It allows for different battlers based on class id, as well as changing it viascriptcall.
Scriptcall changes take priority over class specific, which takespriority over the default holder notetag.
#-------------------------------------------------------------------------------
# Actor Notetag
#-------------------------------------------------------------------------------
<class holder battler class_id: filename>
#-------------------------------------------------------------------------------
# Scriptcall
#-------------------------------------------------------------------------------
$game_actors[actor_id].new_holders_name = 'filename'
Replace class_id or actor_id with the relevant number, and filename with thename of the holder style image you want to use.
=end
#===============================================================================
# The script
#===============================================================================
module Selchar
module Symphony
  def self.holder_class(class_id)
   /<class[-_ ]?holder[-_ ]?battler[-_ ]?#{class_id}:\s*(.*)\s*>/i
  end
end
end

class Game_Actor < Game_Battler
    attr_accessor :new_holders_name
    def holders_name
        if @new_holders_name != nil
            return @new_holders_name if @new_holders_name != ''
        end
        return actor.class_holder_name(@class_id) if actor.class_holder_name(@class_id)
        return actor.holders_name
    end
end

class RPG::Actor
def class_holder_name(class_id)
    if @class_holder_name.nil?
        @class_holder_name = {}
        $data_classes.each do |i|
            next unless i
            if @note =~ Selchar::Symphony.holder_class(i.id)
             @class_holder_name[i.id] = $1
            end
        end
    end
    @class_holder_name[class_id]
end
end
#===============================================================================
# End of File
#===============================================================================
that's a regexp structure, it should be correct.
make sure you have the requirements for it to run.
Try this
Spoiler: code
Ruby:
#===============================================================================
# Script: Customizable Holder Battlers
# Author: Selchar
# Requestor: Nosleinad
# Credits: Yami
#===============================================================================
=begin
    This is an extention of Yami's Holder Battler addon for Battle Engine Symphony.
    It allows for different battlers based on class id, as well as changing it via
    scriptcall. Scriptcall changes take priority over class specific, which takes
    priority over the default holder notetag.
#-------------------------------------------------------------------------------
# Actor Notetag
#-------------------------------------------------------------------------------
    <class holder battler class_id: filename>
#-------------------------------------------------------------------------------
# Scriptcall
#-------------------------------------------------------------------------------
    $game_actors[actor_id].new_holders_name = 'filename'
    Replace class_id or actor_id with the relevant number, and filename with the
    name of the holder style image you want to use.
=end
#===============================================================================
# The script
#===============================================================================
module Selchar
    module Symphony
        def self.holder_class(class_id)
            /<class[-_ ]?holder[-_ ]?battler[-_ ]?#{class_id}:\s*(.*)\s*>/i
        end
    end
end
class Game_Actor < Game_Battler
    attr_accessor :new_holders_name
    def holders_name
        if @new_holders_name != nil
            return @new_holders_name if @new_holders_name != ''
        end
        return actor.class_holder_name(@class_id) if actor.class_holder_name(@class_id)
        return actor.holders_name
    end
end
class RPG::Actor
    def class_holder_name(class_id)
        if @class_holder_name.nil?
            @class_holder_name = {}
            $data_classes.each do |i|
                next unless i
                @class_holder_name[i.id] = $1 if @note =~ Selchar::Symphony.holder_class(i.id)
            end
        end
        @class_holder_name[class_id]
    end
end
#===============================================================================
# End of File
#===============================================================================
*ninja'd
it should be correct.
He was missing part of the code. (I think)

I've moved this thread to Script Support. Thank you.

Spoiler
Code:
#===============================================================================
# Script: Customizable Holder Battlers
# Author: Selchar
# Requestor: Nosleinad
# Credits: Yami
#================================================================================
=begin
This is an extention of Yami's Holder Battler addon for Battle Engine Symphony.
It allows for different battlers based on class id, as well as changing it viascriptcall.
Scriptcall changes take priority over class specific, which takespriority over the default holder notetag.
#-------------------------------------------------------------------------------
# Actor Notetag
#-------------------------------------------------------------------------------
<class holder battler class_id: filename>
#-------------------------------------------------------------------------------
# Scriptcall
#-------------------------------------------------------------------------------
$game_actors[actor_id].new_holders_name = 'filename'
Replace class_id or actor_id with the relevant number, and filename with thename of the holder style image you want to use.
=end
#===============================================================================
# The script
#===============================================================================
module Selchar
module Symphony
  def self.holder_class(class_id)
   /<class[-_ ]?holder[-_ ]?battler[-_ ]?#{class_id}:\s*(.*)\s*>/i
  end
end
end

class Game_Actor < Game_Battler
    attr_accessor :new_holders_name
    def holders_name
        if @new_holders_name != nil
            return @new_holders_name if @new_holders_name != ''
        end
        return actor.class_holder_name(@class_id) if actor.class_holder_name(@class_id)
        return actor.holders_name
    end
end

class RPG::Actor
def class_holder_name(class_id)
    if @class_holder_name.nil?
        @class_holder_name = {}
        $data_classes.each do |i|
            next unless i
            if @note =~ Selchar::Symphony.holder_class(i.id)
             @class_holder_name[i.id] = $1
            end
        end
    end
    @class_holder_name[class_id]
end
end
#===============================================================================
# End of File
#===============================================================================
that's a regexp structure, it should be correct.
make sure you have the requirements for it to run.

I can actually battle now, but when I use the script command $game_actors[1].new_holders_name = 'blahblah' via common event during battle I get this error instead.
that means either the common event is badly structured, or the interpreter.
start by putting the scripts in one by one, and try isolating the problem.
this script is correct, as it is.
I can actually battle now, but when I use the script command $game_actors[1].new_holders_name = 'blahblah' via common event during battle I get this error instead.
Can we take a look at how you write the script call? And by that I mean you take a screenshot to your actual script call. Not write it here.
Can we take a look at how you write the script call? And by that I mean you take a screenshot to your actual script call. Not write it here.

Okay but don't laugh. The way I have the common event called is that when the skill is used, it adds the state first and then calls the common event second.
Did you just add > symbol at the end of the script call?
Did you just add > symbol at the end of the script call?

FML thanks for pointing that out, it works now when I removed it.

Original thread: https://forums.rpgmakerweb.com/threads/just-need-help-fixing-this-script-line.118586/