How can I make an enemy untargetable? I'm trying to make temporary party members in Earthbound's style; you can't see their stats (as they are actually enemies), but they do follow you around and help with battles. Of course, neither allies nor enemies can target them.
If you want to treat "untargetable" as "not existing", then this script add-on should suffice:
class Game_Battler
attr_accessor :untargetable
alias init_for_untargetable_state initialize
def initialize
init_for_untargetable_state
@untargetable = false
end
alias standard_exist_method_call exist?
def exist?
standard_exist_method_call && !@untargetable
end
end
Now it's a matter of just figuring out how you want to use it. Various example script calls would be:
$game_actors[1].untargetable = true
$game_party.actors[0].untargetable = true
$game_troop.enemies[0].untargetable = true
And turning it off is as simple as replacing true with false. You might need the interpreter fix for that:
https://forum.chaos-project.com/index.php/topic,938.0.html
Thank you. I'll try this now.
EDIT: Works perfectly when applied to enemies, but party members are still visible and can't do anything when applied to them.
Can you explain more by what you mean? It looks functional to me.
When applied to actors, they are still visible but can do nothing.
I applied it to enemies because it allows for random attacks (with frequency values)
Can you instead just give me a screenshot of what you expect it to look like. You literally just said the exact same thing again.
There's literally nothing else I can say.
What I intended is for the actors to be completely invisible.
My problem has been fixed though; untargetable enemies that help the player fulfill the same role.