Stop action after main target is dead?

VexGaming

Villager
Member
Joined
Feb 15, 2018
Messages
22
Reaction score
9
First Language
English
Primarily Uses
RMMV
is there a way to stop the remaining actions after the main target has been killed. i tried changing "this.aliveMembers()[0]" in line 4681 of rpg_objects to null so that the next actor to act won't target a random enemy however this isn't what i intended because the actor is still doing his attack animation.

Code:
Game_Unit.prototype.smoothTarget = function(index) {
    if (index < 0) {
        index = 0;
    }
    var member = this.members()[index];
    return (member && member.isAlive()) ? member : this.aliveMembers()[0];  <<-- this.aliveMembers()[0] to null
};
Edit: Nevermind got it!
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top