Dancer_A

Resolve

Dec 14th, 2022 (edited)
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. // idr the specific code for getting the stat, this is a guess
  2.  
  3. // Skills: Resolve
  4. if (actor.has_Skill("RESOLVE")) // if actor has skill
  5.     if (actor.hp <= actor.maxhp / 4) // 25%
  6.         n += actor.stat(Stat_Labels.Pow) / 5; // + 20% of strength
  7.  
  8. // different method
  9.  
  10. // Skills: Resolve
  11. if (actor.has_Skill("RESOLVE")) // if actor has skill
  12.     if (actor.hp <= actor.maxhp / 4) // 25%
  13.         n += actor.stat(Stat_Labels.Skl) / 5; // + 20% of skill
  14.  
  15. // different method
  16.  
  17. // Skills: Resolve
  18. if (actor.has_Skill("RESOLVE")) // if actor has skill
  19.     if (actor.hp <= actor.maxhp / 4) // 25%
  20.         n += actor.stat(Stat_Labels.Spd) / 5; // + 20% of speed
  21.  
Advertisement
Add Comment
Please, Sign In to add comment