仙侠小说专有名词随机生成器
随机生成仙侠风格的人名、法号、功法、秘籍、生灵、材料、丹药、法宝、门派、国家、地点、大陆。
在线版本
https://hetu.dev/random-names/
NPM包
安装
npm i random_chinese_fantasy_names
导入
import { getName } from "random_chinese_fantasy_names";
Common js模块:
const { getName } = require("random_chinese_fantasy_names/commonjs");
接口
number是生成数量,必填,其他参数可选,如果省略将进行随机。
/**
* 人名样式
*/
type nameStyleType = "single" | "double" | "combine";
/**
* 稀有度
*/
type rarityType =
| "common"
| "uncommon"
| "rare"
| "epic"
| "legendary"
| "mythic"
| "exotic";
/**
* 人名
*/
export function getName(
number: number,
options?: {
isFemale?: boolean;
style?: nameStyleType;
familyName?: string;
middleCharacter?: string;
}
): string[];
/**
* 法号
*/
export function getDao(
number: number,
options?: {
isFemale?: boolean;
title?: string;
firstCharacter?: string;
}
): {
name: string;
rarity: rarityType;
}[];
/**
* 功法
*/
export function getSkill(
number: number,
options?: {
length?: number;
kind?: string;
prefix?: string;
numfix?: string;
}
): {
name: string;
rarity: rarityType;
}[];
/**
* 秘籍
*/
export function getBook(
number: number,
options?: {
length?: number;
prefix?: string;
mainkind?: string;
postkind?: string;
postfix?: string;
}
): {
name: string;
rarity: rarityType;
}[];
/**
* 生灵
*/
export function getCreature(
number: number,
options?: {
category?: string;
rarity?: string;
}
): {
name: string;
rarity: rarityType;
category: string;
}[];
/**
* 材料
*/
export function getMaterial(
number: number,
options?: {
kind?: string;
rarity?: string;
postfix?: string;
}
): {
name: string;
rarity: rarityType;
}[];
/**
* 法宝
*/
export function getTalisman(
number: number,
options?: {
kind?: string;
rarity?: string;
postfix?: string;
}
): {
name: string;
rarity: rarityType;
}[];
/**
* 丹药
*/
export function getAlchemy(
number: number,
kind?: string
): {
name: string;
rarity: rarityType;
}[];
/**
* 门派
*/
export function getClan(number: number, kind: string): string[];
/**
* 国家
*/
export function getNation(
number: number,
kind?: string
): {
name: string;
rarity: rarityType;
}[];
/**
* 地点
*/
export function getLocation(
number: number,
kind?: string
): {
name: string;
rarity: rarityType;
}[];
/**
* 大陆
*/
export function getZone(
number: number,
kind?: string
): {
name: string;
rarity: rarityType;
}[];
返回数据示例
[
"易尤厚",
"墨岂艺",
"路瑛闵",
"董年昕",
"诸葛之霖",
"夏侯朝闲",
"常崇皓",
"申司翼",
"欧阳佳",
"陈奇璐",
][
({ name: "秘亨", rarity: "普通" },
{ name: "寂善子", rarity: "不常见" },
{ name: "建临", rarity: "普通" },
{ name: "本信", rarity: "普通" },
{ name: "阳莲子", rarity: "不常见" },
{ name: "恭泰", rarity: "普通" },
{ name: "善方", rarity: "普通" },
{ name: "法常子", rarity: "不常见" },
{ name: "立道", rarity: "普通" },
{ name: "荣章道姑", rarity: "不常见" })
][
({ name: "玄冰导引术", rarity: "普通" },
{ name: "守天花雨内功", rarity: "不常见" },
{ name: "照天御剑术", rarity: "普通" },
{ name: "摘星飞渡枪", rarity: "不常见" },
{ name: "戮龙紫霞六阴气", rarity: "稀有" },
{ name: "灵鳌气", rarity: "普通" },
{ name: "千钧灵宝莲华神术", rarity: "稀有" },
{ name: "紫微步", rarity: "普通" },
{ name: "三危金蛇神法", rarity: "不常见" },
{ name: "太元枪", rarity: "普通" })
][
({ name: "《定风棍》", rarity: "普通" },
{ name: "《静禅功》", rarity: "普通" },
{ name: "《十一路大洞虚棍》", rarity: "普通" },
{ name: "《白虹大赤一气擒拿手》", rarity: "稀有" },
{ name: "《无相诛天困仙指》", rarity: "稀有" },
{ name: "《素银太祖遁术》", rarity: "不常见" },
{ name: "《小逍遥轻功》", rarity: "普通" },
{ name: "《离梦三才爪》", rarity: "不常见" },
{ name: "《凤凰神行法》", rarity: "普通" },
{ name: "《分神荡魔凌云御剑术真典》", rarity: "传说" })
][
({ name: "碧野芝", rarity: "不常见", category: "植物" },
{ name: "无上蚯蚓", rarity: "稀有", category: "蠕虫" },
{ name: "合欢野猫", rarity: "传说", category: "野兽" },
{ name: "暗魔鲸", rarity: "不常见", category: "鱼类" },
{ name: "黑玄鳄", rarity: "不常见", category: "爬行动物" },
{ name: "白仙蜥蜴", rarity: "不常见", category: "爬行动物" },
{ name: "伏虎棘", rarity: "稀有", category: "植物" },
{ name: "万花暗虫", rarity: "史诗", category: "昆虫" },
{ name: "无妄草", rarity: "稀有", category: "植物" },
{ name: "黑灵竹", rarity: "不常见", category: "植物" })
][
({ name: "墨魔钻", rarity: "非凡" },
{ name: "普贤古果", rarity: "稀有" },
{ name: "碧宝金", rarity: "非凡" },
{ name: "烟雨玄参", rarity: "稀有" },
{ name: "碧魔玉", rarity: "非凡" },
{ name: "四海神浆", rarity: "稀有" },
{ name: "金霞古丝", rarity: "稀有" },
{ name: "碧古金", rarity: "非凡" },
{ name: "碧宝液", rarity: "非凡" },
{ name: "紫仙岩", rarity: "非凡" })
][
({ name: "百灵茶", rarity: "普通" },
{ name: "百毒酒", rarity: "普通" },
{ name: "抱元酒", rarity: "普通" },
{ name: "守拙丸", rarity: "普通" },
{ name: "两界药", rarity: "普通" },
{ name: "青焰精散", rarity: "稀有" },
{ name: "雷电神茶", rarity: "传说" },
{ name: "游身酒", rarity: "非凡" },
{ name: "御龙散", rarity: "普通" },
{ name: "五气丸", rarity: "非凡" })
][
({ name: "太元真罩", rarity: "奇异" },
{ name: "绝魔石锁", rarity: "史诗" },
{ name: "化影印", rarity: "稀有" },
{ name: "白水晶针(仿制品)", rarity: "非凡" },
{ name: "封仙鼓", rarity: "稀有" },
{ name: "潇湘矛", rarity: "稀有" },
{ name: "护神金戟", rarity: "史诗" },
{ name: "灰竹钟(赝品)", rarity: "非凡" },
{ name: "乌骨链", rarity: "非凡" },
{ name: "灵丹弓(赝品)", rarity: "稀有" })
][
("灭魔轩",
"绝神客栈",
"青焰门",
"雷电观",
"化影苑",
"燕子斋",
"混元山庄",
"混元宫",
"乘风寨",
"戮龙洞")
][
({ name: "滨国", rarity: "普通" },
{ name: "越国", rarity: "普通" },
{ name: "永国", rarity: "普通" },
{ name: "岚国", rarity: "普通" },
{ name: "玲珑部落", rarity: "非凡" },
{ name: "满国", rarity: "普通" },
{ name: "虎首联盟", rarity: "稀有" },
{ name: "抚国", rarity: "普通" },
{ name: "万刃国", rarity: "非凡" },
{ name: "丽国", rarity: "普通" })
][
({ name: "诛妖水", rarity: "非凡" },
{ name: "并阴市", rarity: "普通" },
{ name: "灵洞", rarity: "普通" },
{ name: "混天堡", rarity: "非凡" },
{ name: "梁坞", rarity: "普通" },
{ name: "永阳林", rarity: "普通" },
{ name: "离别观", rarity: "非凡" },
{ name: "惠湖", rarity: "普通" },
{ name: "万里峰", rarity: "uncommon" },
{ name: "狐岐观", rarity: "rare" }
][
({ name: "浮玉大陆", rarity: "rare" },
{ name: "单洲", rarity: "common" },
{ name: "琼洲", rarity: "common" },
{ name: "安洲", rarity: "common" },
{ name: "容洲", rarity: "common" },
{ name: "滨洲", rarity: "common" },
{ name: "谯明界", rarity: "rare" },
{ name: "德洲", rarity: "common" },
{ name: "无踪洋", rarity: "uncommon" },
{ name: "固洲", rarity: "common" })
];