• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

[Edited] Help on a new move.

Pride

Verified Member
Welp, here's an edited version.

I watched every tutorial, I did what they do, and I eventually created my own Move. It's called Aura, I made the classes, 'AuraInfo', 'AuraListener', 'AuraBlast' and 'AuraManager', I wrote down all the codes to make the move (Fire a beam of particles that explode on impact), it's a very simple move, no errors in the Eclipse error log, as I fixed all of them. I exported the file to my server, I could bind and do /b h Aura and get the description, so at least AuraInfo is working. However, when I left clicked, it does not shoot a beam of particles, it does nothing in general. So that's where I need some people here to help. I got the codes from the classes and pasted on Pastebin, so you can help me with my mistake. Please do.


AuraInfo: http://pastebin.com/GFY932aJ
AuraListener: http://pastebin.com/Ewix4KDD
AuraManager: http://pastebin.com/eM3AcpNn
AuraBlast: http://pastebin.com/10NPHrQK

Thanks
- Pride.
 
Last edited:
So first of all it seems you're creating an ability using the old API. Use the most recent version of ProjectKorra and you'll find a lot has changed. If the official tutorials told you to do it this way, they must be out of date. If you want, I can run through the basics with you and help you get started. :) PM me
 
Thanks so much, Sobki! It's an honor to hear this from a Developer of ProjectKorra. And I will do so, right now. Thanks. :)

Oh, and I would very much appreciate it if you would actually do a tutorial for me. If you're willing to, notify me. I'll be out today for a while, so I won't be checking on a lot of my things, thanks. Also, yes, the tutorials I watched were way out of date, I just realized. XP
 
Last edited:
For the record, the reason your ability is not working is because of a mistake in this method
Java:
    private boolean canBend(Player player) {
        BendingPlayer bPlayer = GeneralMethods.getBendingPlayer(player.getName());
        if (!GeneralMethods.canBend(player.getName(), "Aura"))
            return false;
        if (GeneralMethods.getBoundAbility(player) == null)
            return false;
        if (GeneralMethods.isRegionProtectedFromBuild(player, "Aura", player.getLocation()))
            return false;
        if (bPlayer.isOnCooldown("Aura"))
            return false;
        if (GeneralMethods.getBoundAbility(player).equalsIgnoreCase("Aura"))
            return false;
        return false;
    }
It's in the last if statement. There you're checking if the player's bound ability is equal to "Aura". If that's true, you're returning false. You should be returning true. ;)
 
Back
Top