Tsukihime Untargetable Script

● ARCHIVED · READ-ONLY
Started by Zevia 2 posts View original ↗
  1. Script can be found here.

    Within the script, there's the following section:

    class Game_Enemy < Game_Battler   #-----------------------------------------------------------------------------  # Lots of hardcoded conditions based on default scripts  #-----------------------------------------------------------------------------  alias :th_untargetable_state_can_target? :can_target?  def can_target?    return false if dead?    th_untargetable_state_can_target?  endend
    This makes it so that the player cannot target dead enemies with abilities. However, it also makes it so that enemies cannot use any skills set to one ally (dead) or all allies (dead). I have a battle where one of the enemies is supposed to be able to revive other enemies, but unfortunately, they are untargetable upon receiving the death state.

    Hime is looking into a solution, but suggested I could also see if someone else might be able to come up with something.
  2. well, you'd need to save the caster into some variable as the method doesn't take the caster, so unless you manage to feed it the caster in one way or another, you cannot check if it's an ally or not