Effect: Recoil Damage

This effect is activated when an attack is successfully made.
The user will take some amount of damage according to the effect.

effect_recoilDamage

Download

Script: download here
Required: Effects Manager

Installation

Place this script below Effect Manager and above Main.

Usage

Tag effect objects with

<eff: recoil_damage formula element_id>

Where the formula is any valid ruby statement that evaluates to a number.

The element_id is the ID of the element you want the recoil damage to be. Look up the ID in the Terms tab. If you set it to -1, then it will be the “atk element” of the target which can be set using features.

You may also like...

49 Responses

  1. Please find the best link address collection site. Korea latest addresses are all here roi hoi tks.

  2. Compra Nike says:

    Excellent pieces. Keep posting such kind off information on your page.
    Im really impressed byy it.
    Hi there, You’ve done an excellent job. I’ll definitely digg it and in my opinion suggest to my friends.
    I’m sure they will be benefited frrom this website.

  3. Definitely belierve that which you said. Your avorite reason appeared
    to be on the net the simplest thing to be aware of.
    I say tto you, I definitely gget irked while people think about worries thatt they just don’t know
    about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , peoplle
    could take a signal. Will likely be back tto gget more.
    Thanks

  4. Thank you for another informative blog. The place else may I am getting that type of information written in such a perfect means?
    I’ve a venture that I am just now operating on, and I’ve been on the
    glance out for such information.

  5. Suzanne says:

    Thanks for every other inormative website. Where else may I am
    getting that kinmd off information written in such a perfect way?
    I have a challenge that I am just now working on,
    and I’ve been on the look out for such info.

  6. I delight in, cause I discovered exactly what I used to be having
    a look for. You’ve ended my 4 day long hunt! God Bless you man. Have a
    nice day. Bye

  7. I simply couldn’t go away your website prior to suggesting thwt I reeally enjoyed the usual information an individual
    provide on your guests? Is gnna be again ceaselessly iin odder to inspect new
    posts

  8. It’s wonderful that you are getting ideas from this piece of
    writing as well as from our dialogue made here.

  9. Hello, for all time i used to check blog posts here early in the daylight, since i like to find
    out more and more.

  10. This is a really good tip particularly to those fresh to the blogosphere.
    Brief but very precise info… Thanks for sharing this one.
    A must read post!

  11. Naxos Greece says:

    Quality articles is the secret to invite the visitors to pay
    a visit the site, that’s what this web page is providing.

  12. I love what you guys are up too. Such clever work and exposure!
    Keep up the great works guys I’ve you guys to my own blogroll.

  13. As I website owner I think the content material here is
    very excellent, thank you for your efforts.

  14. 78560260 says:

    Can I just say what a comfort to uncover someone who really
    knows what they are talking about on the internet.
    You actually understand how to bring an issue
    to light and make it important. More people must check this out
    and understand this side of the story. I was surprised that you’re not more popular because you
    most certainly possess the gift.

  15. Due to the changing needs and developments, there are various various ways to
    promote medical services these days. They also offer hospital
    bed accessories including bed rails in hospital. Business transactions
    between hospitals, doctors, pharmaceutical companies, and
    then any other vendors, suppliers, or contractors, can be fraught with openings for perceived-illegalities.

  16. This indicates you are dealt many much more fingers, giving you
    that numerous much more circumstances to encounter.
    I have made a simple chart below which you can print off and use over and more than once more.
    You can also study the guidelines of the game from the online casino website, and even get reside chat
    assistance when you are not certain about any rule.

    Can you imagine you could do this kind of hands?

  17. Along these lines, it has wound up being, all things considered, simple to for satisfaction. We remove get a kick from giving just the most crucial quality
    escorts since we understand that you require an independent escorts in Aerocity and
    staggering girls. The majority of our optimal Residence of Attachment with Beautiful escorts has been actually unequivocal for their magnificent looks,
    character, and headway. When you book an escort with us you set yourself up
    for an uncommon time with lovely and radiant call girls.

  18. soccer yupoo says:

    Unquestionably imagine that that you said. Your favourite justification appeared to be at the internet the easiest factor to take
    note of. I say to you, I definitely get annoyed at the same
    time as other people think about worries that they just do not recognise about.

    You controlled to hit the nail upon the highest as smartly
    as outlined out the entire thing with no need side effect ,
    people could take a signal. Will probably be back to get
    more. Thank you

  19. This article is actually a good one it helps new internet people, who are wishing for blogging.

  20. Dentist says:

    Wow! At last I got a weblog from where I be able to genuinely
    take useful facts regarding my study and knowledge.

  21. All Pure Hemp Derived Full Spectrum CBD Oil.

  22. Chris says:

    I am trying to get the recoil damage to work as a curse on a weapon. I am not sure what I did wrong, but when I test it, the weapon doesn’t recoil on the user, instead when a monster attacks, damage is recoiled on it…

  23. Hanni says:

    My message didn't post….

    I was wondering about two things
    1) How can I prevent the self-damage from being fatal? (ie. I want the user to survive with 1HP if they use a skill with recoil that would kill them)

    2) How can I prevent the recoil damage from happening per enemy hit? If I use a skill that hits all enemies, it applies the recoil damage for each enemy hit.

    Thanks!

    • Hime says:
      1. This is an older script so it doesn't provide special variables for you to use. Ideally you would set the maximum damage to be one less than the user's current HP, but modifications to the script would be needed to support it.

      2. You'd need to modify the script for that. This script was simply to demonstrate how recoil damage could be implemented.

  24. Hanni says:

    Late to the party, but have two questions –

    When I apply this to an attack that hits multiple enemies, I take recoil for each enemy hit – is there a way to change it so that I only take recoil once?

    Also, is there a way to make the recoil damage not kill you? Like leave you at 1 HP if it would otherwise kill you.

    Thanks!

  25. Gallagador says:

    Hello,
    I was using your script in my game and started getting errors every time an enemy killed itself from recoil. The error seems to be from Jet's Animated Battlers script but it only happens if the enemy dies from recoil. I will consult Jet about the problem too, but I was wondering if maybe there was just one little thing that could be changed to make the scripts work together.

    Jet's Animated Battlers Script: http://pastebin.com/raw.php?i=4Gagm2mM
    Error:
    Script 'Jet_Animated_Battlers' line 643:NoMethodError occured.
    undefined method `item' for nil:NilClass

    I'm only asking you about this because it's the only script that is causing this error to pop up.

    • Hime says:

      Pretty sure the battle script would crash if the attacker died as a result of the action (eg: suicide attack).

      • Gallagador says:

        Oh… um… Do you know if there's any way around that… possibly… maybe…?

        • Hime says:

          Change

          if @subject.current_action.item.physical?
          

          to

          if @subject.current_action &amp;&amp; @subject.current_action.item.physical?
          
          • Gallagador says:

            Trying to start the game with the code you gave gives the error:

            Script ‘Jet_Animated_Battlers’ line 643:SyntaxError occured.

            unexpected tAMPER
            … @subject.current_action &amp;&amp; @subject.current_action…

            Am I supposed to be formatting the code a certain way? I feel like it might be something with the "&amp;"s (I don't know RUBY or RGSS3, but the error just makes it seem like that).

          • Hime says:

            Those should be &&

            WordPress seems to automatically convert them.

          • Gallagador says:

            Thank you so much Hime!

  26. kizzo212 says:

    This is my first time using an external script and it appears that there is no “Effect manager” in my script. how do i get it?

  27. RogueDeus says:

    Just had a chance to add the new changes,
    I am now getting this error:

    line141: SyntaxError
    unexpected $end, expecting ‘=’

  28. RogueDeus says:

    Request?

    Is it possible to specify the damage type dealt by the recoil? Thus resistances/weaknesses can add another level of complexity.

    Thanks!

  29. Tsukihime says:

    Didn’t set a guard trigger for states. I have updated it so that all objects have a guard trigger as well.

  30. Inominavel says:

    Thus the marked enemy with that tag receives recoil damage. I expected the enemy marked with this tag could damage back to the attacker.
    Thus:
    Hime attacks Hedgehog!
    Hedgehog took 603 damage!
    Hime took 60 damage from the recoil!

    Hedgehog is an enemy that has the tag
    As the ability to Pokemon, Rough Skin:
    http://bulbapedia.bulbagarden.net/wiki/Rough_Skin_(Ability)

    • Tsukihime says:

      I forgot, you will need to use the -guard trigger to specify that it should only activate when the enemy is targeted by an action. The script is very generic and provides many different ways to trigger the effect. To achieve your desired effect you would add the trigger type to the name of the effect like this

      <eff: recoil_damage-guard .... >
      
      • Inominavel says:

        Sorry … I guess I did not quite understand. Should I use the tag below?

        I used it in the status, but the character with this status is not returning rand(300) damage.

        What did I do wrong?

  31. Inominavel says:

    This applies only to skills (and the user receives damage back) or can be applied to an enemy (and any attack against it results in damage back)?

    I would like something like your script Thorn Mail, but applies to an enemy and status, not the equipment.

    • Tsukihime says:

      It can be applied to any database object.

      • Inominavel says:

        How?
        All I got was to add a probability of returning all damage, using counter-attack. The idea is to return 10% of damage (for example) 100% of the time.

        Sorry if this question is too trivial, and thanks for the help.
        I’m really happy to speak directly to you, I am a big fan of his work.

  32. Sangmanjin says:

    Thank you!
    This is a useful addon if you want to create a fight more,exciting!
    Makes you think before you act.More useful if you have limited heal-ups!

Leave a Reply

Your email address will not be published. Required fields are marked *