States trigger Common Events

Discussion in 'JS Plugin Requests' started by NatuElChido, Jul 12, 2018.

  1. NatuElChido

    NatuElChido Villager Member

    Messages:
    19
    Likes Received:
    2
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    Hello.

    I am working in a game where the characters have passive skills, for this I have implemented the YanFly's plugin: Passive skills.
    However, I have a couple of ideas that can not be implemented by the default state system:

    The intention of this post is to request a plugin, where you can call Common Events when a state is applied or removed from a character, or at least ask for help to implement these ideas in some way.

    *Rage Effect/Aura:

    This one its a Passive State. Similar to the mechanics of Lucario in the Super Smash Bros. saga, where the more damage you have accumulated, the more powerful the character becomes with the state. I have managed to implement a Common Event that handles these changes through a conditional tree:
    If character has 80% of his max HP then Attack*120
    else If Character has 70%... ect...


    *Beserk... Kinda:
    This one is a little bit tricky, since this is not a passive ability, but it is necessary to call a common event when a state is removed. Let me explain: this is a skill that puts the user in Beserk mode, but we can actually call common events when a Skill is casted,
    so when this Skill is casted, It calls a common event that dyes the screen in a not very intense red color and changes the fighter's graphics. This can be done in the default Skill manager. The problem comes when the Berserk state has expired, because at this moment I want the screen to return to its normal color and that the graphics of my character return to normal. This is not possible.

    *RNG Base Revival:
    This one its a Passive State. The idea of this is, that if my character is dead, they have a 20% chance to revive with 20% of his total health. For this, I use the RNG variable from 1 to 5, if this number is 3, my character will be revived. This, again is a Common Event. (I think this can be done by putting the Common Event call in the Troop event, but i want to evade this idea, because most of the battles have events on it.)

    *RNG base Skill Cast:
    This one is a Passive State: Similar to the last idea. There is not much I can add to this idea that has not been said above.


    Those are the ideas that I need to develop, and I think the best solution to this will be to implement them through calls to common events through states. I hope to get some help.

    Sorry for my broken English, and thanks in advance.
     
    Last edited: Jul 12, 2018
    #1
  2. Tiamat-86

    Tiamat-86 old jrpg gamer Veteran

    Messages:
    193
    Likes Received:
    74
    First Language:
    english
    Primarily Uses:
    RMMV
    rage - u can do this by making it several different states with using the <Passive Condition: HP Below x%> note tags
    all of the others don't need common events (except for the changed sprite thing in berserk).
    you just need to use buff/state core plugin's Lunatic Mode – Custom Action Effects section.
    im not good with the "code" part of it all but if you ask the forums 1 skill at a time i know they'll be able to help you.
    they've helpd me with an auto-life state that doesn't have the RNG chance but i know its doable.
     
    #2
    NatuElChido likes this.
  3. NatuElChido

    NatuElChido Villager Member

    Messages:
    19
    Likes Received:
    2
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    Thanks for the help!
    I have another trouble.
    Yanfly's Plugin don't specifies that well how to use multiple passive States with the conditional Notetags.
    I have use this two syntaxis so far:


    <Passive State: 26>

    <Passive Condition: HP Above 80%>

    <Passive Condition: HP Below 90%>

    </Passive State: 26>

    <Passive State: 27>

    <Passive Condition: HP Above 70%>

    <Passive Condition: HP Below 80%>

    </Passive State: 27> ....

    AND THIS ONE:

    <Passive State: 26>

    <Passive Condition: HP Above 80%>

    <Passive Condition: HP Below 90%>

    <Passive State: 27>

    <Passive Condition: HP Above 70%>

    <Passive Condition: HP Below 80%>

    <Passive State: 28>

    Both of these have result in the actor having all the states stack together.

    Do you know how to make it work? Im just asking to not do another unnecesary post.

    Thanks in advance.
     
    #3
  4. Tiamat-86

    Tiamat-86 old jrpg gamer Veteran

    Messages:
    193
    Likes Received:
    74
    First Language:
    english
    Primarily Uses:
    RMMV
    you can make lv based skills, lv5, 15, 30, whatever
    Skill Note Tag
    <Hide in Battle>
    <Hide in Field>
    <Passive State: x>

    then make states
    1st state <Passive Condition: HP Below 90%> gives 105% atk
    2nd state <Passive Condition: HP Below 80%> gives 105% atk (10% total)
    3rd below 70, gives 110% atk (20% total)
    ect...
    have the rage unlock stronger through level.

    or all Lv1 just put in the Class Not Tag
    <Passive State: x to y>
    (example 26 to 28)
     
    Last edited: Jul 14, 2018
    #4
    NatuElChido likes this.
  5. Shaz

    Shaz Veteran Veteran

    Messages:
    35,433
    Likes Received:
    9,925
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Do you want these common events to run during battle? Do you have a plugin that allows common events to run during battle? Normally, they don't.
     
    #5
  6. caethyril

    caethyril ^_^ Veteran

    Messages:
    312
    Likes Received:
    158
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    Plugin link for convenience: http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/

    The <Passive State: x> tag is used on actors, classes, skills, weapons, armors, or enemies. It adds state #x as a passive state to the battler/user.

    The <Passive Condition> tags are used on the passive states themselves, not on the actors or whatever. Each state has its own conditions for activation.

    Also, common events can be called during battle, it's just that parallel/autorun events only work on the map.
     
    #6
  7. NatuElChido

    NatuElChido Villager Member

    Messages:
    19
    Likes Received:
    2
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    They can run in battle if I use the troop event. But i dont want to use them because most of my troop battles are already fill with events.
     
    #7
  8. NatuElChido

    NatuElChido Villager Member

    Messages:
    19
    Likes Received:
    2
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    I'm actually using that plugin, and i already use the tags to make the "Rage/Aura" effect.
    But the RNG base states, still cannot be perform, except if i use events i the troop battle.
     
    #8
  9. mrcopra

    mrcopra Veteran Veteran

    Messages:
    446
    Likes Received:
    137
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A
    about RNG base states, how can they get the state and can it be removed in any case?
     
    #9
  10. NatuElChido

    NatuElChido Villager Member

    Messages:
    19
    Likes Received:
    2
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    This are Passive States, using the Yanfly's Auto Passive States plugin, so they can't be remove and they are always in effect.
     
    #10
  11. mrcopra

    mrcopra Veteran Veteran

    Messages:
    446
    Likes Received:
    137
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A
    I made simple one, if you like it i can make it a plugin
     
    #11
  12. NatuElChido

    NatuElChido Villager Member

    Messages:
    19
    Likes Received:
    2
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    Thanks! It would be apprecieted. ^u^
     
    #12
  13. mrcopra

    mrcopra Veteran Veteran

    Messages:
    446
    Likes Received:
    137
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A
    I make it fast, i hope its working without any problem!
     

    Attached Files:

    #13
    NatuElChido likes this.
  14. NatuElChido

    NatuElChido Villager Member

    Messages:
    19
    Likes Received:
    2
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    Thank you! I really apprecieted you effort. You save my ass :D
     
    #14
    mrcopra likes this.

Share This Page