Difference between revisions of "EnemyID"

From Wiki
Jump to: navigation, search
 
Line 13: Line 13:
 
</pre>
 
</pre>
  
{{footer}}
+
=See Also=
 +
{{Combat}}

Latest revision as of 09:21, 7 September 2007

The #enemyID system variable holds the ID of the current enemy.


Note: It is only possible to see one enemy at a time using this variable. If you have more than one enemy, the variable will switch ID's randomly.


Example


if #enemyID <> N/A
  display ok You're being attacked! The attacker has , #enemyHits , % Hits.

See Also

Combat

  • The combat system variables allow you to see and control information that deals with combat.
#lHandID Returns the ID of the item to be armed in the left hand
#rHandID Returns the ID of the item to be armed in the right hand
#enemyHits Returns the percentage of hit points left on the current enemy
#enemyID Returns the ID of the current enemy