RPG Maker Forums

The idea behind this was that I wanted something where the enemies had a detection range and when you walked into it, an event started, whether it be a battle starts or it just gives you a game over (haven't decided yet).

I looked up some stuff on this but pretty much everything I found was scripts, which I didn't feel very comfortable using as I have never really used the scripting functions before. So because of this, everything was done using variables and conditional branches.

The variables and what they do:


Player & guard (guard being the enemy) XY should be pretty self explanatory. They are just set to their respective positions on the map. Gets a bit messy after that. Try to set a distance for how far the guard can see but have to do this in all directions relative to the guard. Then I also set a width for the detection as I don't really want it to be just a straight line.

The events:


Something that annoys me about rpg maker VX ace and idk if there is a fix for it but I can't rescale this window to see the rest of the lines. Had to type up what it said (more or less) in notepad. This is just for when the guard is facing right but this set of events was copy/pasted onto the else of this with edited variables/etc to accomodate for other directions.



So my main questions are:
  1. Is there a better way to do this?
  2. Can I optimize my current build better?
  3. Is there a way to incorporate terrain detection as well? If the player hides behind a crate for example. I looked at terrain tags and the "get location info" event and it seemed possible if pretty convoluted.
  4. Is there actually a way to rescale the event window (it really does annoy me)?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,546
Members
137,835
Latest member
yetisteven
Top