- Joined
- Jul 18, 2014
- Messages
- 222
- Reaction score
- 13
- First Language
- English
- Primarily Uses
- RMMV
Yanfly's plugin: http://yanfly.moe/2015/12/13/yep-44-animated-sideview-enemies/
enable enemies to have a floating property where they levitate up and down in the air. This is defined via <Floating> within the enemy's note tag. I'm trying to figure out a way to temporarily/permanently disable that property during battle. Ideally, I'd like to inflict a state who has a "No Floating" property that takes priority over the <Floating> property.
I went looking into the coding and came across lines 1302-1305:
and changed it to:
where state 158 is the state I wish to have the Floating-cancelling property. I tested it and it works the way I want it to, so sharing this for anyone else that may be interested. Also, if this is actually not recommended to do, or there's another better method to achieve this, feel free to enlighten me.
enable enemies to have a floating property where they levitate up and down in the air. This is defined via <Floating> within the enemy's note tag. I'm trying to figure out a way to temporarily/permanently disable that property during battle. Ideally, I'd like to inflict a state who has a "No Floating" property that takes priority over the <Floating> property.
I went looking into the coding and came across lines 1302-1305:
Code:
Game_Enemy.prototype.isFloating = function() {
if (this.isDead()) return false;
return this.enemy().sideviewFloating;
};
Code:
Game_Enemy.prototype.isFloating = function() {
if (this.isDead() || this.isStateAffected(158)) return false;
return this.enemy().sideviewFloating;
};
