VELVET ISIS' BASIC VISION SCRIPT

RPG Maker VX Ace

A basic field of vision script

This is a basic script that defines a field of vision for an event and triggers a self switch if the player wanders into it. It takes into account a user defined game variable, terrain tags and replaces dashing with sneaking. Also events won't be able to see through walls! It should be noted however, that they can see through those top of wall tiles, even if they are set to non-passable. I don't know why, I couldn't get around it. A strategically placed wall or an invisible non-passable tile placed on top of them work just fine, though.

Credit for inspiration is given in the script.

Posts

Pages: 1
Hey, whenever I try to run a game with your script, I get this error. Line 87, specifically is: (@map_terrain_camos ||= {}) ||= VIS::TERRAIN_CAMOS




it comes up right after start game but before the title screen. what am I doing wrong?




author=philteredkhaos
Hey, whenever I try to run a game with your script, I get this error. Line 87, specifically is: (@map_terrain_camos ||= {}) ||= VIS::TERRAIN_CAMOS




it comes up right after start game but before the title screen. what am I doing wrong?




Ok, I see what happened. I didn't realize that I needed to have the code tags at the start and end of the script, so all the brackets in the script didn't show up. If you look at the raw script now it will be correct.
OzzyTheOne
Future Ruler of Gam Mak
3988
This is very interesting.

I made this exact system but with events and it was quite a pain. To imagine that someone made a script that is exactly the same as my event system XD

I should stop being so stubborn and full of myself and look into other people's scripts more, they are here to be used after all.

Long story short, thanks for making this script, it is very neat.
Pages: 1