アットウィキロゴ
Wesnoth WML Wiki
掲示板 掲示板 ページ検索 ページ検索 メニュー メニュー

Wesnoth WML Wiki

新ユニット作成

最終更新:

wesnoth-wml

- view
メンバー限定 登録/ログイン
Resources/data/core/units/... 以下にある.cfgファイルを、
Resources/data/multiplayer/scenarios/ にコピーする。
そして、[unit]タグを[units]タグにネストして、ユニットのステータスを書き換えればOK。



#textdomain wesnoth-units

[units]
[unit]
   id=Little Gryphon
   name= _ "リトルグリフォン"
   race=gryphon
   image="units/monsters/gryphon.png"
   ellipse="misc/ellipse"
   {MAGENTA_IS_THE_TEAM_COLOR}
   hitpoints=33
   movement_type=fly
   movement=8
   experience=34
   level=1
   alignment=neutral
   advanceto=Gryphon
   undead_variation=gryphon
   cost=24
   usage=scout
   [defense]
       mountains=40
   [/defense]
   [resistance]
       arcane=90
   [/resistance]
   [attack]
       name=claws
       description=_"claws"
       icon=attacks/claws-animal.png
       type=blade
       range=melee
       damage=8
       number=3
   [/attack]
   [movement_anim]
       [frame]
           begin=0
           end=150
           image="units/dwarves/gryphon-rider-flying-1and3.png"
       [/frame]
       [frame]
           begin=150
           end=300
           image="units/dwarves/gryphon-rider-flying-2.png"
       [/frame]
       [frame]
           begin=300
           end=450
           image="units/dwarves/gryphon-rider-flying-1and3.png"
       [/frame]
       [frame]
           begin=450
           end=600
           image="units/dwarves/gryphon-rider-flying-4.png"
       [/frame]
       [frame]
           begin=600
           end=750
           image="units/dwarves/gryphon-rider-flying-5and7.png"
       [/frame]
       [frame]
           begin=750
           end=900
           image="units/dwarves/gryphon-rider-flying-6.png"
       [/frame]
       [frame]
           begin=900
           end=1050
           image="units/dwarves/gryphon-rider-flying-5and7.png"
       [/frame]
       [frame]
           begin=1050
           end=1200
           image="units/dwarves/gryphon-rider-flying-8.png"
       [/frame]
   [/movement_anim]
   {DEFENSE_ANIM "units/dwarves/gryphon-rider-attack.png" "units/dwarves/gryphon-rider-flying-8.png" {SOUND_LIST:GRYPHON_HIT} }
   [attack_anim]
       [attack_filter]
           name=claws
       [/attack_filter]
       [frame]
           begin=-200
           end=-100
           image="units/dwarves/gryphon-rider-flying-8.png"
       [/frame]
       [if]
           hits=no
           [frame]
               begin=-100
               end=100
               image="units/dwarves/gryphon-rider-attack.png"
               sound={SOUND_LIST:MISS}
           [/frame]
       [/if]
       [else]
           hits=yes
           [frame]
               begin=-100
               end=100
               image="units/dwarves/gryphon-rider-attack.png"
               sound=claws.ogg
           [/frame]
       [/else]
       [frame]
           begin=100
           end=200
           image="units/dwarves/gryphon-rider-flying-8.png"
       [/frame]
   [/attack_anim]
[/unit]
[/units]


攻撃特性

攻撃特性は[unit]タグ内の[attack]タグ内の[specials]タグ内に書く。
{WEAPON_SPECIAL_POISON}
{WEAPON_SPECIAL_DRAIN} 生命吸収
{WEAPON_SPECIAL_PLAGUE} 疫病
{WEAPON_SPECIAL_SLOW} 遅化
{WEAPON_SPECIAL_MARKSMAN} 射撃
{WEAPON_SPECIAL_MAGICAL} 魔法
{WEAPON_SPECIAL_CHARGE} 突撃
{WEAPON_SPECIAL_SWARM} 群れ
{WEAPON_SPECIAL_BERSERK} 狂戦
{WEAPON_SPECIAL_BACKSTAB} 奇襲
{WEAPON_SPECIAL_FIRSTSTRIKE} 先制

攻撃範囲(range)

melee 格闘
ranged 投射

攻撃型(type)

[attack]タグ内で攻撃型を指定する。
[resistance]タグ内で blade=60 のようにして攻撃耐性を変更できる。
(100が0%で、60なら40%、120なら-20%の耐性となる。)
blade 斬撃
impact 打撃
pierce 貫通
fire 火炎
cold 冷気
arcane 神聖

特殊能力

特殊能力は[unit]内の[abilities]タグ内に書く。
{ABILITY_LEADERSHIP_LEVEL_5} 統率。数字はレベルによる
{ABILITY_AMBUSH} 伏兵
{ABILITY_SUBMERGE} 潜水
{ABILITY_CONCEALMENT} 潜伏
{ABILITY_NIGHTSTALK} 隠密
{ABILITY_SKIRMISHER} 散兵
{ABILITY_ILLUMINATES} 照明
{ABILITY_STEADFAST} 装甲
{ABILITY_REGENERATES} 再生
{ABILITY_HEALS} 回復+4
{ABILITY_CURES} 回復+8, 治療
{ABILITY_TELEPORT} 瞬間移動
{ABILITY_FEEDING} 摂食

アライメント

アライメント(alignment)は[unit]内に書く。
lawful 秩序
neutral 中立
chaotic 混沌

移動タイプ

移動タイプ(movement_type)は[unit]内に書く。
armoredfoot 重歩兵など
smallfoot 人間など
largefoot トロル、オーガなど
fly グリフォンなど
orcishfoot オーク、ゴブリンなど
drakefoot ドレークの粉砕者など
drakefly 滑空ドレークなど
lizard トカゲなど
smallfly ヴァンパイアバットなど
mounted 騎兵など
undeadspirit 幽霊など
undeadfoot スケルトンなど
undeadfly スケルトンドラゴンなど
gruefoot グールなど
elusivefoot 剣術士、盗賊など
dwarvishfoot ドワーフなど
woodland エルフなど
woodlandfloat エルフのシルフ
treefolk ウーズなど
float ガレオン船、深淵のテンタクルなど
deepsea 殺人魚、シーサーペントなど
naga ナーガなど
swimmer マーマン、マーメイドなど
scuttlefoot 泥蟲など
mountainfoot 巨大蜘蛛など

その他のパラメータ

id ユニットID
name ユニット名
movement 移動値
hitpoints HP
cost 雇用コスト
level レベルを設定
experience レベルアップまでの経験値
advanceto レベルアップ先
advancefrom レベルアップ元
race 種族
最近更新されたスレッド
ウィキ募集バナー