Current mcd: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang Conform to template |
imported>Bale mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:name|current_mcd}} | {{ | ||
{{#vardefine:return_type|int}} | #vardefine:name|current_mcd}}{{ | ||
#vardefine:return_type|int}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 31: | Line 31: | ||
special=When not logged in, this function returns 0. | special=When not logged in, this function returns 0. | ||
}} | }} | ||
[[Category:Your Character]] |
Latest revision as of 21:37, 21 May 2010
Function Syntax
int current_mcd()
Returns the current level of the logged-in character's mind-control device (Detuned Radio, Super-Secret Canadian Mind-Control Device, or Annoy-o-Tron 5000) as an int. Possible values are 0-11 for mysticality signs and 0-10 for others.
Code Samples
This example function ensures that the MCD is set to 5 before attacking the Bonerdagon.
boolean fight_bonerdagon() {
if(current_mcd() != 5 || change_mcd(5)) {
adventure(1 , $location[Haert of the Cyrpt]);
}
}
See Also
Special
When not logged in, this function returns 0.