I'm using the latest Battle Symphony script by Yami and its great but I'm a bit stumped when it comes to using tags for Kaduki sprites. I'm trying to do two things; (1) have my characters face the opposite direction so they can perform 'back stabs' and (2) have Kaduki sprites appear as enemies for my characters to fight. Any help would be appreciated.
Simple Symphony Tag Question
RGSSx Script SupportFor the reverse direction, for now there is no "face" tag in Symphony. Well, it is not hard to add.
class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # alias method: imported_symphony #-------------------------------------------------------------------------- alias :imported_symphony_dir_face :imported_symphony def imported_symphony case @action.upcase when /FACE/i action_set_battler_facing else imported_symphony_dir_face end end def action_set_battler_facing targets = get_action_targets.uniq return if targets.size == 0 case @action_values[1] when "REVERSE", "BACKWARD" reverse_direction = true when "1", "2", "3", "4", "6", "7", "8", "9" direction = @action_values[1].to_i when "DOWN" direction = 2 when "LEFT" direction = 4 when "RIGHT" direction = 6 when "UP" direction = 8 else return end targets.each { |target| target.face_direction(reverse_direction ? Direction.opposite(target.direction) : direction) } endendclass Game_Battler < Game_BattlerBase def face_direction(direction) @direction = direction return if $imported["BattleSymphony-HB"] && self.use_hb? return if SYMPHONY::Visual:😀ISABLE_AUTO_MOVE_POSE && self.use_custom_charset? @pose = Direction.pose(direction) endendNow you should be able to use
face: targets, reversein symphony tags to reverse facing.
For enemy's Kaduki sprites, just assign character set like normal (<battler set: filename>). If the file name has the proper Kaduki identifier format ("_8D"), it will automatically be recognized as Kaduki battler.
class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # alias method: imported_symphony #-------------------------------------------------------------------------- alias :imported_symphony_dir_face :imported_symphony def imported_symphony case @action.upcase when /FACE/i action_set_battler_facing else imported_symphony_dir_face end end def action_set_battler_facing targets = get_action_targets.uniq return if targets.size == 0 case @action_values[1] when "REVERSE", "BACKWARD" reverse_direction = true when "1", "2", "3", "4", "6", "7", "8", "9" direction = @action_values[1].to_i when "DOWN" direction = 2 when "LEFT" direction = 4 when "RIGHT" direction = 6 when "UP" direction = 8 else return end targets.each { |target| target.face_direction(reverse_direction ? Direction.opposite(target.direction) : direction) } endendclass Game_Battler < Game_BattlerBase def face_direction(direction) @direction = direction return if $imported["BattleSymphony-HB"] && self.use_hb? return if SYMPHONY::Visual:😀ISABLE_AUTO_MOVE_POSE && self.use_custom_charset? @pose = Direction.pose(direction) endendNow you should be able to use
face: targets, reversein symphony tags to reverse facing.
For enemy's Kaduki sprites, just assign character set like normal (<battler set: filename>). If the file name has the proper Kaduki identifier format ("_8D"), it will automatically be recognized as Kaduki battler.
@Shadowlurk So does this overwrite any of the regular directional usage at all? I may be wanting to add this to my project also
It overwrites nothing at all.
Thanks for the reply man but I'm not sure if this is working correctly for me. All this does is move the subject in the opposite direction. Their sprites don't actually flip and face the other way. Also, sorry to be such a noob but I'm having trouble implementing the enemy kaduki sprites. I know you typed (<battler set: filename>) but could you actually give me a concrete example? I'm trying <kaduki battlers: "filename"> & <8d/kaduki battlers: "filename"> in the enemy's notes but I'm not getting anything. I think I also just realized that even if I did get it to work there's no way I can actually equip anything on these enemies like swords and such for them to swing with so all of this might just be moot.
I don't know the scripts, but what you typed is not what ShadowLurk said to type.
Also, please add a link to the script you're using to make it easy & fast for others to look up. If you'd put that in your original post, I'd have gone in and had a look at what notes it's expecting. But I'm not going to search around for it in the limited time I have.
Also, please add a link to the script you're using to make it easy & fast for others to look up. If you'd put that in your original post, I'd have gone in and had a look at what notes it's expecting. But I'm not going to search around for it in the limited time I have.
Thanks for the reply and here are the links to the scripts I'm using. Symphony and its Kaduki Add-on. I also typed in exactly what he said to type but to no avail. Sorry, I should have said that in my last post.
Are there forum threads or blog posts where these are introduced? It's usually better to give links to those than directly to the scripts, as often they include screenshots and examples that aren't listed in the scripts.
I've searched but have found nothing so far. Do you understand what I'm trying to do? I could elaborate more if you're not sure.
@Shadowlurk Unknowingly you just added a ton of stuff to my project and I didn't even ask for it thanks a billion and 1!
Where did you get these from? I see nothing in those scripts that indicates you need to use those notetags. All I see in the scripts is whether the CHARACTER file name starts with _8D.
I thought he meant to implement them like you would for holder's batttler sprites (like <holders battler: "filename">). Which is why I did the same for kaduki, hoping it would work.
Well, I forgot to account Kaduki battlers that needs explicit mirroring.
Change my snippet to this (actually, I just added a single line).
As for the Kaduki enemy battler, just use the standard <battler set: filename> tag.... For example <battler set: monster_8D>
Change my snippet to this (actually, I just added a single line).
Code:
class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # alias method: imported_symphony #-------------------------------------------------------------------------- alias :imported_symphony_dir_face :imported_symphony def imported_symphony case @action.upcase when /FACE/i action_set_battler_facing else imported_symphony_dir_face end end def action_set_battler_facing targets = get_action_targets.uniq return if targets.size == 0 case @action_values[1] when "REVERSE", "BACKWARD" reverse_direction = true when "1", "2", "3", "4", "6", "7", "8", "9" direction = @action_values[1].to_i when "DOWN" direction = 2 when "LEFT" direction = 4 when "RIGHT" direction = 6 when "UP" direction = 8 else return end targets.each { |target| target.face_direction(reverse_direction ? Direction.opposite(target.direction) : direction) } endendclass Game_Battler < Game_BattlerBase def face_direction(direction) @direction = direction self.sprite.mirror = [9, 6, 3].include?(@direction) if use_custom_charset? # Added this line~ return if $imported["BattleSymphony-HB"] && self.use_hb? return if SYMPHONY::Visual::DISABLE_AUTO_MOVE_POSE && self.use_custom_charset? @pose = Direction.pose(direction) endend
Thanks for the help my sprites mirror like I wanted them to! But unfortunately the "<battler set: monster_8D>" isn't working. Do I need to have it in a specific resource file or something like that?
Original thread: https://forums.rpgmakerweb.com/threads/simple-symphony-tag-question.25993/