This script is similar in nature to Restrict Tile Passages, but is used for setting constraints by Bush Tags. You can set a Character to ONLY or NEVER move on a Bush Tile. It also contains a number of very important features to animating Heretic's Vehicles XP script. It allows you to turn on Bush Effects, which are also useful for simulating Water, and animating the Bush Depth, even when there is no Bush Tile to stand on.Features

Constrian Character Movement by Bush Tiles

Fully control Bush Flags and Depth (useful for small animals, and Water)

Allows disabling Bush Effects

Has nothing to do with George Bush

Screenshots

(click to show/hide)

The NPCs in this screenshot on the Bush / Grass tiles move Randomly and are constrained to only move on the Bush Tiles, or prohibited from moving on them. Also notice that you can see the Butterflies since their Bush Effects have been disabled. I cant show a Bush Animation, but it is also there.

#===============================================================================## HERETIC'S RESTRICT BUSH PASSAGE [XP]# Version 1.0# Tuesday, October 21st, 2014##===============================================================================## --- Requirements and Installation ---## *** REQUIRES HERETICS MODULAR PASSABLE SCRIPT ***## Place below Heretic's Modular Passable Script and above Main.### This was an EXAMPLE SCRIPT of how to write Scripts that will be compatible# with any other scripts dependant on Modular Passable. Although it is# intended only as an Example, you may have some use for this script.## The Real Purpose of this script is to show that MANY scripts that all need# to alter Passable in some way can be compatible without the need to replace# the main passable methods themselves. This script ONLY uses Aliases and# does not replace any definitions. It does add a few new ones.### --- Overview ---## This script will allow you to restrict passage based on Bush Tiles and# allows total control over Bush Depth with Comments on each Event Page.## Place the following Comments withing the first 10 or so Lines on # each Event Page you wish to control passage based on Bush.## \bush_only_move - Event can ONLY move around on Bush Tiles # \bush_no_move - Event will NOT move on Bush Tiles# \bush_off - Prevents Bush Effects while on Bush Tiles# \bush_force - Forces Bush Effects even if not on Bush Tile# \bush_anime - Animates Bush Depth for simulating Water# \bush_anime_smooth - Smooth End when Bush Anime changed to Off# \bush_same_rate - Moving does not increase Bush Anime Speeds# \bush_anime_max[N] - Animation Bush Depth Max from the Default Depth# \bush_anime_speed[N] - Overrides Move Speed for Bush Animation# \bush_depth_override[N] - Uses specified N value for Bush Depth instead# of Default of 12. Useful for small animals.## NOTE: \bush_force WILL cause Events with Tileset Graphics (Event Tiles)# to also have a Bush Effect applied### --- Animations ---## I put in a couple things to allow Bush Depth to Animate. Since the Bush# Effect is merely a Transparency, I found some other uses for it, namely# simulating a Character Floating in Water. When this script is combined# with my Boat / Vehicle script, you can make a Character float up and# down with Comments made available by the Boat script while the Bush Anime# causes a Transparency Effect, can create the# appearance that the Water # is partially Transparent. The result is that the Character looks like# they are bobbing up and down in Water.## --- Script Calls ---## There is only one Script Call in this Script:## - bush_depth_to(depth, duration, init_value)## Use it on any Character and it will cause a Bush Depth Override Transition# to take place. The Bush Effect is merely a Transparency at the bottom# of a Character's Sprite, so bush can be useful in other ways. Another# script I wrote for Boats and Vehicles has a lot to do with Water, so# this script can be useful for using Bush Effects to simulate Water Depth.# You can use bush_depth_to(20, 5, 0) to simulate jumping in water and# allow a character to 'swim around'.##===============================================================================

# Check for Modular Passable Script - REQUIRED - DO NOT EDITunless $Modular_Passable print "Fatal Error: Heretics Restrict Bush Passage script\n", "requires Heretics Modular Passable Script!\n\n", "Modular Passable is Not Available or is below this script.\n", "Modular Passable MUST be above this script.\n\n", "The Game will now Exit" exitend

There is one Script Call: bush_depth_to(new_depth, duration, init_value = nil)

These properties can be applied to the Player as well by accessing the corresponding property of each comment. Thus an Event Comment of \bush_off would have a property of @bush_off = true / false.Compatibility

Not compatible with Lawnmowers, Weedwhackers, or Hedge Trimmers.Credits and Thanks

I'd like to thank the Burrito that I just ate for giving me really nasty gas!

Author's Notes

Restricting Passages is most useful for NPCs or Events that you want to move Randomly and retain some level of control over where they move. The rest of the Effects are most useful when combined with Heretic's Vehicles XP as Bush and Water are interchangable.