The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: pliio8 on February 01, 2007, 10:36:28 PM

Title: "Invisible" Status
Post by: pliio8 on February 01, 2007, 10:36:28 PM
How could I make this? To where thye cant attack the character, but the character can still attack?
Title: Re: "Invisible" Status
Post by: :) on February 01, 2007, 11:26:14 PM
can you make a state and put evade to 100%...would that work?
Title: Re: "Invisible" Status
Post by: Tsunokiette on February 02, 2007, 01:27:08 AM
I don't know if it will work. *untested*

But if you could also try going into Game_Enemy, finding this line -

self.current_action.decide_random_target_for_enemy

and replacing it with this -

            loop do
              self.current_action.decide_random_target_for_enemy
              unless game_party.actors[self.current_action.target_index].state?(state_id)
                break
              end
            end


Replacing state_id with the id of the state of course.

Nouman's idea is much easier and will probably work. I'm just bored.
Title: Re: "Invisible" Status
Post by: Blizzard on February 02, 2007, 01:24:09 PM
Quote from: Nouman on February 01, 2007, 11:26:14 PM
can you make a state and put evade to 100%...would that work?

Precisely. That's how you make it.