称号模组制作

本页面所适用的版本可能已经过时,最后更新于3.2
Pokewiz讨论 | 贡献2020年5月24日 (日) 02:45的版本 (文本替换 - 替换“Category:Modding”为“Category:模组制作”)


Nicknames are epithets defined in files in the common/nicknames folder.

Any nickname defined in one of these files can be added using the give_nickname command. They can also be granted at random based on conditions defined on the nicknames.

Definition

Name Type Description Example
allow Conditions Optional. The conditions a character must fulfill to be eligible to receive the nickname randomly. If missing, nickname can only be obtained with the give_nickname command.
allow = {
    age = 16
}
chance MTTH Optional. The odds of an eligible character receiving the given nickname (presumably in percent per year). If missing, nickname can only be obtained with the give_nickname command.
chance = {
    factor = 5

    modifier = {
        factor = 2
        stewardship >= 8
    }
}

Localisation

Nicknames take their localization from a key with the same name as the nickname. For example, the nickname nick_the_swift would look for the localization key also called nick_the_swift. Nicknames typically begin with nick_, but this is not enforced. For nicknames which use localization commands, those commands are only evaluated when the nickname is handed out - a nickname will not change after it's been obtained.