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: State Add/Remove Commands
- Original author: Shaz
- Original date: November 24, 2015
- Source thread: https://forums.rpgmakerweb.com/threads/state-add-remove-commands.51371/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
State Add/Remove Commands 2015.11.24 by Shaz Introduction
Archived First Post
State Add/Remove Commands
2015.11.24
by Shaz
Introduction
This plugin allows you to run commands when a state is added or removed.
How to use
Add to your plugins folder (file name is irrelevant but I use StateAddRemoveCommands.js). There are no parameters to set or plugin commands to call.
Add the following to the State note box:
onadd: commandonremove: command to execute command when the state is added or removed.
command is any Javascript command that will be executed in the context of a battler (actor or enemy). Use this to refer to the current battler.
Examples
onadd: this.gainHp(50)- add 50 HP to the battler when the state is added
- deduct 100 MP from the battler when the state is removed
- adds state 15 to the battler when the current state (the one with the note tag) is removedPlugin
Download from pastebin
Credit
- Shaz
Terms
- free for use in commercial games
Notes
This is a port of my State Add/Remove Commands script for Ace. Some people previously reported issues with that script that I have not yet been able to reproduce or solve. If you encounter any issues please list them and I'll attempt to resolve.
2015.11.24
by Shaz
Introduction
This plugin allows you to run commands when a state is added or removed.
How to use
Add to your plugins folder (file name is irrelevant but I use StateAddRemoveCommands.js). There are no parameters to set or plugin commands to call.
Add the following to the State note box:
onadd: commandonremove: command to execute command when the state is added or removed.
command is any Javascript command that will be executed in the context of a battler (actor or enemy). Use this to refer to the current battler.
Examples
onadd: this.gainHp(50)- add 50 HP to the battler when the state is added
Code:
onremove: this.gainMp(-100)
Code:
onremove: this.addState(15)
Download from pastebin
Credit
- Shaz
Terms
- free for use in commercial games
Notes
This is a port of my State Add/Remove Commands script for Ace. Some people previously reported issues with that script that I have not yet been able to reproduce or solve. If you encounter any issues please list them and I'll attempt to resolve.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
Credit - Shaz Terms - free for use in commercial games
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.
0
replies
1
view
Topic Summary
Loading summary...