Java defines four (4) kinds of variables:
* Instance Variables (Non-Static Fields)
* Class Variables (Static Fields)
* Local Variables
* Parameters
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - Java defines four (4) kinds of variables:
* Instance Variables (Non-Static Fields)
* Class Variables (Static Fields)
* Local Variables
* Parameters
- here is a list of all the Elfbot variables
* $mp
* $maxmp
* $mppc
* $hp
* $maxhp
* $hppc
* $cap
* $exp
* $level
* $mlevel
* $posx
* $posy
* $posz
* $soul
* $stamina
* $count
* $screenleft
* $screenright
* $screentop
* $screenbottom
* $name
* $time
* $timems
* $deltatime
* $deltatimems
* $exptnl
* $exph
* $expgained
* $timetnl
* $exptolevel.XX
* $timetolevel.XX
* $monsteraround.XX
* $playersaround.XX
* $sbtime
* $formattime.YY
* $formatnum.YY
* $itemcount.ITEMID
* $itemcount.ITEMNAME
* $poisoned
* $poisondmg
*
*
*
*
- Variables are an essential thing in all programming languages. They help us reuse multiple values more than just once. One special thing about Python is the implicit type-inference. This means, that we do not have to assign a type to a variable by it's declaration as in Java or C. That means that the compiler does the typing by itself.
- The variables are elements used in the script that can contain:
* numbers
* characters, letters
* character strings
* number sets
* character sets
- Variables can be used to store text or data. You can create a variable like this:
- These variables can be used in slash commands. $target Your current target's name $name Your name (minus any titles) $level Your level (security/threat, not combat) $archetype Your archetype (Tanker, Mastermind, etc) $origin Your origin (Science, Magic, etc) $battlecry Your battlecry, which can be modified, along with your backstory, through the options menu.
- Variables are named values in your scripts that can hold value. If you try to access a variable that wasn't defined yet, you will get the value nil. Unlike other languages, Lua isn't strongly typed, and it is instead dynamically typed. This gives you a lot more freedom than strongly typed languages, such as Java, C++ or C. You can assign any value of any type to any variable whether it's defined or not! File:VarAssignment.png
|
dcterms:subject
| |
dbkwik:borlandpasc...iPageUsesTemplate
| |
abstract
| - Java defines four (4) kinds of variables:
* Instance Variables (Non-Static Fields)
* Class Variables (Static Fields)
* Local Variables
* Parameters
- here is a list of all the Elfbot variables
* $mp
* $maxmp
* $mppc
* $hp
* $maxhp
* $hppc
* $cap
* $exp
* $level
* $mlevel
* $posx
* $posy
* $posz
* $soul
* $stamina
* $count
* $screenleft
* $screenright
* $screentop
* $screenbottom
* $name
* $time
* $timems
* $deltatime
* $deltatimems
* $exptnl
* $exph
* $expgained
* $timetnl
* $exptolevel.XX
* $timetolevel.XX
* $monsteraround.XX
* $playersaround.XX
* $sbtime
* $formattime.YY
* $formatnum.YY
* $itemcount.ITEMID
* $itemcount.ITEMNAME
* $poisoned
* $poisondmg
*
*
*
*
- Variables are an essential thing in all programming languages. They help us reuse multiple values more than just once. One special thing about Python is the implicit type-inference. This means, that we do not have to assign a type to a variable by it's declaration as in Java or C. That means that the compiler does the typing by itself.
- The variables are elements used in the script that can contain:
* numbers
* characters, letters
* character strings
* number sets
* character sets
- Variables can be used to store text or data. You can create a variable like this:
- These variables can be used in slash commands. $target Your current target's name $name Your name (minus any titles) $level Your level (security/threat, not combat) $archetype Your archetype (Tanker, Mastermind, etc) $origin Your origin (Science, Magic, etc) $battlecry Your battlecry, which can be modified, along with your backstory, through the options menu.
- Variables are named values in your scripts that can hold value. If you try to access a variable that wasn't defined yet, you will get the value nil. Unlike other languages, Lua isn't strongly typed, and it is instead dynamically typed. This gives you a lot more freedom than strongly typed languages, such as Java, C++ or C. You can assign any value of any type to any variable whether it's defined or not! File:VarAssignment.png
|