public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
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: Button Cast Plugin
  • Original author: gilgamar
  • Original date: February 16, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/button-cast-plugin.56988/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugins In Development

Summary

Button Cast v1.10 by Gilgamar Description Adds the ability to cast skills instantly during active turn battle by pressing a button.

Archived First Post

Button Cast v1.10


by Gilgamar


Description


Adds the ability to cast skills instantly during active turn battle by pressing a button.


Now on GitHub!


Demo Project Zip File v1.10



Playable Demo v1.10


How it Works


- This plugin requires Yanfly's Core, Battle Engine, and ATB System plugins.


- Skills are bound to keys in actor notetags.


- While the actor's ATB meter is filling press an assigned key to cast a skill instantly.


Strategies


- Can enable instant cast by setting ATB Charge Gauge to 0 in Yanfly's ATB parameters.


- Set rubberband to false in ATB parameters and increase enemy agi for slower ATB buildup. 


Progress


- Added automatic switching of system and button cast key bindings.


- Added MOBA mode as an extension script.


- Added skill passives which can be used to call a common event immediately upon button press.


- Passive skills do not interrupt ATB and can be used to charge MP/TP/ATB or anything you can get away with in a common event!


- Full targeting system implemented.


- Supports multi-actor button casting for full keyboard support minus important keys.


- Checks if user has learned skill, plays buzzer if not.


- Checks if user status prevents casting.


Future Plans


- Menu skill key assignments.


- True passive skills which will process immediately on every ATB tick without requiring button press for use in regenerative abilities.


- Feedback and suggestions appreciated!


Changelog

Next Version:
Menu key assignments and skill bindings

Version 1.10:
Faster key checking
Fixed passive skills
Removed a few rogue globals
checkKeysActor() is now used to check one actor's keys
checkKeysBattlers() is now used to check all battlers' keys
Changed processCommonEvent() to forceCommonEvent() with improvements

Version 1.09:
Revised code with jshint
Moved MOBA mode to extension script
Moved Key Management to extension script
Changed console.log() to debug() with ability to suppress output
Fixed a bug where actor has no keys checkActorKeys() would crash
Fixed a bug where battleEnd was not being checked between queued actors

Version 1.08:
Added MOBA mode
Each actor has a separate key list and no longer needs to share keys
Fixed a bug when more than one battler queued processActionSequence() cleared wrong battler
Fixed a bug where battler actions cleared before checking if action valid
Fixed help file

Version 1.07:
Now with non-interrupting button casts! No more ATB reset
Moved processing into BattleManager.update() from BattleManager.updateATBTicks()
Using phases to control battle flow during button cast operations

Version 1.06:
Added passive skills (experimental)
Added skill notetag
Passive skills execute their common events immediately without taking a turn
Fixed a bug where checkButtonCast() would crash if an actor had no keys assigned
Automatically corrects key names when parsing notetags
Automatically swaps system keys with button cast keys to preserve original bindings
Added actor notetag
Removed parameters and previous actor notetag
Added some Input and utility functions

Version 1.05:
Support for multiple actors using same key
Grouped button cast functions under BattleManager instead of global
Added debug statements at each phase of button cast
Redirected on cancel functions to ensure skill and atb reset correctly
Notetags for actor key assignments
Changed checkInput() to use isTriggered() so debouncing is no longer required
Fixed help section and added key naming reference
Cleaned up code and various bugfixes

Version 1.04:
Target selection for allies and enemies
Fixed sprite not moving back if button cast canceled
Added nearly full keyboard support excluding keys that shouldn't be altered
Renamed runSkill() to checkButtonCast()
Improved code efficiency by debouncing checkButtonCast()
Checks if user has status effects to prevent casting while sleep/dead etc
Improved source code formatting and added references at the end of script

Version 1.03:
Enemy target selection after using button cast

Version 1.02:
Can now button cast with multiple actors!
Assign keys to actors in parameter

Version 1.01:
Buttons not activated unless skill assigned
Skill assignments now stored in Gilgamar.ButtonCast.keyList for easier access
Added a,s,d keys
Choose actor in parameter
Simplified checkInput() function for scalability
runSkill() function checks if user has skill and plays buzzer sound if not
Cool down timer to prevent overlapping sound effects

Version 1.00:
Single actor button cast!



Terms of Use and Credits


- Free for commercial and non commercial use.


- Credit Gilgamar if you use this plugin.


- Credit Yanfly for ATB system.


Thanks


- BucketsOfRP for coming up with the idea and testing the script

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

License / Terms Note

Terms of Use and Credits - Free for commercial and non commercial use. - Credit Gilgamar if you use this plugin. - Credit Yanfly for ATB system.

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-development

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar