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
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, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
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.
Replies (0)
No replies yet.
Topic Summary
Loading summary...
