Advertisement
KujiUn

CRCalc

Feb 13th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /self
  2. [h:caprate=100-(Level*2)]
  3. [h:hpmod=ceil(HP/NormalMaxHP*4)]
  4. [h,if(HP==1):hpmod=0]
  5. [h,if(hpmod<0):hpmod=1]
  6. [h:hpmod=((hpmod-2)*15)]
  7. [h:input(
  8. "stageNum|0,1,2|Number of Stages Remaining|LIST|SELECT=2",
  9. "rarity|None,Shiny,Legendary|Rarity of Pokemon|LIST"
  10. )]
  11. [h:stageMod=(stageNum-1)*10]
  12. [h:rarityMod=rarity*10]
  13. [h,if(rarity>1):rarityMod=30]
  14. [h:injMod=Injuries*5]
  15. [h:condMod=getState("Infatuation")*5+getState("Badly Poisoned")*10+getState("Burned")*10+getState("Confused")*5+getState("Frozen")*10+getState("Paralyzed")*10+getState("Poisoned")*10+getState("Sleeping")*10]
  16. The target's cap rate is: [r:caprate-hpmod+stageMod-rarityMod+injMod+condMod]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement