Help - Search - Members - Calendar
Full Version: Tankentai 3.4 Animated Enemy Animation Mirror
RPG RPG Revolution Forums > Scripting > Script Development and Support > Script Requests
Penguin
I'm posting this here because I'm not allowed to post a topic in the script development forum? mellow.gif

I'm using Tankentai v3.4, and all my animated battler enemies' skills' animations are mirrored. I tried removing the "Invert" line of this...

CODE
"Clear image"          => ["Clear image"],
  "Afterimage ON"        => ["Afterimage ON"],
  "Afterimage OFF"       => ["Afterimage OFF"],
  "Invert"               => ["Invert"],
  "Don't Wait"           => ["Don't Wait"],
  "Can Collapse"         => ["Can Collapse"],
  "Two Wpn Only"         => ["Two Wpn Only"],
  "One Wpn Only"         => ["One Wpn Only"],
  "Process Skill"        => ["Process Skill"],
  "Process Skill End"    => ["Process Skill End"],
  "Start Pos Change"     => ["Start Pos Change"],
  "Start Pos Return"     => ["Start Pos Return"],
  "Cancel Action"        => ["Cancel Action"],
  "End"                  => ["End"],


...But nothing happened. Does anyone know how to disable the animated enemy animation mirror?
Hopefully someone will answer this unlike all my other topics.
Penguin
BUMP
Night_Runner
So you would like to mirror the skills?

If you go to line 1028/1029 of Sideview 2 (3.4e) it should look like this:
img


CODE
  def pop_damage(target, obj, action)
    index = @active_battler.index


And insert the snipper between those lines
CODE
action[1] = !action[1]

So it becomes:
img


CODE
  def pop_damage(target, obj, action)
    action[1] = !action[1]
    index = @active_battler.index


That flps tha skill animations for me happy.gif
Penguin
Okay... but that mirrors the skills for everyone. Like I said, I want to UNmirror the skills for animated battler enemies, because for some reason their skill animations are mirrored.
Night_Runner
Well then, undo what I said in the last post, and we'll try again smile.gif

Line 126 of Sideview 1 (3.4e) should have the text:
CODE
self.mirror = true if !@battler.actor? && @battler.action_mirror


Directly after that, insert the snippet
CODE
      self.mirror = !self.mirror if !@battler.actor? && @battler.enemy.enemy_animate_noteread != :nothing


So it looks like this:
img


And that makes is so you don't have to have the <mirror> tag in the animated enemies, they will face the correct direction naturally.
I just thought it was strange that you needed to add <mirror> in the first place, and since you don't have a <mirror> tag in your enemy it won't flip the skill animations any more.
Penguin
Ooookay, I'm getting this error when I load a battle:



Any idea what's wrong?
Night_Runner
Nope, no idea.

Here's a link to my copy, if you talk to the cat in the bottom right it's the animated enemy that I've been testing with
http://min.us/mOtFmpdzo
Does it work for you, or does it create an error?

Otherwise I'd have to ask for a demo and an enemy in the demo that created the error
Penguin
It works on the demo... must be a script problem. But I have NO idea what could be causing it...
Night_Runner
PM me a copy of your game (or a small demo of it if you prefer to), I'm happy to have a look at what's causing it on your end
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.