Difference between revisions of "MaxMana"

From Wiki
Jump to: navigation, search
 
Line 5: Line 5:
 
{{ro}}
 
{{ro}}
  
 +
(Added in 1.41) The #maxMana system variable determines the maximum mana pool for the character.
 +
 +
'''NOTE:'''
 +
*This variable will not work unless the character status bar is open. You can use "event Macro 8 2" to open it from your script.
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
 
+
...
 
+
if #mana < #maxMana
 +
  gosub meditate
 +
...
 
</pre>
 
</pre>
 
==== See Also ====
 
==== See Also ====
 
{|
 
{|
| Width=200px |  
+
[[Var_maxStam|#MaxStamina]], [[Var_maxHits|#MaxHits]], [[Var_hits|#Hits]], [[Var_str|#Str]], [[Var_dex|#Dex]], [[Var_mana|#Mana]], [[Var_stamina|#Stamina]], [[Var_int|#Int]], [[Var_maxStats|#MaxStats]]
 
|}
 
|}
 
----
 
----

Revision as of 23:25, 15 August 2005

#maxMana

Status System Variables

Description

(Added in 1.41) The #maxMana system variable determines the maximum mana pool for the character.

NOTE:

  • This variable will not work unless the character status bar is open. You can use "event Macro 8 2" to open it from your script.

Example

...
if #mana < #maxMana
  gosub meditate
...

See Also

#MaxStamina, #MaxHits, #Hits, #Str, #Dex, #Mana, #Stamina, #Int, #MaxStats

Main_Page Documentation Status System Variables