Difference between revisions of "EnemyHits"

From Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{header|Combat|ro|The #enemyHits system variable represents the percentage of hit points left on the current enemy.}}
== #enemyHits ==
+
 
'''Combat System Variables'''
+
 
=== Description ===
+
{{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 values randomly.}}
{{ro}}
+
 
  
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
  
 +
if #enemyID <> N/A
 +
  display ok You're being attacked! The attacker has , #enemyHits , % Hits.
  
 
</pre>
 
</pre>
==== See Also ====
+
 
{|
+
=See Also=
| Width=200px |
+
{{Combat}}
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Combat|Combat System Variables]]
+
|}
+

Latest revision as of 10:21, 7 September 2007

The #enemyHits system variable represents the percentage of hit points left on 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 values 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