Victor actor battler for classes

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Can you describe in more detail what your asking? I'm not sure how to help you.
 

Dragonslinger

Villager
Member
Joined
Dec 23, 2015
Messages
17
Reaction score
0
First Language
English
Primarily Uses
The regular script only allows you you to assign a battler an actor's note tag. I want the ability to assign battlers using the class note tag.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
The script is not designed to do this. It will never be modified (unless you do it yourself), so you will have to find a way around what ever it is you're trying to do.
 

Dragonslinger

Villager
Member
Joined
Dec 23, 2015
Messages
17
Reaction score
0
First Language
English
Primarily Uses
I found a snippet that would allow to use the class notes, but i keep running across an unexpected "." error on the class.note part
Here's the snippet
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * New method: actor_battler_name
#--------------------------------------------------------------------------
def actor_battler_name
class.note =~ /<BATTLER NAME: ([^><]*)>/i ? $1.to_s : ""
end
#--------------------------------------------------------------------------
# * New method: actor_battler_hue
#--------------------------------------------------------------------------
def actor_battler_hue
class.note =~ /<BATTLER HUE: (\d+)>/i ? $1.to_i : 0
end
end
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Someone with good knowledge of ruby scripting should try to help.

I believe the error is because your trying to call the class portion, but in the game_actor script it shows
Code:
  def class
    $data_classes[@class_id]
  end
So it's looking at the id for the class, and doesn't understand because it wants to see the _ for class_id.

You could maybe then try making a new method
def classnote
$data_classes[@class_note]
end

I have no idea if that will work.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top