import math BeatUpBP = ##(Base Power = User Base Attack/10 + 5, if the mon has technician just times it by 1.5 and truncate it) Level = ##Beat Up user level Stab = ##Enter True / False Effectiveness = #Type Effectiveness OtherMultipliers = 5#e.g. Gems, Life Orb, Solid Rock ... If no other multipliers, enter 1 Attack1 = ##Enter each party mon's attack stat Attack2 = Attack3 = Attack4 = Attack5 = Attack6 = Defense = ##Enemy mon's defense stat EnemyHP = LevelFactor = int((2*Level)/5+2)*25 Damage1 = int(int(LevelFactor * (Attack1/Defense)/50+2)*0.85) Damage2 = int(int(LevelFactor * (Attack2/Defense)/50+2)*0.85) Damage3 = int(int(LevelFactor * (Attack3/Defense)/50+2)*0.85) Damage4 = int(int(LevelFactor * (Attack4/Defense)/50+2)*0.85) Damage5 = int(int(LevelFactor * (Attack5/Defense)/50+2)*0.85) Damage6 = int(int(LevelFactor * (Attack6/Defense)/50+2)*0.85) if Stab == True: Damage1 = int(Damage1*1.5) Damage2 = int(Damage2*1.5) Damage3 = int(Damage3*1.5) Damage4 = int(Damage4*1.5) Damage5 = int(Damage5*1.5) Damage6 = int(Damage6*1.5) Damage1 = int(Damage1 * Effectiveness * OtherMultipliers) Damage2 = int(Damage2 * Effectiveness * OtherMultipliers) Damage3 = int(Damage3 * Effectiveness * OtherMultipliers) Damage4 = int(Damage4 * Effectiveness * OtherMultipliers) Damage5 = int(Damage5 * Effectiveness * OtherMultipliers) Damage6 = int(Damage6 * Effectiveness * OtherMultipliers) TotalDamage = Damage1+Damage2+Damage3+Damage4+Damage5+Damage6 if TotalDamage >= EnemyHP: print("Damage =",TotalDamage,"Always kills") else: print("Damage =",TotalDamage, "Not guaranteed")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question