Documentation
Quick InfoVersion: Beta R4
Made for RPG Maker MZ 1.9.0
Event CommentsTo use extra conditions, create a Comment event command and set the first line in the comment to be:
CGMZ Event Movement
Other lines can be in any order. Other lines include setup for move type and speed. To set up move type, use the following format: Type: moveType
Valid moveTypes include:
Random - same as default random move type
Approach - same as default approach move type
Custom - same as default custom move type
SmartApproach - will only ever try to approach
Random2 - will always move randomly
Avoid - will try to avoid the player
SmartAvoid - will only ever try to avoid the player
Mimic - will mimic the player's movements
Opposite - will perform the opposite of the player's movements
Stalk - will attempt to remain a certain amount of tiles away from the player. Note: when using stalk, you also need to provide an additional distance. This may look like: Type: Stalk 5
To set up speed, use the following format: Speed: speedType
Valid speedTypes include:
VVSlow - will move once every 8 steps the player takes
VSlow - will move once every 4 steps the player takes
Slow - will move once every 2 steps the player takes
Normal - will move every step the player takes
Fast - will move twice every step the player takes
VFast - will move 4 times every step the player takes
VVFast - will move 8 times every step the player takes
A sample comment may look something like this:
CGMZ Event Movement
Type: Mimic
Speed: Fast
To set up event pause automove during message window, use the following:
Pause
A sample comment for an event that pauses automove during messages:
CGMZ Event Movement
Pause
A sample comment for an event that has step animation randomness:
CGMZ Event Movement
animationrng 20
Plugin CommandsThis plugin supports the following plugin commands:
Stun Event - This will stun an event for a provided amount of steps
Unstun Event - This will unstun an event if it is stunned
Get Event Stun Status - This will set a switch to ON if the event is stunned, else the switch will be set to OFF.
Saved GamesThis plugin is fully compatible with saved games. This means you can:
✓ Add this plugin to a saved game and it will work as expected.
✓ Change any plugin params and changes will be reflected in saved games.
✓ Remove the plugin with no issue to save data.
Filename
The filename for this plugin MUST remain CGMZ_EventMovement.js. This is what it comes as when downloaded. The filename is used to load parameters and execute plugin commands. If you change it, things will begin behaving incorrectly and your game will probably crash. Please do not rename the js file.
Known Issues
This plugin currently has no known issues that need to be fixed. If you believe you have encountered a bug, please report it to Casper Gaming.
Compatibility
This plugin currently has no known compatibility issues with other RMMZ plugins. If you believe you have encountered a conflict, please report it to Casper Gaming.
Version HistoryVersion BetaR2
- Added option to pause event auto movement during message window
- Comments are now case insensitive
- Added new enemy movement type, stalk
- Added option to add randomness to animation wait (move or step)
- Removed player movement region restriction option
- Added more move speed types
- Added option to count player jumps as steps
- Enemy movement made more consistent with player movement