Klokreations

You are not connected. Please login or register

FE4/9-style Wrath Skill

View previous topic View next topic Go down  Message [Page 1 of 1]

1 FE4/9-style Wrath Skill on Thu Aug 04, 2011 5:01 pm

Charlotte

avatar
Chick
Just plop one of these in the Game_Event Skills script and set a skill to be named "Wrath|WRATH"

FE4:
Code:
   
  # WRATH
  alias_method :bwd_wrathskl_gmevent_crit_skill, :crit_skill
  def crit_skill(n, wpn_crit, act_crit, target, weapon, magic, distance)
    n = 0
    if self.actor.skill_include?('WRATH')
      unless (self.actor.maxhp - self.actor.hp) < (self.actor.maxhp / 2)
        n=255
      end
    end
    return bwd_wrathskl_gmevent_crit_skill(n, wpn_crit, act_crit, target,
        weapon, magic, distance)
  end
FE9:
Code:
   
  # WRATH
  alias_method :bwd_wrathskl_gmevent_crit_skill, :crit_skill
  def crit_skill(n, wpn_crit, act_crit, target, weapon, magic, distance)
    n = 0
    if self.actor.skill_include?('WRATH')
      unless (self.actor.maxhp - self.actor.hp) < (self.actor.maxhp / 2)
        n=50
      end
    end
    return bwd_wrathskl_gmevent_crit_skill(n, wpn_crit, act_crit, target,
        weapon, magic, distance)
  end

The FE9 Wrath is sliiiightly different, at least if the SF description is anything to go by. This'll make it so if your max HP is 20 and you have 10 left, you'll get the bonus, while in PoR you'd need to have 9 HP.

But anyway, enjoy!

2 Re: FE4/9-style Wrath Skill on Thu Aug 04, 2011 5:41 pm

Mercenary Lord

avatar
Wrath is a deadly sin, you sinful sinner!

http://www.klokreations.net

3 Re: FE4/9-style Wrath Skill on Thu Aug 04, 2011 5:57 pm

Charlotte

avatar
Chick
Hey, I renamed it, and I'm using a less OP version in my game. FE4 was insane with Wrath, but back then, Critical was a skill, not a general mechanic.

4 Re: FE4/9-style Wrath Skill on Fri Aug 05, 2011 10:37 am

Mercenary Lord

avatar
meh.

http://www.klokreations.net

5 Re: FE4/9-style Wrath Skill on Thu Oct 11, 2012 8:52 pm

felix198

avatar
I tried the skill, got an error. Does it require any script between the skills in the code?
I suck a code so I rarely figure out what I'm doing wrong. XP

6 Re: FE4/9-style Wrath Skill on Thu Oct 11, 2012 9:28 pm

Klokinator

avatar
Admin
Make sure you made the skill in the databse be Name|WRATH so it registers the wrath in the scripts. Make sure it's aligned in the scripts, because if copying from here and pasting into the scripts removes all the tabs, it won't work. Also, what error did you get? Give us a screencap.

http://klokreations.forumotion.com

7 Re: FE4/9-style Wrath Skill on Fri Oct 12, 2012 12:10 am

felix198

avatar
Okay nevermind, I got it to work, I recopied it and it worked this time. I might have left out the last "end" part of the script.

And the FE4 Wrath is way awesome. As overpowered as it might be.

8 Re: FE4/9-style Wrath Skill on Tue Nov 06, 2012 4:40 pm

felix198

avatar
Hey Charlotte, do you think you could do a similar script for a FE4 Prayer skill? Where as the
character looses life they gain avoid? If you have time of course...

9 Re: FE4/9-style Wrath Skill on Tue Nov 06, 2012 7:30 pm

Charlotte

avatar
Chick
Code:
# PRAYER
  alias_method :pk_prayerskl_gmevent_eva_skill, :eva_skill
  def eva_skill(n, actor_avo, terr_avo, target)
    n = 0
    if self.actor.skill_include?(PRAYER')
      unless self.actor.hp > 10
        n= (11-self.actor.hp)*10
      end
    end
    return pk_prayerskl_gmevent_eva_skill(n, actor_avo, terr_avo, target)
  end
I actually haven't tested this and have no idea if it'll work, but it's worth a shot?

10 Re: FE4/9-style Wrath Skill on Tue Nov 06, 2012 8:45 pm

felix198

avatar
Sure I'll try it out! Thanks Very Happy

11 Re: FE4/9-style Wrath Skill on Sat Apr 06, 2013 12:49 pm

JeanMarc


Code:
# PRAYER
  alias_method :pk_prayerskl_gmevent_eva_skill, :eva_skill
  def eva_skill(n, actor_avo, terr_avo, target)
    n = 0
    if self.actor.skill_include?('PRAYER')
      unless self.actor.hp > 10
        n= (11-self.actor.hp)*10
      end
    end
    return pk_prayerskl_gmevent_eva_skill(n, actor_avo, terr_avo, target)
  end

Because there was a ' missing in if self.actor.skill_include?('PRAYER')
in case anyone wanted to try the code out.

12 Re: FE4/9-style Wrath Skill on Sat Apr 06, 2013 4:11 pm

Klokinator

avatar
Admin
Thanks for the fix Jean Smile


___________________________________
http://klokreations.forumotion.com

13 Re: FE4/9-style Wrath Skill on Sat Apr 06, 2013 10:17 pm

JeanMarc


It's nothing. I mean, I must be useful every once in a while

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum