NEED HELP
Posts
Pages:
1
When i make an event run away from the main character (in VX) Instead of running away from it in all directions (Like every other RM engine) They only run away in straight lines. (Meaning that unless I go to the left of the event, it won't run right. Or if It won't run south if I'm not above it.)
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
So when you're to the northwest of the NPC, you want it to alternate between running east and south? Or you want it to randomly go in all four directions?
i want it to actually RUN AWAY from the hero like the run away command does on EVERY OTHER Rpg Maker engine.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Running away from the hero means going in a straight line away from the hero, so I'm not sure what the problem is
In VX, if you are north of the enemy running, the enemy will go south, BUT if the enemy hits a wall he WILL stop running until you go to another direction. No other RPG maker has this problem. usually, the closer you get to the running enemy, it runs somewhere else. not stop in straight lines.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Oh, weird. I think to solve this the right way, you'd need to go into the RGSS scripts and change how the code for the "move away from hero" command works. To solve this the cheesy hack way, you just need some conditional branches in your movements. Make it so instead of repeating "move away from hero" over and over, it does a conditional branch based on a random number between 1 and 5. If the number is 1, 2, or 3, move away from hero like normal. If the number is 4, have the event "turn left" and then "move forward". If the number is 5, have the event "turn right" and then "move forward".
There's a chance it could turn the same direction twice in a row and come back towards the hero, so feel free to make it more complicated if you want, I'm sure you can solve that problem with a little bit of extra logic.
The part that makes this a cheesy hack is that you'll have to do this every time you want an event to move like this.
There's a chance it could turn the same direction twice in a row and come back towards the hero, so feel free to make it more complicated if you want, I'm sure you can solve that problem with a little bit of extra logic.
The part that makes this a cheesy hack is that you'll have to do this every time you want an event to move like this.
The cheesy hack would be awkward since I would make do movements that would have to have me keep the map in mind. I guess I''ll try the RGSS thing. It's just weird VX does it so strangely.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
I think XP's method is technically something like "Attempt to move away from hero. If the path is blocked by a wall, take five random steps, then try again."
Pages:
1














