I've worked all afternoon into creating this, but at last here is the first release!
ProjectKorra ComboModule API
What does it do? Brace yourselves! With this plugin you may create Combo Abilities!!!
How does it work? You'll need to know Java as you'd need for any add-on... It's really just a modification of the official PK module manager which lets you implement combos...
What it does!
How do I make a combo?
For a Combo named Fissure:
instantiateCombo(Player player) should look like this:
onThisLoad() should look like this:
"This is not an official ProjectKorra plugin, therefore, no official support will be provided in any threads other than this one. Use at your own risk."
ProjectKorra ComboModule API
What does it do? Brace yourselves! With this plugin you may create Combo Abilities!!!
How does it work? You'll need to know Java as you'd need for any add-on... It's really just a modification of the official PK module manager which lets you implement combos...
What it does!
- Create Combo Abilities!
- Have up to 8 events which constitute your combo! (LeftClick, ShiftDown etc.)
- Let you have more than 9 abilities on your hotbar! (like any combo.)
- Does not give a /bending help <combo> message!
Where do I put it?Simply drop the jar file into your /plugins/ directory!
How do I make a combo?
- Make a new Java Project.
- Set it up as you would a normal bindable ability.
- Leave the listener out (don't make one).
- For your information class, make sure it extends ComboModule.
- Add all the implemented methods.
- There is a new method called instantiateCombo(Player player).
- This method should contain your ability contructor call! (see below)
- Your onThisLoad() method will look a little different... (see below)
- There is a new method called instantiateCombo(Player player).
- Make another class for the ability.
- Write your ability in that class.
- Export into the /plugins/ProjectKorra/Combos/ folder.
instantiateCombo(Player player) should look like this:
Code:
@Override
public void instantiateCombo(Player player)
{
new Fissure(player);
}
Code:
@Override
public void onThisLoad()
{
ArrayList<AbilityInformation> fissure = new ArrayList<AbilityInformation>();
fissure.add(new AbilityInformation("Shockwave", ClickType.SHIFTDOWN));
fissure.add(new AbilityInformation("Shockwave", ClickType.LEFTCLICK));
fissure.add(new AbilityInformation("Eruption", ClickType.SHIFTUP));
CombosManager.comboAbilityList.add(new ComboAbility("Fissure", fissure, this));
ProjectKorra.plugin.getServer().getPluginManager().addPermission(new FissurePermissions().fissureDefault);
ProjectKorra.plugin.getServer().getPluginManager().getPermission("bending.ability.Fissure").setDefault(PermissionDefault.FALSE);
manageFissure();
}
Likes:
xD Cel Dx