OXS 2.0 TV Sound Bar
Compact sound bar pick for boosting TV, movie, and console audio.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
No products in the cart.
Simple enough for a child, powerful enough for a developer
BMM_Archive · July 15, 2026
Hey everyone, I am thinking of extending Game_Actor class like this; it seems to work in a simple play-testing project without any dependencies. However, being a noob in Javascript and in RPG Maker, I am a bit worried this would conflict with the way some plugins are "injecting" their code into core scripts. What do you think of this approach? Is this viable? Or perhaps I am overcomplicating things? (for the reference, I am using an awesome project template from here: https://github.com/xuyanwen2012/rmmz-plugins-starter)
export class Game_Actor_Ex extends Game_Actor {
constructor(actorId: number){
super(actorId);
var windowDynamic = (window as any);
//this is needed so JsonEx.makeDeepCopy() will be able to properly instantiate the derived class
if(!windowDynamic["Game_Actor_Ex"])
windowDynamic["Game_Actor_Ex"] = Game_Actor_Ex;
}
public changeEquip(slotId: number, item: RPG.EquipItem): void {
super.changeEquip(slotId, item);
if(item)
console.log('hello from change Equip! equip event, slotId = ' + slotId + ' item = ' + item.name);
else
console.log('hello from change Equip! unequip event, slotId = ' + slotId);
}
}
export class Game_Actors_Ex extends Game_Actors {
actor(actorId: number): Game_Actor {
if ($dataActors[actorId]) {
if (!this._data[actorId]) {
this._data[actorId] = new Game_Actor_Ex(actorId);
}
return this._data[actorId];
}
return null as any;
}
}
Game_Actors.prototype = Game_Actors_Ex.prototype;
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadIf 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.
OXS 2.0 TV Sound Bar
Compact sound bar pick for boosting TV, movie, and console audio.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
No replies yet.
Loading summary...
Bmmplay creator tools
Log in or create an account to use this creator tool.
Join the conversation
Your reaction is ready. Log in and you will return to this page to add it.
Are you sure you want to close this music player?
UGREEN Nexode 200W GaN USB-C Wall Charger
High-output four-port USB-C charger for laptops, tablets, phones, and travel kits.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
Community safety