- 0
Sign in to follow this
Followers
0
Zenith Tactical Battle System problem (resolved. Sorta.)
Asked by
CursedBlackWolf
-
Recently Browsing 0 members
No registered users viewing this page.
Hey guys, I'm not good at scripting, but I've been learning how to, albeit very slowly. I recently switched to the Zenith Tactical Battle System (ZTBS)
in my current project, and the setup of everything went great, the script works with all my others, but for some reason I can't fathom, the battle maps don't work.
Every time I load up the game to test a map, I get this error message:
And here is the code section the error effects
#-------------------------------------------------------------------------- # ● State Animation refer to Database ID #-------------------------------------------------------------------------- def state_animation_id if self.is_a?(Game_Player) or !$game_system.in_tactics or (!$game_system.tactics_actors.keys.include?(self.id) and !$game_system.tactics_enemies.keys.include?(self.id)) return 0 end # Actor uses applied animation as there battler would if $game_system.tactics_actors.keys.include?(self.id) battler = $game_system.tactics_actors[self.id] else battler = $game_system.tactics_enemies[self.id] end # If battler size is 0 then return with 0 if battler.states.size == 0 return 0 end # Applies animation state id to battler return $data_states[battler.states[0]].animation_id endAny help at all would be greatly appreciated!
Edited by CursedBlackWolfShare this post
Link to post
Share on other sites