Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """github.com/AceZephyr/wmsim
- Put these files in the same folder as this script
- これらのファイルを、このスクリプトと同じフォルダに入れてください。
- run this command (コマンドプロンプト): python flapbeats.py
- change START and END below"""
- from pprint import pprint
- from state import State, Battle
- def run(igt: int, lr: bool, start_hold: bool, menus: int):
- s = State(igt)
- # previous battle (前戦):
- # 106 = harpy (キマイラ)
- # 107 = flapbeats (フラップビイト)
- s.lastenc = 106
- if start_hold:
- for _ in range(13):
- s.walk(4, 24, lr, movement=False)
- for _ in range(menus):
- s.walk(4, 24, lr, movement=False)
- try:
- # desert
- for _ in range(10000):
- s.walk(4, 24, lr)
- print("wtf")
- except Battle as b:
- return b, s
- arr = []
- # 開始
- START = 2 * 60 * 60 + 20 * 60
- # エンド
- END = 2 * 60 * 60 + 30 * 60
- # max number of menus (最高のメニュー数)
- MAX_MENUS = 3
- def tryall(igt: int):
- b, s = run(igt, False, True, 0)
- if b.battle_id == 107 and b.preempt:
- arr.append((igt, "up/down", "hold", 0))
- return
- for menus in range(0, MAX_MENUS):
- for hold in [True, False]:
- b, s = run(igt, True, hold, menus)
- if b.battle_id == 107 and b.preempt:
- arr.append((igt, "left/right", "hold" if hold else "delay", menus))
- return
- for x in range(START, END + 1):
- tryall(x)
- print(len(arr))
- pprint(arr)
Add Comment
Please, Sign In to add comment