Galv's Battle Action Info

Discussion in 'JS Plugin Releases (RMMV)' started by Galv, Feb 21, 2016.

    Tags:
  1. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A

    Battle Action Info - Version 1.3
    RPG Maker MV Plugin
    Galv



    Introduction
    Just a little something for battle. As always, I encourage anyone who uses it to create their own better graphics than my dodgy ones


    Screenshot
    [​IMG]


    Features


    An information box drops down whenever you are selecting a target for an action in battle. This box contains information about the action toward the enemy such as minimum and maximum damage, hit chance, critical chance and state/buff changes.


    Includes plugin settings to allow you to customize your info box.




    How to Use
    - Copy the "GALV_BattleActionInfo.js" file into your project's /js/plugins/ folder.
    - Activate plugin using the 'Plugin Manager'
    - Copy the images included (or create your own image) into YourProject/img/system/ folder
    - Read the help file to see how it works. Examine the demo if you don't understand.


    Plugin
    Get it here


    Credit and Thanks
    - Galv


    Terms
    Free to use in any RPG Maker MV project including commercial. Please credit "Galv". :)


    Updates


    2016-04-30 - Version 1.3 - fixed a bug when using code in formula and fixed issue when changing a skill to damage type 'none' that still had damage in the formula.


    2016-02-22 - Version 1.2 - Compatibility fix for Victor's Hit Formula


    2016-02-20 - Version 1.1 - Compatibility changes and bug fixes


    2016-02-20 - Version 1.0 - Release
     
    Last edited by a moderator: May 2, 2016
    #1
    Jojozaamaak, Pai, gokuby and 8 others like this.
  2. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    617
    Likes Received:
    333
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    Perfect for a slower paced battle system. Thanks a lot for this Galv!
     
    #2
    Galv likes this.
  3. LeeOccleshaw

    LeeOccleshaw Stone Dragon Workshop Veteran

    Messages:
    155
    Likes Received:
    82
    Location:
    UK
    First Language:
    English
    Would it be easy for you to add an option to make the window peek from the bottom of the screen as well as just from the top? No worries if you don't have the time - it's a fantastic plugin, thanks Galv!
     
    Last edited by a moderator: Feb 22, 2016
    #3
  4. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I'll add to my to do list to look into later :)
     
    #4
    LeeOccleshaw likes this.
  5. gRaViJa

    gRaViJa Veteran Veteran

    Messages:
    744
    Likes Received:
    270
    Location:
    Belgium
    First Language:
    Dutch
    I'll definitely use this, but i only want to show this when an ally casts a Libra or Scan skill. Is this already doable? To toggle it on when a certain state is active for example? If not, would you consider it for a future update?
     
    Last edited by a moderator: Feb 24, 2016
    #5
  6. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Nice idea, I am adding that to my to-do list for future update :)
     
    #6
    gRaViJa likes this.
  7. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    617
    Likes Received:
    333
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    Hey Galv,


    I think I may have found a bug. I've created a skill that does no damage while adding an elemental resistance state. For some reason, it still shows that damage will occur in the battle info window even with the skill set to do no damage in the database. 


    This seems to only happen when changing elemental resistances. When changing Ex/Sp params, the damage shows correctly in the window (0).
     
    #7
  8. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Could you please take a screenie of your skill setup and state setup used in that skill? I haven't been able to replicate in tests I have done.


    Also, could you please test it with other plugins disabled to test for a conflicting plugin?
     
    #8
  9. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    617
    Likes Received:
    333
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A


    I'm at work for the morning. I had tested the skill with your demo project. If the Damage Type is set to "None", then it will show damage in the info window. I'd have to set the Damage Type to "HP Damage" with a formula of 0 in order for everything to show properly. Not sure if that's how it's supposed to be.
     
    #9
  10. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I have tested damage type none and it displays 0 damage for me. If you can, could you still please screenshot your skill setup so I can see if it's something else in the skill causing it?
     
    #10
  11. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    617
    Likes Received:
    333
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    Sure! I'll send it in a PM as soon as I get home later today.
     
    #11
  12. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Thanks to thechancellor, we discovered if you have a skill set to HP Damage with damage in the formula box... then change it to Damage Type: None... the formula is still kept in the skill and seen by the plugin.


    A temporary fix is to make sure your skill has 0 in the damage formula before changing to damage type none, but I have added to my to-do list to fix this :)
     
    #12
    Neo Soul Gamer likes this.
  13. kozy

    kozy Villager Member

    Messages:
    7
    Likes Received:
    1
    Location:
    France
    First Language:
    French
    Hello Galv,


    i found something, i don't know if it's a bug but i don't find the way to bypass it.


    When you have a " b.addstate"or gainhp into your formula, state is given to the ennemy and hp is gained, each time you target a different ennemy, even if you don't valid the command and change your skills.
     
    #13
  14. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I don't understand what you are saying, but this plugin unfortunately doesn't check for additional code in the formula when determining the action info for your target.
     
    #14
  15. kozy

    kozy Villager Member

    Messages:
    7
    Likes Received:
    1
    Location:
    France
    First Language:
    French
    Sorry, i guess my english isn't really good.


    I mean: When i choose my skill called, for example, "Bite" [the Damage Formula is "a.gainHp(Math.floor(-0.075*(a.atk * 8 - b.def * 4))); a.atk * 8 - b.def * 4)]


    Formula ex.JPG


    Let's say my character is damaged; so, i choose my skill called "bite", i target this lovely "bird" foe by default. But, i want to target this creepy bear, and then when i do it, my character gain HP (even if i didn't validate the action). Now, i choose to cancel using this skill and choose another one. My character still got HP from the skill even i didn't use it.


    Same thing with a skill applying state in certain conditions [if (b.isStateAffected(21)) {b.addState(5); a.atk * 12 - b.def * 6} else {a.atk * 4 - b.def * 2};] - state is applied even if i cancel the skill or i change my target.


    I hope to be understandable now. 
     
    #15
  16. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Ahh, I see what you mean now. I never thought of that... it's because the formula code is run to get the damage value and any additional code is run as well. I didn't think about this when I wrote it - I will fix this when I have some time :)


    UPDATE: Fixed:


    Version 1.3 - fixed a bug when using code in formula and fixed issue when changing a skill to damage type 'none' that still had damage in the formula.


    Changing states and other things via code in the formula still won't show on the indicator, however.
     
    Last edited by a moderator: May 2, 2016
    #16
    kozy likes this.
  17. kozy

    kozy Villager Member

    Messages:
    7
    Likes Received:
    1
    Location:
    France
    First Language:
    French
    You're just amazing dude!! :)  


    It works really well now! 
     
    #17
    Galv likes this.
  18. HintonR

    HintonR Veteran Veteran

    Messages:
    197
    Likes Received:
    25
    First Language:
    English
    Primarily Uses:
    RMMV
    Hi Galv,

    There seems to be an issue when using Yanfly's Target Core and a spell/skill is toggled from single to target all. I'm not sure if you're still updating plugins, but thought I'd ask.

    Thanks.
     
    #18
  19. Galv

    Galv Veteran Veteran

    Messages:
    1,180
    Likes Received:
    1,117
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Sorry, unfortunately I don't have time these days to do updates
     
    #19
  20. ArcticPrism

    ArcticPrism Veteran Veteran

    Messages:
    31
    Likes Received:
    12
    First Language:
    English
    Primarily Uses:
    RMMV
    Are you still too busy for updates? If not, I was wondering if you could add a little more support for states. It only shows the base chance for them to work and doesn't take luck or immunities into account.
     
    #20

Share This Page