Difference between revisions of "Can interact"
Jump to navigation
Jump to search
imported>Metraxis m (Spelling Error) |
imported>Efilnikufecin |
||
Line 12: | Line 12: | ||
} | } | ||
</code> | </code> | ||
+ | [[Category:Your Character | Can interact()]] | ||
+ | [[Category:Ash Functions |Can interact()]] |
Revision as of 13:06, 26 June 2007
This function returns true if the logged-in character is subject to neither the Hardcore or Ronin restrictions on inter-player interactions. If the character has not spent the requisite turns and/or has not freed the King (for Hardcore characters), the function returns false.
An example:
if(can_interact()) {
buy(3,$item[hot hi mein]);
} else {
adventure(10,$location[Knob Goblin Kitchens]);
}