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

Wesnoth WML Wiki

新ユニットの作成法

最終更新:

mute

- view
メンバー限定 登録/ログイン
#textdomain
wesnoth-multiplayer

[multiplayer]




[variables]
	[unit_moto]
		alignment="chaotic"
		alpha="256"
		attacks_left="1"
		cost="38"
		description="Shadow-1876844130"
		die_sound="wail-long.wav"
		experience="0"
		facing="ne"
		flag_rgb="magenta"
		flies="true"
		flying="yes"
		gender="male"
		gender_id="male"
		goto_x="-999"
		goto_y="-999"
		hitpoints="15"
		id="Fog Clearer"
		image="units/undead/shadow-s-2.png"
#textdomain
wesnoth-units
		language_name=_ "赤いシャドウ"
		level="2"
		max_attacks="1"
		max_experience="1000000"
		max_hitpoints="9"
		max_moves="4"
		movement="4"
		movement_type="undeadspirit"
		moves="3"
		race="undead"
		random_gender="no"
		resting="no"
		side="1"
		type="Fog Clearer"
		unrenamable="no"
		upkeep="full"
		usage="scout"
		value="38"
		x="8"
		y="5"
		zoc="19"
		[movement_costs]
			canyon="1"
			castle="1"
			cave="1"
			cavewall="99"
			deep_water="2"
			forest="1"
			fungus="1"
			grassland="1"
			hills="1"
			mountains="1"
			sand="1"
			shallow_water="2"
			swamp_water="1"
			tundra="1"
			village="1"
		[/movement_costs]
		[defense]
			canyon="30"
			castle="30"
			cave="30"
			cavewall="30"
			deep_water="30"
			forest="30"
			fungus="30"
			grassland="30"
			hills="30"
			mountains="30"
			sand="30"
			shallow_water="30"
			swamp_water="30"
			tundra="30"
			village="30"
		[/defense]
		[resistance]
			arcane="80"
			blade="30"
			cold="50"
			fire="50"
			impact="30"
			pierce="40"
		[/resistance]
		[abilities]
			[hides]
				affect_self="yes"
#textdomain
wesnoth
				description=_ "Nightstalk:
The unit becomes invisible during night.

Enemy units cannot see this unit at night, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
				description_inactive=_ "Nightstalk:
The unit becomes invisible during night.

Enemy units cannot see this unit at night, except if they have units next to it. Any enemy unit that first discovers this unit immediately loses all its remaining movement."
				id="nightstalk"
				name=_ "nightstalk"
				name_inactive=_ "nightstalk"
				[filter_self]
					[filter_location]
						time_of_day="chaotic"
					[/filter_location]
				[/filter_self]
			[/hides]
			[skirmisher]
				affect_self="yes"
				description=_ "Skirmisher:
This unit is skilled in moving past enemies quickly, and ignores all enemy Zones of Control."
				id="skirmisher"
				name=_ "skirmisher"
			[/skirmisher]

		[/abilities]
		
		
		[variables]
		[/variables]
		[status]
			hides="yes"
			not_living="yes"
		[/status]
		[attack]
			damage="10"
#textdomain
wesnoth-units
			description=_ "claws"
			icon="attacks/claws-undead.png"
			name="claws"
			number="3"
			range="melee"
			type="blade"
			[specials]
{WEAPON_SPECIAL_DRAIN}
			[/specials]
		[/attack]
		
		[modifications]
			[trait]
				availability="musthave"
				description=_ "Immune to drain, poison and plague"
				female_name=_ "female^undead"
				id="undead"
				male_name=_ "undead"
				name=_ "undead"
				[effect]
					add="not_living"
					apply_to="status"
				[/effect]
			[/trait]
			[object]
				
				
				
									[effect]
					apply_to="new_animation"
		[attack_anim]
			alpha="0.8~0.7:350,0.7~0.0:200,0.0~0.8:225"
			direction="s,se,sw"
			offset="0.0~1.0:550,0.0:225"
			start_time="-500"
			[attack_filter]
				name="claws"
			[/attack_filter]
			[frame]
				duration="25"
				image="units/undead/shadow-s-2.png"
			[/frame]
			[frame]
				duration="75"
				image="units/undead/shadow-s-attack-1.png"
			[/frame]
			[frame]
				duration="75"
				image="units/undead/shadow-s-attack-2.png"
			[/frame]
			[frame]
				duration="50"
				image="units/undead/shadow-s-attack-3.png"
				sound="wail-sml.wav"
			[/frame]
			[if]
				hits="no"
				[frame]
					duration="50"
					image="units/undead/shadow-s-attack-4.png"
					sound="    human-die-1.ogg,human-die-2.ogg,human-die-3.ogg"
				[/frame]
			[/if]
			[else]
				hits="yes"
				[frame]
					duration="50"
					image="units/undead/shadow-s-attack-4.png"
					sound="dwarf-laugh.wav"
				[/frame]
			[/else]
			[frame]
				duration="75"
				image="units/undead/shadow-s-attack-5.png"
			[/frame]
			[frame]
				duration="200"
				image="units/undead/shadow-s-attack-6.png"
			[/frame]
			[frame]
				duration="100"
				image="units/undead/shadow-s-attack-2.png"
			[/frame]
			[frame]
				duration="100"
				image="units/undead/shadow-s-attack-1.png"
			[/frame]
			[frame]
				duration="25"
				image="units/undead/shadow-s-2.png"
			[/frame]
		[/attack_anim]
		[attack_anim]
			alpha="0.8~0.7:350,0.7~0.0:200,0.0~0.8:225"
			direction="n,ne,nw"
			offset="0.0~1.0:550,0.0:225"
			start_time="-500"
			[attack_filter]
				name="claws"
			[/attack_filter]
			[frame]
				duration="25"
				image="units/undead/shadow-n-2.png"
			[/frame]
			[frame]
				duration="75"
				image="units/undead/shadow-n-attack-1.png"
			[/frame]
			[frame]
				duration="75"
				image="units/undead/shadow-n-attack-2.png"
			[/frame]
			[frame]
				duration="50"
				image="units/undead/shadow-n-attack-3.png"
				sound="wail-sml.wav"
			[/frame]
			[if]
				hits="no"
				[frame]
					duration="50"
					image="units/undead/shadow-n-attack-4.png"
					sound="    human-female-die-1.ogg,human-female-die-2.ogg,human-female-die-3.ogg"
				[/frame]
			[/if]
			[else]
				hits="yes"
				[frame]
					duration="50"
					image="units/undead/shadow-n-attack-4.png"
					sound="dwarf-laugh.wav"
				[/frame]
			[/else]
			[frame]
				duration="75"
				image="units/undead/shadow-n-attack-5.png"
			[/frame]
			[frame]
				duration="200"
				image="units/undead/shadow-n-attack-6.png"
			[/frame]
			[frame]
				duration="100"
				image="units/undead/shadow-n-attack-2.png"
			[/frame]
			[frame]
				duration="100"
				image="units/undead/shadow-n-attack-1.png"
			[/frame]
			[frame]
				duration="25"
				image="units/undead/shadow-n-2.png"
			[/frame]
		[/attack_anim]
		[defend]
			direction="s,se,sw"
			start_time="-126"
			[if]
				alpha="0.8~0.5:126,0.5~0.8:126"
				hits="hit,kill"
				offset="0.0~-0.05:126,-0.05~0.0:126"
				[frame]
					duration="1"
					image="units/undead/shadow-s-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/shadow-s-attack-1.png"
				[/frame]
				[frame]
					duration="150"
					image="units/undead/shadow-s-attack-1.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="1"
					image="units/undead/shadow-s-2.png"
				[/frame]
			[/if]
			[else]
				alpha="0.8~0.25:126,0.25~0.8:126"
				hits="miss"
				offset="0.0~-0.1:126,-0.1~0.0:126"
				[frame]
					duration="1"
					image="units/undead/shadow-s-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/shadow-s-attack-1.png"
				[/frame]
				[frame]
					duration="150"
					image="units/undead/shadow-s-attack-1.png"
				[/frame]
				[frame]
					duration="1"
					image="units/undead/shadow-s-2.png"
				[/frame]
			[/else]
		[/defend]
		[defend]
			direction="n,ne,nw"
			start_time="-126"
			[if]
				alpha="0.8~0.5:126,0.5~0.8:126"
				hits="hit,kill"
				offset="0.0~-0.05:126,-0.05~0.0:126"
				[frame]
					duration="1"
					image="units/undead/shadow-n-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/shadow-n-attack-1.png"
				[/frame]
				[frame]
					duration="150"
					image="units/undead/shadow-n-attack-1.png"
					sound="wail-sml.wav"
				[/frame]
				[frame]
					duration="1"
					image="units/undead/shadow-n-2.png"
				[/frame]
			[/if]
			[else]
				alpha="0.8~0.25:126,0.25~0.8:126"
				hits="miss"
				offset="0.0~-0.1:126,-0.1~0.0:126"
				[frame]
					duration="1"
					image="units/undead/shadow-n-2.png"
				[/frame]
				[frame]
					duration="100"
					image="units/undead/shadow-n-attack-1.png"
				[/frame]
				[frame]
					duration="150"
					image="units/undead/shadow-n-attack-1.png"
				[/frame]
				[frame]
					duration="1"
					image="units/undead/shadow-n-2.png"
				[/frame]
			[/else]
		[/defend]
			[/effect]
				
				
			[/object]
		[/modifications]
	[/unit_moto]
[/variables]








   id=multiplayer_semap
   name= _ "にゅーゆにっとてすと"
   description= _ "にゅーゆにっとてすと"
   map_data="{multiplayer/maps/semap.map}"

   {DEFAULT_SCHEDULE}
   {DEFAULT_MUSIC_PLAYLIST}

   [side]
       [ai]
           villages_per_scout=8
       [/ai]
       side=1
       canrecruit=yes
       controller=human
       team_name=south
       user_team_name= _ "teamname^South"
       fog=yes
   [/side]
   [side]
       [ai]
           villages_per_scout=8
       [/ai]
       side=2
       canrecruit=yes
       controller=human
       team_name=north
       user_team_name= _ "teamname^North"
       fog=yes
   [/side]



    [event]
       name=start
       [set_menu_item]
           id=test1
           description="Summon Shadow"
           [show_if]
               [not]
                   [have_unit]
                       x,y=$x1,$y1
                   [/have_unit]
               [/not]
           [/show_if]
           [filter_location]
           [/filter_location]
           [command]
               {VARIABLE unit_moto.x $x1}
			{VARIABLE unit_moto.y $y1}
               		[unstore_unit]
           find_vacant=yes
           variable=unit_moto
       [/unstore_unit]
               [sound]
                   name=magic-holy-miss-3.ogg
               [/sound]
           [/command]
       [/set_menu_item]
   [/event]


[/multiplayer]
最近更新されたスレッド
ウィキ募集バナー