Masuzu / SarasaBot

A GBF bot for automated raid farming with scriptable behaviour
https://gbtools.azurewebsites.net/SarasaBot/en/Home
27 stars 4 forks source link

Is it possible to manually put press "attack" button in lua script? #237

Closed ghost closed 5 years ago

ghost commented 5 years ago

Basically, Sarsa bot is refusing to autoattack after using skills and it terminates the battle right away.

if turn == 1 then Summon(1) character_2:UseSkill(2) character_1:UseSkill(1) character_1:UseSkill(2) end

TerminateBattle()

This is what I have written. I am not sure what's wrong but this is for mechanic so I have to have it press the attack button after using the skills :/ Is there a command to let it press the attack button?

I've also tried adding extra turns but it seems like if then -> end doesn't trigger attack as it does in zooey bot?

edit: just tested and adding extra turns such as if turn == n doesn't do anything, the skills get used in turn 1 and the battle gets terminated. why?

ghost commented 5 years ago

Seems like getting rid of TerminateBattle() solved the problem