Ai Exploration (iv.)

Source: Internet
Author: User

Before writing, the search plugin for yesterday to do some additional, because the plug-in is not very perfect, so when I found that there is no need to meet the requirements, I will try to change the source code, or add the interface to meet my needs.

Yesterday, adding one is its own steering code, adding another today, is to change the way forward in time. We found that the original plugin changed the way, we had to wait for the character to reach the target point to change, we hope in AI is that when the target point changes, the role in the half of the path will change the new direction.

OK, the solution to this problem is simple, just the following methods

     Public void Onstopfind ()    {        true;     }

This line of code in the target pathfinding, random pathfinding, follow the path of the three classes are added to it.

The following continues to study AI artificial intelligence.

AI Intelligence Level:

Five levels are currently defined, as follows:

Fixed point fixed direction found collision shooting! This is like the front door of the two fire dragon, when someone stepped on the trap, the launch. The IQ is too low for 1, we find the rule basically ignore it.

Fixed point 360° direction to discover collision shooting! These are often found in tower defense, such as the turret of the arrow turret, they will not move, but the enemy will not stop firing in range. IQ definition 2.

Move the point 360°, find the collision shot, and discover the collision away from the track. Most of these are creeps, such as the soldiers in the age of the Red police empire, who usually stand still, but have enemies who will follow and shoot until they kill each other. Of course, if the enemy runs too fast, they will not keep track. So the IQ is only 3.

Move points 360°, Discover collision shooting, find enemies, proactively search and track. This class is the general level of the generals. Friends who have played tribal wars know that when soldiers are put in the enemy camp, they will attack on their own initiative, they do not need you to tell him who to fight, he will arrange the beating process. So this kind of IQ is relatively high, but also everybody likes to play this kind of game reason, IQ definition 4.

Move point 360°, Discover collision shooting, find enemies, study whether it has been played, if the difficulty is high, command other associates to attack. This kind of IQ is the highest, at present I do not see what kind of game there, like a soldier, they will take the initiative to find the enemy, they will choose to play first, they found that difficult to hit, will first stop waiting for the companion together. IQ definition 5.

In the following chapters I will start with this five level IQ to do AI. Why before choose Simplepath also fancy he can achieve fifth level IQ.

Ai Exploration (iv.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.