public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Adding to a variable through script call

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: Adding to a variable through script call
  • Original author: KeenWolf
  • Original date: January 28, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/adding-to-a-variable-through-script-call.55830/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

Is it possible to add or subtract from a variable through script calling? I am using Yanfly's Buff and States Core plugin to try and count how many characters in a battle have the state isDead. I found the script call $gameVariables.setValue(var, value); but it only seems to set the vaariable to a specific number or another variable which if I use another variable then I end up in an infinite loop causing my game to freeze. { "lightbox_close": "Close", "lightbox_next": "Next",

Archived First Post

Is it possible to add or subtract from a variable through script calling? I am using Yanfly's Buff and States Core plugin to try and count how many characters in a battle have the state isDead. I found the script call $gameVariables.setValue(var, value); but it only seems to set the vaariable to a specific number or another variable which if I use another variable then I end up in an infinite loop causing my game to freeze.


Protected download


Long story short is there a way to add to a variable through script call instead of just setting it?


Yanfly's Buff and States Core: http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/

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

problem 2.png
problem 2.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.

#039#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar