Requesting 'Exploding state'

Discussion in 'RGSS2 Script Requests' started by Project CROSS, Jul 15, 2015.

  1. Project CROSS

    Project CROSS RGSS2 User Veteran

    Messages:
    202
    Likes Received:
    152
    Location:
    Potato Land
    First Language:
    English
    Primarily Uses:
    RMVX
    Need a "State Script" that activates when the character with the state is attacked.

    Here is the mechanic:

    >Caster curses an enemy with stun, not just stun effect...

    [​IMG]

    ...when the stunned enemy is attacked, it will deal pure damage to the enemy who has the stun state.

    [​IMG]

    KABOOM! He dies,....

    just as planned

    [​IMG]
    ...so basically, just like "Thorn Bind Hostage" effect.
     
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,590
    Likes Received:
    10,510
    First Language:
    English
    Primarily Uses:
    RMVXA
    You don't need a script if it's just one skill which will do this.

    Create your state - let's call it Cursed chains with the ID of 43 for the sake of argument which is inflicted with the skill Curse.

    In the damage formula for the skill which will take advantage of this state you have

    [SIZE=10.5pt]b.state?(43)? b.add_state(1) :normal_attack_formula_here[/SIZE]

    [SIZE=10.5pt]That is saying - if state 43 is present, add state 1 (death), if not do this normal damage, or whatever you want to happen if the state is not inflicted.[/SIZE]

    [SIZE=10.5pt]If you wanted to combine the skill Curse with the damage dealing skill, it would be[/SIZE]

    [SIZE=10.5pt]b.state?43)? b.add_state(1) : b.add_state(43)[/SIZE]
     
    #2

Share This Page