DoubleX RMMV Targeting Hotkeys

0 Members and 1 Guest are viewing this topic.

***
Scripter
Rep:
Level 31
Changelog
Code: [Select]
*      v1.00a(GMT 0900 14-8-2016):                                           
 *      1. 1st version of this plugin finished                               

Authors
DoubleX

Credits
DoubleX(Optional)

Purpose
Lets you set some hotkeys selecting actor/enemy target by index

Games using this script
None so far

Configurations
Code: [Select]
    /* Sets hotkeys selecting the actor/enemy target with the specified index
     * None of these hotkeys are supposed to be changed during the same battle
     * Each hotkey will be referenced by $gameSystem.targetingHotkeys[index],
     * where index is the index of the hotkey
     * The ith hotkey will try to select the actor/enemy target with index i - 1
     * Each of these hotkey must be a String
     * Using a keyboard mapping plugin, like Quasi Input, can be useful here
     */
    hotkeys: [
        "#1", // Referenced by $gameSystem.targetingHotkeys[0]
        "#2", // Referenced by $gameSystem.targetingHotkeys[1]
        "#3", // Referenced by $gameSystem.targetingHotkeys[2]
        "#4", // Referenced by $gameSystem.targetingHotkeys[3]
        "#5", // Referenced by $gameSystem.targetingHotkeys[4]
        "#6", // Referenced by $gameSystem.targetingHotkeys[5]
        "#7", // Referenced by $gameSystem.targetingHotkeys[6]
        "#8", // Referenced by $gameSystem.targetingHotkeys[7]
        "#9", // Referenced by $gameSystem.targetingHotkeys[8]
        "#0" // Referenced by $gameSystem.targetingHotkeys[9]
    ]

Plugin Calls
Code: [Select]
*      1. $gameSystem.targetingHotkeys[index]                               
 *         - Returns the keyboard mapping of hotkey selecting the actor/enemy
 *           with the specified member index as the target                   
 *      2. $gameSystem.targetingHotkeys[index] = keyboardMapping             
 *         - Sets the keyboard mapping of hotkey selecting the actor/enemy   
 *           with the specified member index as the target as keyboardMapping
 *         - All $gameSystem.targetingHotkeys[index] changes will be saved   

Instructions
You're supposed to edit this plugin js file directly

Prerequisites
Abilities:
1. Nothing special for most ordinary use cases
2. Little Javascript coding proficiency to fully utilize this plugin

Terms Of Use
Code: [Select]
*      1. Commercial use's always allowed and crediting me's always optional.
 *      2. You shall keep this plugin's Plugin Info part's contents intact.   
 *      3. You shalln't claim that this plugin's written by anyone other than
 *         DoubleX or my aliases. I always reserve the right to deny you from
 *         using any of my plugins anymore if you've violated this.           
 *      4. CC BY 4.0, except those conflicting with any of the above, applies
 *         to this plugin, unless you've my permissions not needing follow so.
 *      5. I always reserve the right to deny you from using this plugin     
 *         anymore if you've violated any of the above.                       
« Last Edit: August 15, 2016, 02:39:48 PM by DoubleX »