Can drink: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang No edit summary |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:name|can_drink}} | {{ | ||
{{#vardefine:return_type|boolean}} | #vardefine:name|can_drink}}{{ | ||
#vardefine:return_type|boolean}}{{ | |||
FunctionPage| | |||
name={{#var:name}}| | name={{#var:name}}| | ||
function_category=Your Character| | function_category=Your Character| |
Revision as of 19:00, 8 March 2010
Function Syntax
boolean can_drink()
This function returns true if the logged-in character is not subject to the dietary restrictions of a Teetotaler or Oxygenarian path. If the character is subject to those restrictions this function returns false.
Code Samples
If the character is able to drink, this code will make them drink 3 bottles of gin.
if(can_drink()) {
drink(3 , $item[bottle of gin]);
}
See Also
Special
When not logged in, this function returns true.