Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[RELEASED] Ability & Combat Toolkit

Discussion in 'Assets and Asset Store' started by Mozza, Nov 2, 2019.

  1. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    Hey :D hope you are well! Sorry for the delay in responding I didn't get the alert.

    I think that's a great idea of showing a demo scene with two human players. I actually released an update to ABC last week which allows for the new input system to assign both devices to each player, for example keyboard and gamepad.

    All you need to do is setup the input actions (or use/modify the ones ABC comes with). ABC hasn't yet got a camera to follow 2 players but I will add it to the roadmap.

    I have attached a small video below showing how to do this with just the character creator, excuse my poor controlling of trying to play on keyboard/gamepad at once, I would require more hands to show it better :D



    In regards to UMA I fixed any issues in the previous posts with this latest release, so should be all drop and play!

    Hope that helps.
     
    Firlefanz73 likes this.
  2. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    Brilliant suggestion, I will add that to the demo list also :D thanks so much for the feedback! Until then please feel free to follow the below video to setup non-humanoid models with ABC:



    Here is some freelance work I did for an ABC user on the possibilities when using ABC with animals/monsters, this is quite an older version now so there is definitely improvements to the general ABC functionality overall:



    Have a good weekend :D
     
    Firlefanz73 likes this.
  3. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,300
    The creature prototype looks good already :)
    Also some flying creature, nice!

    And thanks for the 2 players video. Will help me soon I guess.

    Nice weekend for you too.
     
  4. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,300
    Hello,

    I now started my game using ABC. was pretty easy for my start.
    I am currently using Tobias Top down with top down camera, and the enemy prefabs.

    Two problems occured:
    - The magic knight saw me through a corridor and started attaking with range spells, that's great! But I returnd to the room before and he shot me through the wall
    - The demon attacked me, I attacked back then he ran at me and pushed me right through the wall, the pleay even fell out of the game after that

    This is a really great asset! Maybe you can improve the collisions in this cases.

    And how is the creature stuff getting along? I bought the current humble bundle from InfinityPBR including monsters like a slime and a bat and want to get those working soon :)

    Thanks and have a great weekend!
     
    Mozza likes this.
  5. Timur2015

    Timur2015

    Joined:
    Jun 6, 2015
    Posts:
    10
    Hello. I have enabled integration with Emerald AI as in the screenshots.
    But an enemy from Emerald AI still can't hurt an ABC player. And how to configure the ABC player's health to work with Emerald AI.
     

    Attached Files:

  6. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    Hey Timur, are you using Emerald AI 1 or 2?
     
  7. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    Hey, I will have a further look at collisions in smaller environments for the next update. No further work has been done on any creature integrations but I have plans to add some soon :)

    Have a great weekend!
     
    Firlefanz73 likes this.
  8. Timur2015

    Timur2015

    Joined:
    Jun 6, 2015
    Posts:
    10
    I use Emerald AI 3
     
  9. Timur2015

    Timur2015

    Joined:
    Jun 6, 2015
    Posts:
    10
    There is an error in the console:
     

    Attached Files:

  10. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    ABC doesn't integrate with Emerald 3 yet - something hopefully I can add one day soon!
     
  11. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    If you using Emerald 3 then unfortunately this won't work as I need to redo the integration from earlier versions, sorry about that
     
  12. Timur2015

    Timur2015

    Joined:
    Jun 6, 2015
    Posts:
    10
    I tried it on EmeraldAI 2.0, but errors still appear in the console. The enemy EmeraldAI cannot harm the ABC player. Also, the ABC player cannot harm the enemy EmeraldAI.
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      7.5 KB
      Views:
      11
  13. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    Hey there,

    Do you have the EmeraldAISystem component on the same object as where ABC Component is sitting? The error is trying to find that component and can't retrieve it from the object.

    Hope that helps :)
     
  14. Timur2015

    Timur2015

    Joined:
    Jun 6, 2015
    Posts:
    10
    The Emerald A I System component is located on the enemy component and not on the ABC object.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      1.4 MB
      Views:
      12
    • 2.png
      2.png
      File size:
      1.6 MB
      Views:
      12
  15. Timur2015

    Timur2015

    Joined:
    Jun 6, 2015
    Posts:
    10
    Here is the full text of the error:
    NullReferenceException: Object reference not set to an instance of an object
    ABCToolkit.ABC_IEntityBase.GetEmeraldAICurrentHealth () (at Assets/ABC/Scripts/ABC-Classes/ABC_IEntityBase.cs:4589)
    ABCToolkit.ABC_StateManager.get_currentHealth () (at Assets/ABC/Scripts/ABC-Components/ABC_StateManager.cs:1144)
    ABCToolkit.ABC_StateManager.UpdateHealthGUI () (at Assets/ABC/Scripts/ABC-Components/ABC_StateManager.cs:2616)
    ABCToolkit.ABC_StateManager.HealthManager () (at Assets/ABC/Scripts/ABC-Components/ABC_StateManager.cs:2490)
    ABCToolkit.ABC_StateManager.Update () (at Assets/ABC/Scripts/ABC-Components/ABC_StateManager.cs:3322)
    Unity complains about a line in the script 4589. Below is a screenshot of the script:
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      63.9 KB
      Views:
      12
  16. Mozza

    Mozza

    Joined:
    Nov 29, 2012
    Posts:
    135
    Thanks for all the additional information, that code is returning the current health from the EmeraldAISystem script, I wonder if there is additional steps to have the health setup in the Emerald system, as the error is saying the current health variable is not setup.

    There might also be a possibility that the system doesn't use current health anymore. Are you able to access it still?
     
  17. Creiz

    Creiz

    Joined:
    Jun 6, 2017
    Posts:
    125
    @Mozza Hey, mate. Fantastic work.

    Listen, my game is turn based, a roguelike. Player moves, turn ends, enemies moves, turn end, etc.

    It's also on a grid movement system. Every entities move from tile to tile.

    I'm wondering if it's possible to adapt ABC to this movement system. Can we define the distance a mob move? A tile is 4 unity units square, so for example, after my player moved, I want the enemy to move to another tile and then stop. If there's proximity, then start the fight, etc. Same for abilities. Can I make a fire spell that targets 3 tiles forward? I assume I can go around this by making said spell by limiting the distance of the hitbox, though.

    I've been doing my own thing as of now, but this asset looks like it would make my life so much easier. Since I'm truly broke, I really can't afford to spend $80 on something I might not end up using.

    Unless you have a demo or something I can use in interim.
     
  18. shounak00_unity

    shounak00_unity

    Joined:
    Sep 10, 2020
    Posts:
    9
    any guide on turining this into mobile controls?
     
  19. shounak00_unity

    shounak00_unity

    Joined:
    Sep 10, 2020
    Posts:
    9
    How do I make a dynamic joystick?