Meshal:随机生物
出自Meshal Lite
第182行: | 第182行: | ||
}}|{{get|天赋能力数量}}}}}} | }}|{{get|天赋能力数量}}}}}} | ||
|{{#arraydefine: abilitygx|{{get|天赋能力}}|、}}}} | |{{#arraydefine: abilitygx|{{get|天赋能力}}|、}}}} | ||
− | |||
− | |||
<!--输出能力--> | <!--输出能力--> | ||
第192行: | 第190行: | ||
{{#vardefine:~天赋能力|{{#arrayprint: abilitygx|、|@|{{va|@}}}}}} | {{#vardefine:~天赋能力|{{#arrayprint: abilitygx|、|@|{{va|@}}}}}} | ||
− | <!-- | + | <!--物品随机器--> |
{{#ifeq: {{get|天生武器}}| | {{#ifeq: {{get|天生武器}}| | ||
− | |{{# | + | |{{#arrayunion: naturalweapon|libnaturalweapon}} |
− | {{#arrayslice: | + | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: naturalweapon|naturalweapon|libmagicalitem}}|}} |
+ | {{#arraydiff: naturalweapon|naturalweapon|libuniqueitem}} | ||
+ | {{#arraysort: naturalweapon|random}} | ||
+ | {{#arrayslice: naturalweaponx|naturalweapon|0|{{#random: 1 | ||
|0|1|1|1|1|1|1|1|2|2|3 | |0|1|1|1|1|1|1|1|2|2|3 | ||
}}}} | }}}} | ||
|{{#arraydefine: naturalweapon|{{get|天生武器}}|、}}}} | |{{#arraydefine: naturalweapon|{{get|天生武器}}|、}}}} | ||
− | {{# | + | |
− | |1|1|1|1|2|2|3 | + | {{#ifeq: {{get|武器}}| |
− | }}}}}} | + | |{{#switch: {{get|重型武器}} |
+ | |0={{#arrayunion: weapon|liblightweapon}} | ||
+ | |1={{#arrayunion: weapon|libheavyweapon}} | ||
+ | |#default={{#arrayunion: weapon|liblightweapon|libheavyweapon}} | ||
+ | }} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: weapon|weapon|libmagicalitem}}|}} | ||
+ | {{#arraydiff: weapon|weapon|libuniqueitem}} | ||
+ | {{#arraysort: weapon|random}} | ||
+ | {{#arrayslice: weaponx|weapon|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1|1|1|1|1|1|2|2|2|2|2|3|4|5|6 | ||
+ | }}}} | ||
+ | |{{#arraydefine: weapon|{{get|武器}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|头盔}}| | ||
+ | |{{#arrayunion: helmet|libhelmet}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: helmet|helmet|libmagicalitem}}|}} | ||
+ | {{#arraydiff: helmet|helmet|libuniqueitem}} | ||
+ | {{#arraysort: helmet|random}} | ||
+ | {{#arrayslice: helmetx|helmet|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1|1|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: helmet|{{get|头盔}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|护甲}}| | ||
+ | |{{#arrayunion: armor|libarmor}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: armor|armor|libmagicalitem}}|}} | ||
+ | {{#arraydiff: armor|armor|libuniqueitem}} | ||
+ | {{#arraysort: armor|random}} | ||
+ | {{#arrayslice: armorx|armor|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1|1|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: armor|{{get|护甲}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|鞋靴}}| | ||
+ | |{{#arrayunion: boots|libboots}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: boots|boots|libmagicalitem}}|}} | ||
+ | {{#arraydiff: boots|boots|libuniqueitem}} | ||
+ | {{#arraysort: boots|random}} | ||
+ | {{#arrayslice: bootsx|boots|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1|1|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: boots|{{get|鞋靴}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|首饰}}| | ||
+ | |{{#arrayunion: jewelry|libjewelry}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: jewelry|jewelry|libmagicalitem}}|}} | ||
+ | {{#arraydiff: jewelry|jewelry|libuniqueitem}} | ||
+ | {{#arraysort: jewelry|random}} | ||
+ | {{#arrayslice: jewelryx|jewelry|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: jewelry|{{get|首饰}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|挂件}}| | ||
+ | |{{#arrayunion: pendant|libpendant}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: pendant|pendant|libmagicalitem}}|}} | ||
+ | {{#arraydiff: pendant|pendant|libuniqueitem}} | ||
+ | {{#arraysort: pendant|random}} | ||
+ | {{#arrayslice: pendantx|pendant|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: pendant|{{get|挂件}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|配件}}| | ||
+ | |{{#arrayunion: attachment|libattachment}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: attachment|attachment|libmagicalitem}}|}} | ||
+ | {{#arraydiff: attachment|attachment|libuniqueitem}} | ||
+ | {{#arraysort: attachment|random}} | ||
+ | {{#arrayslice: attachmentx|attachment|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: attachment|{{get|配件}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|服装}}| | ||
+ | |{{#arrayunion: costume|libcostume}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: costume|costume|libmagicalitem}}|}} | ||
+ | {{#arraydiff: costume|costume|libuniqueitem}} | ||
+ | {{#arraysort: costume|random}} | ||
+ | {{#arrayslice: costumex|costume|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: costume|{{get|服装}}|、}}}} | ||
+ | |||
+ | {{#ifeq: {{get|妆饰}}| | ||
+ | |{{#arrayunion: adornment|libadornment}} | ||
+ | {{#ifeq:{{get|魔法物品}}|n|{{#arraydiff: adornment|adornment|libmagicalitem}}|}} | ||
+ | {{#arraydiff: adornment|adornment|libuniqueitem}} | ||
+ | {{#arraysort: adornment|random}} | ||
+ | {{#arrayslice: adornmentx|adornment|0|{{#random: 1 | ||
+ | |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|1|1|1 | ||
+ | }}}} | ||
+ | |{{#arraydefine: adornment|{{get|妆饰}}|、}}}} | ||
+ | |||
<!--变量生成结束--> | <!--变量生成结束--> |