YesNoOk
avatar

AILevel (Triggers) (Read 9198 times)

Started by JustNoPoint, September 10, 2015, 03:32:53 pm
Share this topic:
AILevel (Triggers)
New #1  September 10, 2015, 03:32:53 pm
  • ******
    • www.justnopoint.com/
Returns the difficulty level of the player's AI.

Format:
AILevel
Arguments:
none
Return type:
int
Error conditions:
none
Details:
If AI is enabled on the player, the value ranges from 1 (easiest) to 8 (most difficult). If AI is not enabled on the player, the return value is 0.
Code:
Example:

trigger1 = Random < AILevel * 10
  Triggers with 1% probability at AILevel 1, 2% at AILevel 2,
  etc.
Last Edit: October 25, 2022, 02:08:52 am by Odb718
Re: AILevel (Triggers)
#2  September 11, 2015, 07:27:23 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
This detects MUGENs AI functionality. Using it by itself is not enough to net an intelligent AI. It is just a 100% reliable identifier that the character in question is under AI control.

This allows AI coders to create more than 1 difficulty setting with relative ease, or simply identify that the character is under the control of the PC. Or in some cases, isn't but you want it to be uncontrollable by a human in which case ailevel = 0 can trigger a forced AI variable and remove control from the player.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: AILevel (Triggers)
#3  September 10, 2016, 04:45:22 pm
  • avatar
  • ***
  • ̢̻̮̫̬̹̞̼̲̪̜̭͇̲͒ͪ̌ͬ̒̄̔̐͘͟ͅ ̢̋ͬ̓͗̏̇̌̑͐ͤ͗̔̊̕͏̴̣͎̟͈̬͚
    • Monaco
AILEVEL inside HELPER DEF will always return zero no matter what settings in mugen game option, so use root,ailevel instead if the trigger's inside HELPER DEF
http://signavatar.com/32255_s.gif

please visit my request thread. here
bad grammar is art