FORUM ARCHIVED

On-player-being-hit effects

Discussion in 'Modding' started by Ignis, Jun 6, 2013.

  1. Ignis

    Ignis Member

    Is it possible to make an ability that triggers a percentage of the time on the character being hit, that only deals damage to the attacking creature (not like clockwork where it deals to all in a range) and scales to a stat (I was thinking Burliness)?
    If so, how?
     
  2. Kazeto

    Kazeto Member

    It's fairly easy. Make a spell that works every time the player is hit, and make this spell trigger what you want with a random chance of it happening.

    The only issue is the fact that the name of the triggering spell will be shown every time you are hit, but it's easy to circumvent that if you know how to (hint: some spaces help).

    And the scaling itself is another matter. You can scale damage and healing effect (go to this thread if you don't know what parameters to use for that), but you can't scale buffs (at least not based on stats, and not without doing unseemly things to your code).
     
  3. Ignis

    Ignis Member

    Thank you so much, and also what's the trigger for player-being-hit? I tried to find it in clockwork's code and failed miserably.

    (and also when you say some spaces help do you mean make the name of the skill " "?)
     
  4. Kazeto

    Kazeto Member

    It's in the thread the link to which you can find in my previous post.

    Basic knowledge regarding strings. Adding one space to a string means it is no longer the same.
    And basic knowledge about monitors. They don't show what is outside of the screen.

    Combine these two and arrive to your own conclusion and/or a way to do it.
     
  5. Bohandas

    Bohandas Member

    Kazeto likes this.