In hardcore: 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|in_hardcore}} | {{ | ||
{{#vardefine:return_type|boolean}} | #vardefine:name|in_hardcore}}{{ | ||
#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 false. | special=When not logged in, this function returns false. | ||
}} | }} | ||
[[Category:Your Character]] |
Latest revision as of 21:39, 21 May 2010
Function Syntax
boolean in_hardcore()
This function returns true if the logged-in character is currently subject to Hardcore restrictions. If not subject to such restrictions this function returns false.
Code Samples
The following example attempts to pull items from storage if the character is in Ronin.
if(!can_interact() && !in_hardcore() && storage_amount($item[not-a-pipe]) > 0) {
take_storage(1 , $item[not-a-pipe]);
}
See Also
Special
When not logged in, this function returns false.