Have skill: Difference between revisions
Jump to navigation
Jump to search
imported>Grotfang mNo edit summary |
imported>Bale mNo edit summary |
||
Line 6: | Line 6: | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 32: | Line 31: | ||
special=Always returns false when no character is logged in. | special=Always returns false when no character is logged in. | ||
}} | }} | ||
[[Category:Skills and Effects]] |
Revision as of 22:13, 21 May 2010
Function Syntax
boolean have_skill(skill check )
- check is the skill to check for
Returns true if your character currently has the skill (permanent as applicable or bought in-run) or false otherwise.
Code Sample
The following prints a friendly reminder to grab some lucre if you don't have Olfaction.
if (! have_skill($skill[Transcendent Olfaction])
print("Don't forget to grab a lucre today; you want that sniffytome!" , "red");
CLI Equivalent
The CLI command "skills" is similar.
Special
Always returns false when no character is logged in.