User:DDSuper

From Valve Developer Community
Jump to navigation Jump to search

Примеры предмет

Направленная на цель

Применяемая на союзного крипа. Летит снаряд в крипа и убивает, вы получаете неуязвимость к урона

"item_shard_immortal"
	{
		"BaseClass"             		"item_datadriven"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_FRIENDLY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_CREEP"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"ItemShareability" "ITEM_NOT_SHAREABLE"	
		"AbilityTextureName"			"shardimmortality"
		"Model"							"models/props_gameplay/red_box.vmdl" 
		"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
		"AbilityCooldown"	"80"
		"AbilityCastRange"	"880"
		"ItemDisassembleRule"			"DOTA_ITEM_DISASSEMBLE_ALWAYS"
		"ItemQuality"	"epic"
		"ItemCost"		"6670"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"			"FIELD_FLOAT"
				"duration"		"14"
			}
			"02"
			{
				"var_type"	"FIELD_INTEGER"
				"projectile_speed"	"1000"
			}
		}
		"OnSpellStart"
		{
			"TrackingProjectile"
			{
				"Target"           	"TARGET"
				"EffectName"		"particles/units/heroes/hero_abaddon/abaddon_death_coil.vpcf"
				"Dodgeable"			"1"
				"MoveSpeed"        	"%projectile_speed"
				"SourceAttachment"	"DOTA_PROJECTILE_ATTACHMENT_ATTACK_1"
			}
            "SpendCharge"
            {}
		}
		"OnProjectileHitUnit"
		{
			"DeleteOnHit"	"1"
			"Damage"
			{
				"Target"		"TARGET"
				"Type"			"DAMAGE_TYPE_MAGICAL"
				"Damage"		"300000"
			}
			"FireSound"
			{
				"EffectName" "DOTA_Item.BlackKingBar.Activate"
				"Target" "CASTER"
			}
			"ApplyModifier"
			{
				"ModifierName"	"modifier_shard_active"
				"Target" 		"CASTER"
			}
		}
		"Modifiers"
		{
			"modifier_shard_active"
			{
				"Passive"			"0"
				"IsBuff"	"1"
				"Duration"	"%duration"
				"TextureName"	"shardactivated"
				
				"EffectName"            	"particles/items_fx/black_king_bar_avatar.vpcf"
				"EffectAttachType"      	"follow_origin"
				"Target"	"CASTER"
				
				"States"
				{
					"MODIFIER_STATE_ATTACK_IMMUNE"		"MODIFIER_STATE_VALUE_ENABLED"
				}
				"Properties"
				{
					"MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PHYSICAL" "1"
					"MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_MAGICAL" "1"
					"MODIFIER_PROPERTY_ABSOLUTE_NO_DAMAGE_PURE" "1"
				}
			}
		}
	}

Создаёт снаряд который, летит со скоростью 1000 и при попадании враг замерзает и не может двигаться. Пассивная Аура: Замедляет Скорость Передвижение на 15% и на 10% Скорости атаки

"item_blade_permafrost"
	{
		"BaseClass"             		"item_datadriven"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_AURA"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"ItemShareability" "ITEM_NOT_SHAREABLE"

		"AbilityTextureName"			"bladepermafrost"
		"Model"							"models/props_gameplay/red_box.vmdl" 
		"Effect"						"particles/generic_gameplay/dropped_item.vpcf"
		"AbilityCooldown"	"80"
		"AbilityCastRange"	"880"
		"AbilityDamage"	""

		"MaxUpgradeLevel"	"2"
		"ItemBaseLevel"	"1"
		"UpgradeRecipe"	"item_recipe_blade_permafrost_upgraded"

		"ItemDisassembleRule"			"DOTA_ITEM_DISASSEMBLE_ALWAYS"
		"ItemQuality"	"epic"
		"ItemCost"		"3300"
		"ItemDeclarations"				"DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
		"AbilitySpecial"
		{
			"01"
			{
				"var_type"			"FIELD_INTEGER"
				"projectile_speed"			"900"
			}
			"02"
			{
				"var_type"			"FIELD_FLOAT"
				"duration"		"8.0"
			}
			"03"
			{
				"var_type"	"FIELD_INTEGER"
				"aura_radius" "550"
			}
			"04"
			{
				"var_type"	"FIELD_INTEGER"
				"bonus_damage"	"120 220"
			}
			"05"
			{
				"var_type"	"FIELD_INTEGER"
				"bonus_strong"	"25 43"
			}
			"06"
			{
				"var_type"	"FIELD_INTEGER"
				"damage"	"200 450"
			}
		}
		"OnSpellStart"
		{
			"TrackingProjectile"
			{
				"Target"           	"TARGET"
				"EffectName"		"particles/units/heroes/hero_lich/lich_chain_frost.vpcf"
				"Dodgeable"			"1"
				"MoveSpeed"        	"%projectile_speed"
				"SourceAttachment"	"DOTA_PROJECTILE_ATTACHMENT_ATTACK_1"
			}
		}
		"OnProjectileHitUnit"
		{
			"DeleteOnHit"	"1"
			
			"ApplyModifier"
			{
				"ModifierName"	"modifier_frozen"
				"Target" 		"TARGET"
			}
			"FireSound"
			{
				"Target"			"TARGET"
				"EffectName"		"Hero_Crystal.frostbite"
			}
			"Damage"
			{
				"Target"		"TARGET"
				"Type"			"DAMAGE_TYPE_MAGICAL"
				"Damage"		"%damage"
			}
		}
		"Modifiers"
		{
			"modifier_frozen"
			{
				"Duration"	"%duration"
				"IsDebuff"	"1"
				"TextureName"	"bladepermafrostactivated"
				"ThinkInterval"  "1.0"
				"OnIntervalThink"
				{
					"Damage"
					{
						"Target"		"TARGET"
						"Type"			"DAMAGE_TYPE_MAGICAL"
						"Damage"		"50"
					}
				}
				"EffectName"		"particles/units/heroes/hero_crystalmaiden/maiden_frostbite_buff.vpcf"
				"EffectAttachType"	"follow_origin"
				"Target"	"TARGET"

				"States"
				{
					"MODIFIER_STATE_FROZEN"		"MODIFIER_STATE_VALUE_ENABLED"
					"MODIFIER_STATE_ROOTED"		"MODIFIER_STATE_VALUE_ENABLED"
					"MODIFIER_STATE_DISARMED"	"MODIFIER_STATE_VALUE_ENABLED"
					"MODIFIER_STATE_STUNNED"	"MODIFIER_STATE_VALUE_ENABLED"
				}
			}
			"aura_slow"
			{
				"IsHidden"				"1"
				"Passive"				"1"				
				"Aura"					"aura_modifier"
				"Aura_Radius"			"%aura_radius"
				"Aura_Teams"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
				"Aura_Types"			"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_CREEP | DOTA_UNIT_TARGET_MECHANICAL"	
			}
			"aura_modifier"
			{
				"IsHidden"	"0"
				"IsDebuff"	"1"
				"Properties"
				{
					"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "-10"
				    "MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE" "-15" 
				}
			}
			"modifier_damage_and_other"
			{
				"Passive"			"1"
				"IsHidden"			"1"
				"IsDebuff"			"0"
			
				"Properties"
				{
					"MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE" "%bonus_damage"
				    "MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_strong" 
				}
			}
		}
	}