g2thet
Oct 16 2011, 06:11 AM
Hello everyone, i am new to RPG maker XP and let me tell you it is awesome! I need some help though so i hope i came to the right place. Here is what i am trying to do. I want to make 2 enemies that move around on the screen randomly. I want them to attack you when you get close. When they die i want them to be gone forever, and if you only happen to kill one, the other one is there until you kill it.
IE: You walk into a room and there are 2 zombies moving around, when you get close they run and attack you, if you only kill one and leave the room there is still only one in the room when you come back. If you kill both they never come back.
Thanks for you help.
superafroboy
Oct 16 2011, 09:17 AM
You can set the Zombie event to move randomly very easily. In the Edit Event window, there is an 'Autonomous Movement' section, with a 'Type' dropdown. Choose 'Random' in the dropdown, and now your Zombie will move randomly!
Next, you can set the Zombie event's 'Trigger' to be 'Player Touch'. This way, the event will process as soon as the player touches the event. So in the Zombie event, you would want to use the 'Battle Processing' command (found on the third page of commands). Personally, I always use 'Continue when loser' in the Battle Processing screen. Either way, after the battle you would simply turn on self switch A. Then create a new page in your Zombie event, and in the 'Conditions' area, put a check in Self Switch A is ON. And leave this page of the event blank with either no graphic, or a charaset that shows the defeated enemy (such as a dead zombie or whatever).
Now, this however will not make the Zombie chase the character, but only move randomly. You could choose "approach" for movement type instead of random, but that would cause the Zombie to chase the player as soon as they enter the map.
g2thet
Oct 16 2011, 09:31 AM
Thanks so much, i will give this a shot. Again thanks for the fast response.