This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ai:predefinedrules [2014/10/15 04:44] Mistermind created |
ai:predefinedrules [2014/10/27 13:24] (current) Mistermind |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Predefined Rules ====== | ====== Predefined Rules ====== | ||
- | Here you can toggle and adjust a few general | + | Here you can toggle and adjust a few basic instructions for the AI.\\ |
- | This process automatically generates its own fuzzy rules. | + | This process |
+ | \\ | ||
{{ : | {{ : | ||
Line 47: | Line 49: | ||
===== Block ===== | ===== Block ===== | ||
- | **Auto Block:** Toggle to make the AI attempt to block moves. Blocking will be attempted as soon as the opponent begins executing a move, and will end as soon as it begin the //recovery frames//. | + | **Auto Block:** Toggle to make the AI attempt to block moves. Blocking will be attempted as soon as the opponent begins executing a move. The AI is also programmed to stop blocking When an attack reaches its [[move: |
**Use Hit Type Filters:** If enabled, the AI will attempt to read '' | **Use Hit Type Filters:** If enabled, the AI will attempt to read '' | ||
Line 59: | Line 61: | ||
---- | ---- | ||
- | Code access: | ||
- | '' | ||
- | Code example 1: | + | ** Generated Fuzzy Rules ** |
- | <code c#>void OnHit(HitBox strokeHitBox, | + | |
- | if (hitter == UFE.config.player1Character){ | + | Allows you to read the result of all the rules being generated by these options. Useful to debug how each combination interact and the end result that is sent to the Fuzzy Core. |
- | if (UFE.config.player2Character.characterName == "Shozo Iizuka" | + | |
- | UFE.config.player2Character.physics.weight = 175; | + | |
- | } | + | |
- | } | + | |
- | }</ | + | |
+ | This option is for debug viewing only and it has no impact on the game. | ||
- | Code example 2: | ||
- | <code c#>void OnMove(MoveInfo move, CharacterInfo player){ | ||
- | if (move.moveName == "oil up"){ | ||
- | player.physics.friction = 10; | ||
- | } | ||
- | }</ | ||
---- | ---- | ||
- | [[character:start|< Back to Character | + | [[ai:start|< Back to A.I. Editor]] |