Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

CheckAILevel

From AGEWiki

Revision as of 13:44, 24 April 2010 by Lodilefty (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CheckAILevel

Syntax  

CheckAILevel = AILevel

Description

Check for AI level greater than or equal to the value

Example  

CheckAILevel = 2

TRUE if the AI difficulty is set Normal or higher

Important note: the test is 'is the player AI level at least equal to'. So you can't check if a player is human, but you can check if a player is AI, by testing CheckAILevel = 1 For checking if the the player is human, use CheckIsPlayer.


 

Parameters

AILevel

One of

0 = Human
1 = LvlEasy
2 = LvlNormal
3 = LvlHard
4 = LvlVHard
Forums