Can eat: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang No edit summary |
imported>Bale mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:name|can_eat}} | {{ | ||
{{#vardefine:return_type|boolean}} | #vardefine:name|can_eat}}{{ | ||
#vardefine:return_type|boolean}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 29: | Line 29: | ||
special=When not logged in, this function returns true. | special=When not logged in, this function returns true. | ||
}} | }} | ||
[[Category:Your Character]] |
Latest revision as of 21:38, 21 May 2010
Function Syntax
boolean can_eat()
This function returns true if the logged-in character is not subject to the dietary restrictions of a Boozetafarian or Oxygenarian path. If the character is subject to those restrictions this function returns false.
Code Samples
If the character is able to eat, this example will make them eat 3 hot hi meins.
if(can_eat()) {
eat(3 , $item[hot hi mein]);
}
See Also
Special
When not logged in, this function returns true.