Difference between revisions of "Weight"

From Wiki
Jump to: navigation, search
 
Line 5: Line 5:
 
{{ro}}
 
{{ro}}
  
 +
The #weight system variable determines the current weight of 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 #weight > 350
 +
  gosub gotoBank
 +
...
 
</pre>
 
</pre>
 
==== See Also ====
 
==== See Also ====
 
{|
 
{|
| Width=200px |  
+
| Width=200px | [[var maxWeight|MaxWeight]]
 
|}
 
|}
 
----
 
----

Revision as of 23:51, 15 August 2005

#weight

Status System Variables

Description

The #weight system variable determines the current weight of 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 #weight > 350
  gosub gotoBank
...

See Also

MaxWeight

Main_Page Documentation Status System Variables