Hello Vlue,
Thanks for the script!
I got to say your work is amazing.
I got a bug for ya.
When I play test with the script (along with all of yanfly scripts and battle symphony). I summon an actor and the enemy sprite disappears after the first turn summon.
If you need anything from me let me know!
If you could find out which script is causing it I can take a look~
Erro.
Scripts Used.
-Battle Symphony 1.16c
- your script
(Only)
Summon = work.
Med e Big summon: Erro
Line 238: NoMethodError Ocurred
Undefined method '<' for nil:Nilclass
ps- BattleSymphony = Dr. Yami
Ace Battle Engine = YanFly
Updated the pastebin to... hopefully alleviate that error.
Someone asked me to look at a compatibility issue between my unison item script and this script so I've just made a fix:
if $imported["DoubleX RMVXA Unison Item"]class Game_Actors #----------------------------------------------------------------------------| # Rewrite method: [] | #----------------------------------------------------------------------------| def [](actor_id) return nil unless $data_actors[actor_id] # This part is added by this snippet to return game pets instead of game actors if !@data[actor_id] && SceneManager.scene_is?(Scene_Battle) && $game_party && $game_party.pets $game_party.pets.each { |pet| return pet if pet.id == actor_id } end # @data[actor_id] ||= Game_Actor.new(actor_id) end # []end # Game_Actorsend # $imported["DoubleX RMVXA Unison Item"]The root cause of this is that some scripts such as mine assume all members in $game party_members can be referenced by $game_actors. However, it's not the case for those members that are pets summoned by other actors as they're initialized as Game_Pet but not Game_Actors.
If an actor with id x is summoned as a pet in battle, it can't be referenced by $game_actors[x] and the latter points to a totally different object which is not even in the battle. As my script uses $game_actors in battles a lot, changing them all to something else would be too tedious for me although it'll still work, therefore I ended up using this lazy and risky fix
😀
I wanted to add this into my compatibility fix, but as it seems to me that I can't detect your script's existence and you did a compatibility fix for displaying actor sprites, I wonder if you'll want to make a second compatibility fix to fix some potential compatibility issues with scripts assuming all members in $game party_members can be referenced by $game_actors. Or you may want to keep it as a standalone snippet or just reject my whole fix altogether
🙂
I should really put those imported tags on all my scripts... that's smart. >.> (Would've helped with a handful of my other scripts working with each other).
Since I haven't yet though, and I'm lazy (I'll get it done one day I swear), I've added it on to the script, thanks~