Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Enemy Default State
- Original author: ovate
- Original date: June 5, 2018
- Source thread: https://forums.rpgmakerweb.com/threads/enemy-default-state.96155/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
EnemyDefaultState - 2018/03/27 Creator name: kido0617 Overview Set default state for enemies
Archived First Post
EnemyDefaultState - 2018/03/27
Creator name: kido0617
Overview
Set default state for enemies
Features
- If you put <defaultState:4> in enemy's Note field, 4th state is given by default.
- For more than one states, <defaultState:4,5> separate state # with a comma.
- Short code
Preview
Credit and Thanks: kido0617
Terms of Use- Free for commercial and non-commercial use.
License - Public Domain
You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/stsrigxmjvz9gfc/EnemyDefaultState.js?dl=1
Creator name: kido0617
Overview
Set default state for enemies
Features
- If you put <defaultState:4> in enemy's Note field, 4th state is given by default.
- For more than one states, <defaultState:4,5> separate state # with a comma.
- Short code
Preview
Code:
/*---------------------------------------------------------------------------*
* 2018/03/27 kido0617
* http://kido0617.github.io/
* Ver.1.0
* Public Domain
* Please use freely, credit not necessary
*---------------------------------------------------------------------------*/
/*:
* @plugindesc Default state for enemy
* @author kido0617
* @help
* If you put <defaultState:4> in enemy's Note field, 4th state is given by default.
* For more than one states, <defaultState:4,5> separate state # with a comma.
*/
(function(){
var _setup = Game_Enemy.prototype.setup;
Game_Enemy.prototype.setup = function(enemyId, x, y) {
_setup.call(this, enemyId, x, y);
var meta = this.enemy().meta;
if(!meta.defaultState) return;
var states = meta.defaultState.split(",");
for(var i = 0 ; i < states.length; i++){
var id = parseInt(states[i].trim());
this.addState(id);
this.clearResult();
}
};
})();
Credit and Thanks: kido0617
Terms of Use- Free for commercial and non-commercial use.
License - Public Domain
You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/stsrigxmjvz9gfc/EnemyDefaultState.js?dl=1
Features Mentioned
- If you put in enemy's Note field, 4th state is given by default.
- For more than one states, separate state # with a comma.
- Short code
- Preview
- "lightbox_close": "Close",
- "lightbox_next": "Next",
- "lightbox_previous": "Previous",
- "lightbox_error": "The requested content cannot be loaded. Please try again later.",
- "lightbox_start_slideshow": "Start slideshow",
- "lightbox_stop_slideshow": "Stop slideshow",
- "lightbox_full_screen": "Full screen",
- "lightbox_thumbnails": "Thumbnails",
- "lightbox_download": "Download",
- "lightbox_share": "Share",
- "lightbox_zoom": "Zoom",
- "lightbox_new_window": "New window",
- "lightbox_toggle_sidebar": "Toggle sidebar"
- Code:
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
* Please use freely, credit not necessary *---------------------------------------------------------------------------*/ /*: * @plugindesc Default state for enemy
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...