Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. #!python
  2. #include 36956
  3.  
  4. #this template will enable you to script your own boss
  5. #first off, find and replace all "fadoka" (without quotes) with your boss's name
  6. #each of the following should be completed in the desired party order
  7. #list your Pokemon's species
  8. Pokes = ["Salamence", "Keldeo", "Dragonite", "Jirachi", "Tyranitar", "Conkeldurr"]
  9. #replace these with your desired natures
  10. Natures = [Nature.Naive, Nature.Timid, Nature.Adamant, Nature.Jolly, Nature.Adamant, Nature.Adamant]
  11. #replace move1-4 with the names of your boss's desired moves for easy difficulty
  12. MovesEasy = [
  13. ("Dragon Dance", "Dragon Claw", "Fire Fang", "Earthquake"),
  14. ("Bubblebeam", "Focus Blast", "Icy Wind", "Calm Mind"),
  15. ("Fire Punch", "Dragon Claw", "Thunder Punch", "Waterfall"),
  16. ("Iron Head", "Thunder Punch", "Aerial Ace", "Fire Punch"),
  17. ("Rock Slide", "Crunch", "Superpower", "Earthquake"),
  18. ("Hammer Arm", "Facade", "Knock Off", "Ice Punch"),
  19. ]
  20. #replace move1-4 with the names of your boss's desired moves for medium and hard difficulty
  21. MovesNormal = [
  22. ("Dragon Dance", "Outrage", "Fire Blast", "Iron Tail"),
  23. ("Hydro Pump", "Secret Sword", "Icy Wind", "Calm Mind"),
  24. ("Dragon Dance", "Dragon Claw", "Extreme Speed", "Waterfall"),
  25. ("Iron Head", "Zen Headbutt", "Ice Punch", "Fire Punch"),
  26. ("Stone Edge", "Crunch", "Superpower", "Fire Punch"),
  27. ("Drain Punch", "Facade", "Knock Off", "Ice Punch"),
  28. ]
  29. #replaced item1-6 with your Pokemon's items, will only be effective on medium and hard
  30. Items = [
  31. "Lum Berry",
  32. "Choice Specs",
  33. "Yache Berry",
  34. "Choice Scarf",
  35. "Leftovers",
  36. "Flame Orb"
  37. ]
  38. #EVs based on difficulty
  39. EV_easy = [(0, 0, 0, 0, 0, 0),(0, 0, 0, 0, 0, 0),(0, 0, 0, 0, 0, 0),(0, 0, 0, 0, 0, 0),(0, 0, 0, 0, 0, 0),(0, 0, 0, 0, 0, 0)]
  40. EV_medium = [(252, 252, 252, 252, 252, 252),(252, 252, 252, 252, 252, 252),(252, 252, 252, 252, 252, 252),(252, 252, 252, 252, 252, 252),(252, 252, 252, 252, 252, 252),(252, 252, 252, 252, 252, 252)]
  41. EV_hard = [(400, 400, 400, 400, 400, 400),(400, 400, 400, 400, 400, 400),(400, 400, 400, 400, 400, 400),(400, 400, 400, 400, 400, 400),(400, 400, 400, 400, 400, 400),(400, 400, 400, 400, 400, 400)]
  42. #replace the integers with your Pokemon's abilities (first ability is 1, second ability is 2, hidden ability is 3)
  43. Abilities = [1, 1, 3, 1, 1, 1]
  44. #replace name with your boss's name, keep it in quotes
  45. bossname = "Fadoka"
  46. #format items ("itemname",minquantity,maxquantity) and simply name Pokemon - you can add as many or as few as you like
  47. #higher tier is rarer
  48. t1items = [("Rare Candy",4,6)]
  49. t2items = [("Focus Sash",15,20)]
  50. t3items = []
  51. t1pokes = ["Starly"]
  52. t2pokes = ["Klefki","Relicanth"]
  53. t3pokes = ["Rotom"]
  54. rewardlist = [t1pokes, t1items, t2pokes, t2items, t3pokes, t3items]
  55. #third time reward pokes go here
  56. extrarewardlist = ["Klefki","Relicanth","Rotom"]
  57.  
  58. def eumitokenreward(min, max, bossname):
  59. reward = random.randint(min, max)
  60. user.vars.EumiTokens = user.vars.EumiTokens + reward
  61. user.say("{} gives you {} Eumi Tokens!".format(bossname, reward))
  62. return
  63.  
  64. if user.vars.fadokaextrareward == True:
  65. user.vars.fadokaextrareward = thirdtimereward(extrarewardlist)
  66. return
  67. if user.vars.fadokacooldown is not None:
  68. user.say("Just come back later. Let me troll the confused guy in the casino right there for now.")
  69. checker(user.expire.fadokacooldown.days, user.vars.fadokaconsecutivewins)
  70. return
  71. #what you want the boss to say if player is not region champion
  72. if not user.vars.HoennChamp:
  73. return user.say("if the user sees this something is wrong")
  74. if user.vars.HoennChamp == "0":
  75. return user.say("if the user sees this something is wrong")
  76.  
  77. #greet the player
  78. user.say("Hey buddy.")
  79.  
  80. #warn new players that bosses are difficult
  81. if user.playtime < timedelta(hours=100):
  82. user.say("The eye of the tiger senses your weakness. Are you sure about this?")
  83. #ask for a battle otherwise
  84. else:
  85. user.say("What's up? You came here to chill? Okay let's have a look at the eye of the tiger before you check on the dude searching his books.")
  86. trigger = user.select("Battle {}?".format(bossname),["Ok","No, tigers are scary"])
  87. if trigger[0] == 1:
  88. return
  89. difficulty = user.select("The eye of the tiger awaits you.",["Uhh, take it easy... (Easy)","As you wish. (Medium)","Come at me! (Hard)"])
  90. if difficulty[0] == 0:
  91. confirmdiff = "Easy"
  92. elif difficulty[0] == 1:
  93. confimdiff = "Medium"
  94. else:
  95. confirmdiff = "Hard"
  96. confirm = user.select("{}, huh?".format(confirmdiff),["Yeah!","No"])
  97. if confirm[0]== 1:
  98. return
  99. #dialogue after battle is agreed
  100. user.say("Let's do this!")
  101. if difficulty[0] == 0:
  102. battleresult = bosseasybattle(Pokes, Natures, MovesEasy, Abilities, EV_easy)
  103. user.say("Consecutive win rewards are not available on Easy difficulty!")
  104. #minimum money rewarded
  105. minmoney = 5000
  106. #maximum money rewarded
  107. maxmoney = 15000
  108. #pve coins rewarded
  109. pvecoins = 0
  110. #% of rewards that should be tier 1
  111. t2cutoff = 85
  112. #% of rewards that should not be tier 3
  113. t3cutoff = 95
  114. mineumi = 15
  115. maxeumi = 20
  116. elif difficulty[0] == 1:
  117. battleresult = bossbattle(Pokes, Natures, MovesNormal, Items, Abilities, EV_medium)
  118. #see above
  119. minmoney = 8000
  120. maxmoney = 25000
  121. pvecoins = 0
  122. t2cutoff = 80
  123. t3cutoff = 90
  124. mineumi = 20
  125. maxeumi = 30
  126. elif difficulty[0] == 2:
  127. battleresult = superbossbattle(Pokes, Natures, MovesNormal, Items, Abilities, EV_hard)
  128. #see above
  129. minmoney = 20000
  130. maxmoney = 35000
  131. pvecoins = 0
  132. t2cutoff = 60
  133. t3cutoff = 85
  134. mineumi = 30
  135. maxeumi = 40
  136. else:
  137. user.say("Something went wrong.")
  138. if battleresult != 1:
  139. user.vars.fadokaconsecutivewins = 0
  140. #victory quotation
  141. user.say("The dead are rising from the graves, Is this the eye of the tiger?")
  142. return
  143. user.say("Legends never die but brah, go check if Bill found his book.")
  144. #gives the player their rewards
  145. eumitokenreward(mineumi,maxeumi,bossname)
  146. rfunctiers(bossname, minmoney, maxmoney, pvecoins, t2cutoff, t3cutoff, rewardlist)
  147. if user.vars.fadokaconsecutivewins == 0:
  148. user.vars.fadokaconsecutivewins = 1
  149. user.say("You have beaten me once in a row. You need to beat me two more times on Medium or Hard to pick a prize!")
  150. elif user.vars.fadokaconsecutivewins == 1:
  151. user.vars.fadokaconsecutivewins = 2
  152. user.say("You have beaten me twice in a row. You need to beat me one more time on Medium or Hard to pick a prize!")
  153. elif user.vars.fadokaconsecutivewins == 2:
  154. user.vars.fadoka_consecutivewins = 0
  155. user.vars.fadokaextrareward = True
  156. user.vars.fadokaextrareward = thirdtimereward(extrarewardlist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement