Fate/Grand Order（ It's not as good as it is in Europe ） As a krypton cheating game developed by Sony in order to save itself from bankruptcy, it is aimed at yuechu , It's not like next door 《 Yin Yang teacher 》 Our automatic combat system （ Look at the scripts that people bring with them now ）. After all, I'm lazy , Just write a script , Time saving and labor saving .

# Start

A combat script , In fact, it can be regarded as AI It's preliminary . Although it's just violence, work out the plan that causes the most damage orz.

We don't think about release here   Skill  、  Treasure   and   Starburst   These three very important things ... Just think about it   restraint 、  resistance   And the damage from different types of cards , The goal is to work out the combination with the highest damage .

# Command card

Battle interface

To start , We first need to analyze the composition of the interface . First of all, here's a row of instruction cards , Each instruction card has its own type （ Yellow box ） and “ restraint ” and “ resistance ” The tag （ Yellow circle ） Things like that . Then we can think of each instruction card as a   object , And then it abstracts its characteristics . We can see that every card has one   coordinate  , One   type  （ Green, blue and red ）, A kind of state  （ nothing / restraint / resistance ）, And click Yes   The order  （1/2/3） and   Damage coefficient  （ There is a table for this ）.

So we can do this ：

# Anti sealing

In fact, the method is very simple , Add random click , And different intervals （ Waiting time ） That's all right. , Click on each card to change position , There is a variable interval between each card , And some intentional “ touch by mistake ” There should be no problem , In fact, we can also add some sliding of different lengths , It's just a bunch of random functions 233

# Integrate

To put it simply, just integrate the code above

Start interface

Recognize the interface and click “Attack”

End the screen

Identify to “ The fetters of followers ” Terminate script

The middle is the one mentioned above . It's a continuous cycle , until “ end ” The interface just stops . If you have anything else, I'll add it later OWO

# summary

This is probably the biggest and most complicated project I've ever worked on , It's also the first time I've come into contact with a little OOP. However, this project is more practical , After all, there's nothing high-end , Or more efficient algorithms , This should also be something to be improved in the future .

The above is the whole content of this article , I hope the content of this article has a certain reference value for your study or work , Thank you for your support .python Learning exchange group

9

8

4

6

3

2

5

7

9

Besides sharing technical articles, there are many benefits , Personal learning materials can be obtained including but not limited to Python Practical drill 、PDF Electronic documents 、 Interview collection 、 Learning materials, etc .

## utilize Python Realization FGO Automatic combat script , There's no need to explode the liver any more ~ More articles about

1. utilize python build Powersploit powershell Script sites

powershell Construction of script site One .Powersploit Powersploit It's based on powershell Post osmosis (Post-Exploitation) frame , Integrate a large number of penetration related modules and functions . Next ...

2. Python 100 A sample code 【 Explode the liver and arrange Recommended collection 】

This tutorial includes 62 A basic example ,12 A core example ,26 It's an idiom . If it's not bad , Welcome to forward . Leaving a message. . One . Python Basics 62 example 1 Ten to two Convert decimal to binary : >>> b ...

3. python Reptiles 07 | With BeautifulSoup , Mom doesn't have to worry about my regular expressions anymore

We did it last time Your first reptile , Climb Dangdang net Top 500 This five star book Some friends think Using regular expressions to extract information Too much trouble Is there any other way It's easier to filter what we want emmmm You don't have to say also ...

4. utilize Python Script silent remote control roommate computer boot password ！

Just trick your roommate , Do not use for illegal purposes ! utilize python Script controls roommates windows Power on password of the system computer . utilize random() Generate random number ( password ), everybody knows , Only you know the password ! Python Code is divided into cli ...

5. python Simple monitoring scripts - utilize socket、psutil Prevent remote hosts from running specific programs

python Simple monitoring scripts - utilize socket.psutil Prevent remote hosts from running specific programs psutil It's a cross platform library (http://code.google.com/p/psutil/), Can easily achieve access to ...

6. utilize python Script （xpath） Fetching the data

Someone will ask. re and xpath What's the relationship ? If you know js And jquery, So this is easy to understand . Last one : utilize python Script (re) Grab Meikong mm picture # -*- coding:utf-8 -*- from ...

7. utilize Python Script generation .h5 file Code

utilize Python Script generation .h5 file import os, json, argparse from threading import Thread from Queue import Queue ...

8. zabbix utilize python The script realizes the nail alarm

Zabbix utilize python The script realizes the nail alarm 1. install python3.6 Environmental Science 2. establish python Script cd local/zabbix-4.0.3/share/zabbix/alertscripts ...

9. utilize Python The script completes a Fat-tree The topology of type

utilize Python The script completes one as shown in the figure below Fat-tree The topology of type ( Switch and host name should be consistent with the figure , namely s1~s6,h1~h8) Reference material Modify the code as follows : from mininet.topo import T ...

## Random recommendation

1. unkow jdbc driver : http://maven.apache.org

Reported such a mistake , It took a long time to find out what the problem was , I don't know exactly why and what happened , It's just that now it can keep running This mistake is because of my spring-mybatis.xml The file cannot be read jdbc.properties ...

2. C# Basic principles —— All interviewers like to ask about entrustment and events （ correct ）

I wrote this blog yesterday , There are some problems with the point of view in this paper , After the netizen message and personal learning found mistakes , The original is still reserved , The changes are made later , Don't be afraid to laugh , I'm afraid I'll make a mistake . I don't know if I can still put it on the front page , Let the misled students be misled again . One . original text A few ...

3. 2017 China Database Technology Conference （DTCC） It's coming again ！ expect ~~

2017 The 8th China Database Technology Conference (DTCC2017) Will be in 2017 year 5 month 11-13 The day arrived as promised .2017 China Database Technology Conference (DTCC) With " Data driven • Value discovery " The theme of , From the Internet . electric ...

4. Handling Class Imbalance with R and Caret - An Introduction

When faced with classification tasks in the real world, it can be challenging to deal with an outcom ...

5. 201521123093 java The third week is the summary

1. This week's learning summary Learning object-oriented , I will learn a lot of fragmented concepts and knowledge . Try to learn how to use mind maps to break up these concepts . Knowledge is organized . Please use pen and paper or the following tools to draw the knowledge points learned this week . Take a picture or upload it . This week's learning summary : ...

6. bzoj 1210 [HNOI2004] Postman The plug dp

The plug dp Board question ?? All night long , also tm It's all a copy of the standard range .. And high precision , Hash in , I'm still weak ,orz Various dalao If you don't understand, you can read the original paper .. #include<cstdio> #incl ...

7. linux Software management python Package management

Python Package management ====================================================================================python ...

8. SVG Study &lt; Four &gt; Basics API

Catalog SVG Study < One > Basic graphics and line segments SVG Study < Two > Advanced SVG The world , View , window stroke attribute svg grouping SVG Study < 3、 ... and > The gradient SVG Study < Four ...