-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Feature Request
The Replace power which would replace the RPGItem with the power to another RPGItem or default item.
Is Your Feature Request Related to a Problem? Please Describe.
No.
A clear and concise description of what you want to happen.
A power you can apply to an RPGItem, which would "replace" the held RPGItem with another item. For example, when holding "Super Sword", and then if you press the key the power is bound to (right, or left click), the RPGItem "Super Sword" would be replaced with the RPGItem which is noted in its config file, which could be for example "Super Bow". If you have the same power on "Super Bow" which replaces it with "Super Sword", you'd have a toggle weapon making it both a melee and ranged weapon.
Describe Alternatives You've Considered
Instead of replacing with an RPGItem you could make the plugin run a command (for example /rpgitem give), but that'd interfere with the slots (having the power RPGItem in slot 5 and then doing the power, which triggers the command and puts the new RPGItem in slot 1). Would rather see an implementation where the RPGItem is put in the same slot as if nothing changed except the weapon.
Additional Context
This power should have another key which can trigger the power, and I think the drop key (default: Q) is a very good one. Instead of dropping the item, it'd trigger the power, making it able for players to have both other powers on their weapons, and also switch between weapons with this power.
/rpgitem power [item] replace [trigger key] [cooldown] [additional command] [new RPGItem]
[item] = the RPGitem you want to apply the power on
[trigger key] = right click, left click, and maybe the drop key (Q) too (recommended).
[cooldown] = cooldown in ticks/seconds
[additional command] = players could add message commands, sound commands, or other powers WHEN the replace power triggers. I know there are powers which can do this (command power), but this additional command should trigger when the replace key is hit (which is [trigger key]).