In casual: Difference between revisions
Jump to navigation
Jump to search
Create page, used in_hardcore() as a template |
(No difference)
|
Revision as of 18:41, 23 June 2022
Function Syntax
boolean in_casual()
This function returns true if the logged-in character is currently in a Casual ascension. In any other path (including Unrestricted) this function returns false.
Code Samples
The following example attempts to buy items from the mall if the character is in a Casual ascension
if(in_casual() && available_amount($item[smut orc keepsake box]) < 1) {
buy(1 , $item[smut orc keepsake box]);
}See Also
Special
When not logged in, this function returns false.