User Tools

Site Tools


ai:predefinedrules

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 instructions for the AI.  +Here you can toggle and adjust a few basic instructions for the AI.\\ 
-This process automatically generates its own fuzzy rules.+This process uses ''.\UFE Addons\Runtime\AIRulesGenerator.cs'' to automatically generates its own fuzzy rules.\\ 
 +\\ 
  
 {{ :ai:ai_predefinedrules.jpg?nolink |}} {{ :ai:ai_predefinedrules.jpg?nolink |}}
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:activeframes|recovery frames]]giving it the ability to punish when there is [[move:activeframes|frame advantage]].
  
 **Use Hit Type Filters:** If enabled, the AI will attempt to read ''A.I. Definitions'' -> ''Hit Type'' from the opponent's move to determine if they should block high or low. If this option is toggled off the AI will attempt high or low based solo on the frequency set below. **Use Hit Type Filters:** If enabled, the AI will attempt to read ''A.I. Definitions'' -> ''Hit Type'' from the opponent's move to determine if they should block high or low. If this option is toggled off the AI will attempt high or low based solo on the frequency set below.
Line 59: Line 61:
  
 ---- ----
-Code access:  
  
-''UFE.config.player1Character.physics'' 
  
-Code example 1: +** Generated Fuzzy Rules **  
-<code c#>void OnHit(HitBox strokeHitBox, MoveInfo move, CharacterInfo hitter){ + 
- if (hitter == UFE.config.player1Character){ +Allows you to read the result of all the rules being generated by these optionsUseful 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; +
-+
-+
-}</code>+
  
 +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; 
- } 
-}</code> 
 ---- ----
  
  
-[[character:start|< Back to Character Editor]]+[[ai:start|< Back to A.I. Editor]]
ai/predefinedrules.1413362685.txt.gz · Last modified: 2014/10/15 04:44 by Mistermind