public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Yanflys core engine, not playing nice

BMM Archive · July 15, 2026

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: Yanflys core engine, not playing nice
  • Original author: DarknessFalls
  • Original date: November 12, 2015
  • Source thread: https://forums.rpgmakerweb.com/threads/yanflys-core-engine-not-playing-nice.50327/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

Consider the following code, executed in battle, DIRECTLY after a player commits an action:         this._actorWhobrokeLaw.gainHp(-lawObject.amount);        if (this._actorWhobrokeLaw._hp So what happens when a player executes the attack command and this code is triggered? {

Archived First Post

Consider the following code, executed in battle, DIRECTLY after a player commits an action:

        this._actorWhobrokeLaw.gainHp(-lawObject.amount);        if (this._actorWhobrokeLaw._hp <= 0) {          this._actorWhobrokeLaw.die();          this._actorWhobrokeLaw.preformCollapse();        }Couple things to note: this._actorWhobrokeLaw is a game actor instance. Obviously.  lets assume amount is 1000.

So what happens when a player executes the attack command and this code is triggered?

Protected download

The first thing in the stack is the

Protected download

The particular line we care about is the else  in the inf statement.  the cursor blinks on context, I believe context is not defined in this instance.

How does this have anything to do with yanfly?

This code:

Protected download

particularly the: this.contents at the bottom of the page.

So my question is, how do you update the actors health directly after they execute an action? I have it so that I say, in the Game Action, apply function, that:

On hit, if target is a game enemy and the item is attack, take 1000 hp from the player.

Any ideas about these errors? Is there a simple solution here?

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

Screen Shot 2015-11-12 at 1.18.57 PM.png
Screen Shot 2015-11-12 at 1.18.57 PM.png
Screen Shot 2015-11-12 at 1.20.10 PM.png
Screen Shot 2015-11-12 at 1.20.10 PM.png
Screen Shot 2015-11-12 at 1.23.20 PM.png
Screen Shot 2015-11-12 at 1.23.20 PM.png
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.

#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar