- Joined
- Mar 25, 2018
- Messages
- 1
- Reaction score
- 0
- First Language
- english
- Primarily Uses
- RMVXA
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:
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:
- Is there a better way to do this?
- Can I optimize my current build better?
- 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.
- Is there actually a way to rescale the event window (it really does annoy me)?