skill 
Vars | |
| blurb | String, required, Some flavor blurb relating to the skill |
|---|---|
| earned_by | String, optional, how a user can be expected to earn this skill |
| grants_you | String, optional, what this skill generally does to improve the user's abilities |
| higher_levels_grant_you | String, optional, what this skill does to improve the user's abilities at higher levels |
| level_down_messages | List associating different messages that appear on level up with different levels |
| level_up_messages | List associating different messages that appear on level up with different levels |
| modifiers | Dictionary of modifier type - list of modifiers (indexed by level). |
| name | String, required, the name of the skill |
| skill_flags | Flags relating to this skill |
| skill_item_path | Typepath of skill item reward that will appear when a user finishes leveling up a skill |
| title | String, required, the title of the skill, e.g. "Surgeon" or "Miner" |
Procs | |
| get_skill_modifier | Getter for some modifier at a certain level |
| level_gained | level_gained: Gives skill levelup messages to the user |
| level_lost | level_lost: See level_gained, same idea but fires on skill level-down |
| try_skill_reward | try_skill_reward: Checks to see if a user is eligable for a tangible reward for reaching a certain skill level |
Var Details
blurb 
String, required, Some flavor blurb relating to the skill
earned_by 
String, optional, how a user can be expected to earn this skill
grants_you 
String, optional, what this skill generally does to improve the user's abilities
higher_levels_grant_you 
String, optional, what this skill does to improve the user's abilities at higher levels
level_down_messages 
List associating different messages that appear on level up with different levels
level_up_messages 
List associating different messages that appear on level up with different levels
modifiers 
Dictionary of modifier type - list of modifiers (indexed by level).
name 
String, required, the name of the skill
skill_flags 
Flags relating to this skill
skill_item_path 
Typepath of skill item reward that will appear when a user finishes leveling up a skill
title 
String, required, the title of the skill, e.g. "Surgeon" or "Miner"
Proc Details
get_skill_modifier
Getter for some modifier at a certain level
level_gained
level_gained: Gives skill levelup messages to the user
Only fires if the xp gain isn't silent, so only really useful for messages. Arguments:
- mind - The mind that you'll want to send messages
- new_level - The newly gained level. Can check the actual level to give different messages at different levels, see defines in skills.dm
- old_level - Similar to the above, but the level you had before levelling up.
- silent - Silences the announcement if TRUE
level_lost
level_lost: See level_gained, same idea but fires on skill level-down
try_skill_reward
try_skill_reward: Checks to see if a user is eligable for a tangible reward for reaching a certain skill level
Currently gives the user a special cloak when they reach a legendary level at any given skill Arguments:
- mind - The mind that you'll want to send messages and rewards to
- new_level - The current level of the user. Used to check if it meets the requirements for a reward