CustomGames.ru - Dota 2 пользовательские игры

Работающую кастомку не запускает воркшоп

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Веджитто

  • 12
  • Мощь: 0
Пишет, что у рецепта повторяется ид и он не может отслеживать его статы. если запускать через dota_launch_customgame всё работает. Если эот рецепт убрать, то тоже мое про другой рецепт пишет. Вот код рецепта
Спойлер
Код
"item_recipe_daed_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "269"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_daed_datadriven"
"ItemRequirements"
{
"01" "item_greater_crit;item_greater_crit"
}
}
[свернуть]
Вот код всех кастомных предметов
Спойлер
Код
"DOTAAbilities"
{
"item_recipe_daed_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "269"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_daed_datadriven"
"ItemRequirements"
{
"01" "item_greater_crit;item_greater_crit"
}
}
"item_daed_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
    "BaseClass" "item_datadriven"
"ID" "1141" // unique ID number for this item.  Do not change this once established or it will invalidate collected stats.
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
    "Model" "models/props_gameplay/red_box.vmdl"
    "Effect" "particles/generic_gameplay/dropped_item.vpcf"
    "AbilityTextureName" "item_greater_crit"


// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "10640"
"ItemShopTags" "damage;crit"
"ItemQuality" "epic"
"ItemAliases" "daedalus"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

// Precache
//-------------------------------------------------------------------------------------------------------------
"precache"
{
"soundfile" "soundevents/game_sounds_heroes/game_sounds_phantom_assassin.vsndevts"
"particle" "particles/units/heroes/hero_phantom_assassin/phantom_assassin_crit_impact.vpcf"
}
// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "125"
}
"02"
{
"var_type" "FIELD_INTEGER"
"crit_chance" "45"
}
"03"
{
"var_type" "FIELD_INTEGER"
"crit_bonus" "400"
}
}
"Modifiers"
{
"modifier_coup_de_grace_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Properties"
{
"MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE" "%bonus_damage"
}
"OnAttackStart"
{
"RemoveModifier"
{
"ModifierName" "modifier_coup_de_grace_crit_datadriven"
"Target" "CASTER"
}

"Random"
{
"Chance" "%crit_chance"
"PseudoRandom" "DOTA_PSEUDO_RANDOM_PHANTOMASSASSIN_CRIT"

"OnSuccess"
{
"ApplyModifier"
{
"ModifierName" "modifier_coup_de_grace_crit_datadriven"
"Target" "CASTER"
}
}
}
}
}

"modifier_coup_de_grace_crit_datadriven"
{
"IsHidden" "1"

"Properties"
{
"MODIFIER_PROPERTY_PREATTACK_CRITICALSTRIKE" "%crit_bonus"
}

"OnAttackLanded"
{
"RemoveModifier"
{
"ModifierName" "modifier_coup_de_grace_crit_datadriven"
"Target" "CASTER"
}

"FireEffect"
{
"EffectName" "particles/units/heroes/hero_phantom_assassin/phantom_assassin_crit_impact.vpcf"
"EffectAttachType" "start_at_customorigin"

"ControlPointEntities"
{
"TARGET" "follow_origin"
"TARGET" "follow_origin"
}
}

"FireSound"
{
"EffectName" "Hero_PhantomAssassin.CoupDeGrace"
"Target" "TARGET"
}
}
}
}
}
"item_recipe_desolator_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2168"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_desolator_datadriven"
"ItemRequirements"
{
"01" "item_desolator;item_desolator;item_ultimate_orb"
}
}
"item_desolator_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1168"  //Valve's version of this item uses the ID "168".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_desolator"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "9150"
"ItemShopTags" "damage;unique"
"ItemQuality" "artifact"
"ItemAliases" "desolator"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "120"
}
"02"
{
"var_type" "FIELD_INTEGER"
"corruption_armor" "-18"
}
"03"
{
"var_type" "FIELD_FLOAT"
"corruption_duration" "15.0"
}
}

"Modifiers"
{
"modifier_item_desolator_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE" "%bonus_damage"
}

"Orb"
{
"Priority" "DOTA_ORB_PRIORITY_ITEM"
"ProjectileName" "particles/items_fx/desolator_projectile.vpcf"
"CastAttack" "0"
}

"OnOrbFire"
{
"ApplyModifier"
{
"Target" "TARGET"
"ModifierName" "modifier_item_desolator_datadriven_corruption"
}

"FireSound"
{
"EffectName" "Item_Desolator.Target"
"Target" "TARGET"
}
}
}
"modifier_item_desolator_datadriven_corruption"
{
"Duration" "%corruption_duration"
"Passive" "0"
"IsHidden" "0"

"Properties"
{
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%corruption_armor"
}
}
}
}
"item_recipe_bb_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2147"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bb_datadriven"
"ItemRequirements"
{
"01" "item_blink2_datadriven;item_travel_boots_2"
}
}
"item_bb_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1220"  //Valve's version of this item uses the ID "1".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_DIRECTIONAL | DOTA_ABILITY_BEHAVIOR_ROOT_DISABLES | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_blink"
"FightRecapLevel" "1"

// Stats
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "0"
"AbilityCastPoint" "3.0"
"AbilityCooldown" "18.0"
"AbilityManaCost" "150"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "8850"
"ItemShopTags" "teleport"
"ItemQuality" "component"
"ItemAliases" "blink dagger"
"SideShop" "1"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"max_blink_range" "99999999"
}
"02"
{
"var_type" "FIELD_INTEGER"
"blink_range_clamp" "99999999"  //When attempting to blink a distance greater than max_blink_range, the caster blinks this distance in the targeted direction.
}
"03"
{
"var_type" "FIELD_INTEGER"
"blink_damage_cooldown" "3"
}
}

"OnSpellStart"
{
"RunScript"
{
"ScriptFile" "items/blink2_lua.lua"
"Function" "item_blink_datadriven_on_spell_start"
"Target" "POINT"
"MaxBlinkRange" "%max_blink_range"
"BlinkRangeClamp" "%blink_range_clamp"
}
}

"Modifiers"
{
//When the unit takes damage, Blink Dagger is put on cooldown.
"modifier_item_blink_datadriven_damage_cooldown"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"OnTakeDamage"
{
"RunScript"
{
"ScriptFile" "items/blink2_lua.lua"
"Function" "modifier_item_blink_datadriven_damage_cooldown_on_take_damage"
"BlinkDamageCooldown" "%blink_damage_cooldown"
"Damage" "%attack_damage"
}
}
}
}
}
"item_aegis_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "3112"  //Valve's version of this item uses the ID "112".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_assault"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "16250"
"ItemShopTags" "attack_speed;armor;hard_to_tag"
"ItemQuality" "epic"
"ItemAliases" "ac;assault cuirass"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
"AbilityCooldown" "35.0"  //This is the cooldown when used by ranged units.
"AbilityCastPoint" "0.0"
"AbilityManaCost" "0"

"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_attack_speed" "40"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_armor" "20"
}
"03"
{
"var_type" "FIELD_INTEGER"
"aura_radius" "1100"
}
"04"
{
"var_type" "FIELD_INTEGER"
"aura_attack_speed" "30"
}
"05"
{
"var_type" "FIELD_INTEGER"
"aura_positive_armor" "10"
}
"06"
{
"var_type" "FIELD_INTEGER"
"aura_negative_armor" "-10"
}
"07"
{
"var_type" "FIELD_INTEGER"
"bonus_strength" "100"
}
"08"
{
"var_type" "FIELD_INTEGER"
"bonus_health" "700"
}
"09"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "125"
}
"10"
{
"var_type" "FIELD_INTEGER"
"vision_on_death_radius" "1800"
}
}
"Modifiers"
{
"modifier_item_bloodstone_datadriven_aura_emitter"
{
"Passive" "1"
"IsHidden" "1"

"Aura" "modifier_item_bloodstone_datadriven_aura"
"Aura_Radius" "%charge_range"
"Aura_Teams" "DOTA_UNIT_TARGET_TEAM_ENEMY"
"Aura_Types" "DOTA_UNIT_TARGET_HERO"
"Aura_Flags" "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES"
"Aura_ApplyToCaster" "0"


"OnDeath"
{
"RunScript"
{
"ScriptFile" "items/item_aegis2.lua"
"Function" "modifier_item_bloodstone_datadriven_aura_emitter_on_death"
"VisionOnDeathRadius" "%vision_on_death_radius"
}
}
}
"modifier_item_assault_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "%bonus_attack_speed"
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%bonus_armor"
}
}
"modifier_item_assault_datadriven_ally_aura_emitter"
{
"Passive" "1"
"IsHidden" "1"

"Aura" "modifier_item_assault_datadriven_ally_aura"
"Aura_Radius" "%aura_radius"
"Aura_Teams" "DOTA_UNIT_TARGET_TEAM_FRIENDLY"
"Aura_Types" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
"Aura_Flags" "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_INVULNERABLE"
"Aura_ApplyToCaster" "1"
}
"modifier_item_assault_datadriven_ally_aura"
{
"Passive" "0"
"IsHidden" "0"

"Properties"
{
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "%aura_attack_speed"
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%aura_positive_armor"
"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_strength"
"MODIFIER_PROPERTY_HEALTH_BONUS" "%bonus_health"
"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT" "%bonus_health_regen"
}
}
"modifier_item_assault_datadriven_enemy_aura_emitter"
{
"Passive" "1"
"IsHidden" "1"

"Aura" "modifier_item_assault_datadriven_enemy_aura"
"Aura_Radius" "%aura_radius"
"Aura_Teams" "DOTA_UNIT_TARGET_TEAM_ENEMY"
"Aura_Types" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC | DOTA_UNIT_TARGET_BUILDING"
"Aura_Flags" "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_INVULNERABLE"
"Aura_ApplyToCaster" "0"
}
"modifier_item_assault_datadriven_enemy_aura"
{
"Passive" "0"
"IsHidden" "1"

"Properties"
{
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%aura_negative_armor"
}

"OnCreated"
{
"RunScript"
{
"ScriptFile" "items/ultarm.lua"
"Function" "modifier_item_assault_datadriven_enemy_aura_on_interval_think"
}
}

"ThinkInterval" ".03"
//This debuff aura is invisible to enemies unless its emitting unit is visible to them,
//so regularly check to see if the modifier should be visible.
"OnIntervalThink"
{
"RunScript"
{
"ScriptFile" "items/ultarm.lua"
"Function" "modifier_item_assault_datadriven_enemy_aura_on_interval_think"
}
}

"OnDestroy"  //Remove the visible modifier, if it is currently on the unit.
{
"RunScript"
{
"ScriptFile" "items/ultarm.lua"
"Function" "modifier_item_assault_datadriven_enemy_aura_on_destroy"
}
}
}
//A visible modifier that should appear to enemies only if they are affected by the debuff aura and its emitter
//is visible to their team.
"modifier_item_assault_datadriven_enemy_aura_visible"
{
"Passive" "0"
"IsHidden" "0"
"IsBuff" "0"
"IsDebuff" "1"
"IsPurgable" "0"
}
}
}
"item_recipe_manta_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2147"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_manta_datadriven"
"ItemRequirements"
{
"01" "item_manta;item_sange_and_yasha;item_ultimate_orb"
}
}
"item_manta_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1147"  //Valve's version of this item uses the ID "147".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_manta"

// Stats
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "15.0"  //This is the cooldown when used by ranged units.
"AbilityCastPoint" "0.0"
"AbilityManaCost" "250"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "11050"
"ItemShopTags" "agi;str;int;attack_speed;move_speed;hard_to_tag"
"ItemQuality" "epic"
"ItemAliases" "manta style"
"ItemDisassembleRule" "DOTA_ITEM_DISASSEMBLE_ALWAYS"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_strength" "36"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_agility" "52"
}
"03"
{
"var_type" "FIELD_INTEGER"
"bonus_intelligence" "20"
}
"04"
{
"var_type" "FIELD_INTEGER"
"bonus_attack_speed" "31"
}
"05"
{
"var_type" "FIELD_INTEGER"
"bonus_movement_speed_percentage" "10"
}
"06"
{
"var_type" "FIELD_INTEGER"
"images_count" "4"  //This value is currently hardcoded in item_manta.lua.
}
"07"
{
"var_type" "FIELD_INTEGER"
"illusion_duration" "30"
}
"08"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_outgoing_melee" "-67"
}
"09"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_outgoing_melee_tooltip" "33"
}
"10"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_incoming_melee" "250"
}
"11"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_incoming_melee_tooltip" "350"
}
"12"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_outgoing_ranged" "-72"
}
"13"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_outgoing_ranged_tooltip" "28"
}
"14"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_incoming_ranged" "300"
}
"15"
{
"var_type" "FIELD_INTEGER"
"illusion_damage_percent_incoming_ranged_tooltip" "400"
}
"16"
{
"var_type" "FIELD_FLOAT"
"cooldown_melee" "10.0"  //The cooldown for a ranged caster is the AbilityCooldown value.
}
"17"
{
"var_type" "FIELD_FLOAT"
"invulnerability_duration" "0.3"
}
"18"
{
"var_type" "FIELD_INTEGER"
"vision_radius" "1000"
}
"19"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "30"
}
}

"OnSpellStart"
{
"RunScript"
{
"ScriptFile" "items/ultamanta.lua"
"Function" "item_manta_datadriven_on_spell_start"
"CooldownMelee" "%cooldown_melee"
"InvulnerabilityDuration" "%invulnerability_duration"
"VisionRadius" "%vision_radius"
}
}

"Modifiers"
{
"modifier_item_manta_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_strength"
"MODIFIER_PROPERTY_STATS_AGILITY_BONUS" "%bonus_agility"
"MODIFIER_PROPERTY_STATS_INTELLECT_BONUS" "%bonus_intelligence"
"MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE" "%bonus_damage"


//Attack speed from Yasha-derived items affect your illusions.
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT_SECONDARY" "%bonus_attack_speed"

//Movement speed from Yasha-derived items does not stack with itself but does stack with other percentage-based movement speed bonuses.
"MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE_UNIQUE" "%bonus_movement_speed_percentage"
}
}

"modifier_item_manta_datadriven_spawning_animation"
{
"Duration" ".1"
"Passive" "0"
"IsHidden" "1"

"OverrideAnimation"     "ACT_DOTA_SPAWN"
}
"modifier_item_manta_datadriven_invulnerability"
{
"Duration" "%invulnerability_duration"
"Passive" "0"
"IsHidden" "1"

"States"
{
"MODIFIER_STATE_OUT_OF_GAME" "MODIFIER_STATE_VALUE_ENABLED"
"MODIFIER_STATE_INVULNERABLE" "MODIFIER_STATE_VALUE_ENABLED"
"MODIFIER_STATE_NO_HEALTH_BAR" "MODIFIER_STATE_VALUE_ENABLED"
"MODIFIER_STATE_STUNNED" "MODIFIER_STATE_VALUE_ENABLED"
}

"OnDestroy"
{
"RunScript"
{
"ScriptFile" "items/ultamanta.lua"
"Function" "modifier_item_manta_datadriven_invulnerability_on_destroy"
"IllusionOutgoingDamageMelee" "%illusion_damage_percent_outgoing_melee"
"IllusionIncomingDamageMelee" "%illusion_damage_percent_incoming_melee"
"IllusionOutgoingDamageRanged" "%illusion_damage_percent_outgoing_ranged"
"IllusionIncomingDamageRanged" "%illusion_damage_percent_incoming_ranged"
"IllusionDuration" "%illusion_duration"
}
}
}
}
}
"item_recipe_sabre2_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2252"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_sabre2_datadriven"
"ItemRequirements"
{
"01" "item_echo_sabre;item_yasha;item_ultimate_orb"
}
}
"item_sabre2_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
    "BaseClass" "item_datadriven"
"ID" "1252"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
"AbilityTextureName" "item_echo_sabre"
"FightRecapLevel" "1"
"ItemCost" "6750"
"ItemShopTags" "int;attack_speed;damage;regen_mana;damage;hard_to_tag"
"ItemQuality" "artifact"
"ItemAliases" "echo sabre" "ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "0"
"AbilityCastPoint" "0.3"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "10.0"
"AbilityDuration" "15.0"

// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "0"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"max_attacks" "4"
}
"02"
{
"var_type" "FIELD_INTEGER"
"attack_speed_bonus_pct" "400"
}
"03"
{
"var_type" "FIELD_INTEGER"
"duration_tooltip" "15"
}
"04"
{
"var_type" "FIELD_INTEGER"
"bonus_intellect" "20"
}
"05"
{
"var_type" "FIELD_INTEGER"
"bonus_strength" "20"
}
"06"
{
"var_type" "FIELD_INTEGER"
"bonus_attack_speed" "25"
}
"07"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "15"
}
"08"
{
"var_type" "FIELD_INTEGER"
"bonus_mana_regen" "80"
}
"09"
{
"var_type" "FIELD_INTEGER"
"bonus_agility" "42"
}
}

// Data driven
//-------------------------------------------------------------------------------------------------------------
"precache"
{
"soundfile" "soundevents/game_sounds_heroes/game_sounds_ursa.vsndevts"
"particle" "particles/status_fx/status_effect_overpower.vpcf"
"particle" "particles/units/heroes/hero_ursa/ursa_overpower_buff.vpcf"
}

"OnSpellStart"
{
"FireSound"
{
"Target" "CASTER"
"EffectName" "Hero_Ursa.Overpower"
}

"RunScript"
{
"ScriptFile" "items\sabre2.lua"
"Function" "overpower_init"
}
}

"Modifiers"
{
    "modifier_statsecho"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE" "%bonus_damage"
"MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE" "%bonus_mana_regen"
"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_strength"
"MODIFIER_PROPERTY_STATS_INTELLECT_BONUS" "%bonus_intellect"
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "%bonus_attack_speed"
"MODIFIER_PROPERTY_STATS_AGILITY_BONUS" "%bonus_agility"
}
}
"modifier_enrage_buff_datadriven"
{
"Duration" "%duration_tooltip"

"StatusEffectName" "particles/status_fx/status_effect_overpower.vpcf"
"StatusEffectPriority" "10"

"OnCreated"
{
"AttachEffect"
{
"Target" "CASTER"
"EffectName" "particles/units/heroes/hero_ursa/ursa_overpower_buff.vpcf"
"EffectAttachType" "start_at_customorigin"
"ControlPointEntities"
{
"CASTER" "attach_head"
"CASTER" "attach_hitloc"
"CASTER" "attach_hitloc"
"CASTER" "attach_hitloc"
}
}
}

"OnAttack"
{
"RunScript"
{
"ScriptFile" "items\sabre2.lua"
"Function" "overpower_decrease_stack"
}
}

"Properties"
{
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "%attack_speed_bonus_pct"
}
}
}
}
"item_recipe_divine_bfury_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2133"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_divine_bfury_datadriven"
"ItemRequirements"
{
"01" "item_rapier;item_bfury_datadriven;item_ultimate_orb"
}
}
"item_divine_bfury_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1133"  //Valve's version of this item uses the ID "145".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"Model" "models/props_gameplay/divine_rapier.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_bfury"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "16750"
"ItemShopTags" "damage;health_regen;mana_regen;hard_to_tag"
"ItemQuality" "epic"
"ItemAliases" "bf;battle fury"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"
"ItemShareability" "ITEM_NOT_SHAREABLE"
"ItemSellable" "0"
"ItemKillable" "0"
        "ItemContributesToNetWorthWhenDropped" "0"
"AllowedInBackpack" "0"
"IsTempestDoubleClonable" "0"
"ItemDisassembleRule" "DOTA_ITEM_DISASSEMBLE_NEVER"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "400"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "20"
}
"03"
{
"var_type" "FIELD_INTEGER"
"bonus_mana_regen_percentage" "250"
}
"04"
{
"var_type" "FIELD_INTEGER"
"cleave_damage_percent" "125"
}
"05"
{
"var_type" "FIELD_INTEGER"
"cleave_radius" "400"
}
"06"
{
"var_type" "FIELD_INTEGER"
"bonus_all_stats" "30"
}
}

"Modifiers"
{
"modifier_item_bfury_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE" "%bonus_damage"
"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT" "%bonus_health_regen"
"MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE" "%bonus_mana_regen_percentage"
"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_all_stats"
"MODIFIER_PROPERTY_STATS_AGILITY_BONUS" "%bonus_all_stats"
"MODIFIER_PROPERTY_STATS_INTELLECT_BONUS" "%bonus_all_stats"
}

"OnCreated"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_on_created"
}
}

"OnDestroy"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_on_destroy"
}
}

//Continually check to see if the hero this modifier is on has switched from ranged
//to melee, in which case they should be given cleave modifier(s).
"ThinkInterval" ".03"
"OnIntervalThink"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_on_interval_think"
}
}
}
"modifier_item_bfury_datadriven_cleave"  //Only melee units can cleave, so only melee units should get this modifier.
{
"Passive" "0"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"OnAttackLanded"
{
"CleaveAttack"
{
"CleavePercent" "%cleave_damage_percent"
"CleaveRadius" "%cleave_radius"
"CleaveEffect" "particles/items_fx/battlefury_cleave.vpcf"
}

"FireSound"
{
"EffectName" "DOTA_Item.BattleFury"
"Target" "TARGET"
}
}

//Continually check to see if the hero this modifier is on is still melee
//(since some units, like Troll Warlord, can switch between ranged/melee forms).
"ThinkInterval" ".03"
"OnIntervalThink"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_cleave_on_interval_think"
}
}
}
}
}
"item_recipe_assault_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2112"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_assault_datadriven"
"ItemRequirements"
{
"01" "item_assault;item_heart2_datadriven"
}
}
"item_assault_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1112"  //Valve's version of this item uses the ID "112".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_assault"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "16250"
"ItemShopTags" "attack_speed;armor;hard_to_tag"
"ItemQuality" "epic"
"ItemAliases" "ac;assault cuirass"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_attack_speed" "40"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_armor" "20"
}
"03"
{
"var_type" "FIELD_INTEGER"
"aura_radius" "1100"
}
"04"
{
"var_type" "FIELD_INTEGER"
"aura_attack_speed" "30"
}
"05"
{
"var_type" "FIELD_INTEGER"
"aura_positive_armor" "10"
}
"06"
{
"var_type" "FIELD_INTEGER"
"aura_negative_armor" "-10"
}
"07"
{
"var_type" "FIELD_INTEGER"
"bonus_strength" "100"
}
"08"
{
"var_type" "FIELD_INTEGER"
"bonus_health" "700"
}
"09"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "175"
}
}

"Modifiers"
{
"modifier_item_assault_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "%bonus_attack_speed"
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%bonus_armor"
}
}
"modifier_item_assault_datadriven_ally_aura_emitter"
{
"Passive" "1"
"IsHidden" "1"

"Aura" "modifier_item_assault_datadriven_ally_aura"
"Aura_Radius" "%aura_radius"
"Aura_Teams" "DOTA_UNIT_TARGET_TEAM_FRIENDLY"
"Aura_Types" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
"Aura_Flags" "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_INVULNERABLE"
"Aura_ApplyToCaster" "1"
}
"modifier_item_assault_datadriven_ally_aura"
{
"Passive" "0"
"IsHidden" "0"

"Properties"
{
"MODIFIER_PROPERTY_ATTACKSPEED_BONUS_CONSTANT" "%aura_attack_speed"
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%aura_positive_armor"
"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_strength"
"MODIFIER_PROPERTY_HEALTH_BONUS" "%bonus_health"
"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT" "%bonus_health_regen"
}
}
"modifier_item_assault_datadriven_enemy_aura_emitter"
{
"Passive" "1"
"IsHidden" "1"

"Aura" "modifier_item_assault_datadriven_enemy_aura"
"Aura_Radius" "%aura_radius"
"Aura_Teams" "DOTA_UNIT_TARGET_TEAM_ENEMY"
"Aura_Types" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC | DOTA_UNIT_TARGET_BUILDING"
"Aura_Flags" "DOTA_UNIT_TARGET_FLAG_MAGIC_IMMUNE_ENEMIES | DOTA_UNIT_TARGET_FLAG_INVULNERABLE"
"Aura_ApplyToCaster" "0"
}
"modifier_item_assault_datadriven_enemy_aura"
{
"Passive" "0"
"IsHidden" "1"

"Properties"
{
"MODIFIER_PROPERTY_PHYSICAL_ARMOR_BONUS" "%aura_negative_armor"
}

"OnCreated"
{
"RunScript"
{
"ScriptFile" "items/ultarm.lua"
"Function" "modifier_item_assault_datadriven_enemy_aura_on_interval_think"
}
}

"ThinkInterval" ".03"
//This debuff aura is invisible to enemies unless its emitting unit is visible to them,
//so regularly check to see if the modifier should be visible.
"OnIntervalThink"
{
"RunScript"
{
"ScriptFile" "items/ultarm.lua"
"Function" "modifier_item_assault_datadriven_enemy_aura_on_interval_think"
}
}

"OnDestroy"  //Remove the visible modifier, if it is currently on the unit.
{
"RunScript"
{
"ScriptFile" "items/ultarm.lua"
"Function" "modifier_item_assault_datadriven_enemy_aura_on_destroy"
}
}
}
//A visible modifier that should appear to enemies only if they are affected by the debuff aura and its emitter
//is visible to their team.
"modifier_item_assault_datadriven_enemy_aura_visible"
{
"Passive" "0"
"IsHidden" "0"
"IsBuff" "0"
"IsDebuff" "1"
"IsPurgable" "0"
}
}
}
"item_recipe_bfury_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2145"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_bfury_datadriven"
"ItemRequirements"
{
"01" "item_bfury;item_ultimate_orb;item_ultimate_orb"
}
}
"item_bfury_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1145"  //Valve's version of this item uses the ID "145".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_bfury"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "8550"
"ItemShopTags" "damage;health_regen;mana_regen;hard_to_tag"
"ItemQuality" "epic"
"ItemAliases" "bf;battle fury"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_damage" "100"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "15"
}
"03"
{
"var_type" "FIELD_INTEGER"
"bonus_mana_regen_percentage" "200"
}
"04"
{
"var_type" "FIELD_INTEGER"
"cleave_damage_percent" "100"
}
"05"
{
"var_type" "FIELD_INTEGER"
"cleave_radius" "350"
}
"06"
{
"var_type" "FIELD_INTEGER"
"bonus_all_stats" "20"
}
}

"Modifiers"
{
"modifier_item_bfury_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_BASEATTACK_BONUSDAMAGE" "%bonus_damage"
"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT" "%bonus_health_regen"
"MODIFIER_PROPERTY_MANA_REGEN_PERCENTAGE" "%bonus_mana_regen_percentage"
"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_all_stats"
"MODIFIER_PROPERTY_STATS_AGILITY_BONUS" "%bonus_all_stats"
"MODIFIER_PROPERTY_STATS_INTELLECT_BONUS" "%bonus_all_stats"
}

"OnCreated"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_on_created"
}
}

"OnDestroy"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_on_destroy"
}
}

//Continually check to see if the hero this modifier is on has switched from ranged
//to melee, in which case they should be given cleave modifier(s).
"ThinkInterval" ".03"
"OnIntervalThink"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_on_interval_think"
}
}
}
"modifier_item_bfury_datadriven_cleave"  //Only melee units can cleave, so only melee units should get this modifier.
{
"Passive" "0"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"OnAttackLanded"
{
"CleaveAttack"
{
"CleavePercent" "%cleave_damage_percent"
"CleaveRadius" "%cleave_radius"
"CleaveEffect" "particles/items_fx/battlefury_cleave.vpcf"
}

"FireSound"
{
"EffectName" "DOTA_Item.BattleFury"
"Target" "TARGET"
}
}

//Continually check to see if the hero this modifier is on is still melee
//(since some units, like Troll Warlord, can switch between ranged/melee forms).
"ThinkInterval" ".03"
"OnIntervalThink"
{
"RunScript"
{
"ScriptFile" "items/item_bfury.lua"
"Function" "modifier_item_bfury_datadriven_cleave_on_interval_think"
}
}
}
}
}
"item_recipe_heart2_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2114"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_heart2_datadriven"
"ItemRequirements"
{
"01" "item_heart;item_heart"
}
}
"item_heart2_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1114"  //Valve's version of this item uses the ID "114".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_heart"

// Stats
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "4.0"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "11000"
"ItemShopTags" "str;regen_health;health_pool"
"ItemQuality" "epic"
"ItemAliases" "hot;heart of tarrasque"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"bonus_strength" "80"
}
"02"
{
"var_type" "FIELD_INTEGER"
"bonus_health" "600"
}
"03"
{
"var_type" "FIELD_INTEGER"
"health_regen_percent_per_second" "2"
}
"04"
{
"var_type" "FIELD_FLOAT"
"cooldown_melee" "3"
}
"05"
{
"var_type" "FIELD_FLOAT"
"heal_interval" ".03"
}
"06"
{
"var_type" "FIELD_INTEGER"
"bonus_health_regen" "150"
}

}

"Modifiers"
{
"modifier_item_heart_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"Properties"
{
"MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%bonus_strength"
"MODIFIER_PROPERTY_HEALTH_BONUS" "%bonus_health"
"MODIFIER_PROPERTY_HEALTH_REGEN_CONSTANT" "%bonus_health_regen"
}
}
"modifier_item_heart_datadriven_regen"
{
"Passive" "1"
"IsHidden" "1"

"ThinkInterval" "%heal_interval"
"OnIntervalThink"  //Heal the unit if the item is not on cooldown.
{
"RunScript"
{
"ScriptFile" "items/item_heart.lua"
"Function" "modifier_item_heart_datadriven_regen_on_interval_think"
"HealthRegenPercentPerSecond" "%health_regen_percent_per_second"
"HealInterval" "%heal_interval"
}
}

"OnTakeDamage"  //Put the item on cooldown if the damage came from Roshan or a hero.
{
"RunScript"
{
"ScriptFile" "items/item_heart.lua"
"Function" "modifier_item_heart_datadriven_regen_on_take_damage"
"CooldownMelee" "%cooldown_melee"
}
}

"OnDestroy"
{
"RunScript"
{
"ScriptFile" "items/item_heart.lua"
"Function" "modifier_item_heart_datadriven_regen_on_destroy"
}
}
}
"modifier_item_heart_datadriven_regen_visible"  //A modifier that will appear on the unit's modifier bar while they are being healed.
{
"Passive" "0"
"IsHidden" "0"
}
}
}
"item_recipe_blink2_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "2002"  //Valve's version of this item uses the ID "68".
"Model" "models/props_gameplay/recipe.mdl"
"AbilityTextureName" "item_recipe"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "0"
"ItemShopTags" ""

// Recipe
//-------------------------------------------------------------------------------------------------------------
"ItemRecipe" "1"
"ItemResult" "item_blink2_datadriven"
"ItemRequirements"
{
"01" "item_blink;item_blink"
}
}
"item_blink2_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "1001"  //Valve's version of this item uses the ID "1".
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_DIRECTIONAL | DOTA_ABILITY_BEHAVIOR_ROOT_DISABLES | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"AbilityTextureName" "item_blink"
"FightRecapLevel" "1"

// Stats
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "0"
"AbilityCastPoint" "0.0"
"AbilityCooldown" "12.0"
"AbilityManaCost" "0"

// Item Info
//-------------------------------------------------------------------------------------------------------------
"ItemCost" "4450"
"ItemShopTags" "teleport"
"ItemQuality" "component"
"ItemAliases" "blink dagger"
"SideShop" "1"
"ItemDeclarations" "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_IN_SPEECH | DECLARE_PURCHASES_TO_SPECTATORS"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"max_blink_range" "2400"
}
"02"
{
"var_type" "FIELD_INTEGER"
"blink_range_clamp" "2000"  //When attempting to blink a distance greater than max_blink_range, the caster blinks this distance in the targeted direction.
}
"03"
{
"var_type" "FIELD_INTEGER"
"blink_damage_cooldown" "3"
}
}

"OnSpellStart"
{
"RunScript"
{
"ScriptFile" "items/blink2_lua.lua"
"Function" "item_blink_datadriven_on_spell_start"
"Target" "POINT"
"MaxBlinkRange" "%max_blink_range"
"BlinkRangeClamp" "%blink_range_clamp"
}
}

"Modifiers"
{
//When the unit takes damage, Blink Dagger is put on cooldown.
"modifier_item_blink_datadriven_damage_cooldown"
{
"Passive" "1"
"IsHidden" "1"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"

"OnTakeDamage"
{
"RunScript"
{
"ScriptFile" "items/blink2_lua.lua"
"Function" "modifier_item_blink_datadriven_damage_cooldown_on_take_damage"
"BlinkDamageCooldown" "%blink_damage_cooldown"
"Damage" "%attack_damage"
}
}
}
}
}
  "item_containers_lua_pack"
  {
    // General
    //-------------------------------------------------------------------------------------------------------------
    "AbilityBehavior"       "DOTA_ABILITY_BEHAVIOR_NO_TARGET"
    "ID"              "1835"
    "BaseClass"         "item_lua"
    "AbilityTextureName"        "item_present"
    "ScriptFile"          "libraries/abilities/item_containers_lua_pack.lua"
    "MaxLevel"            "1"

    "ItemCost"            "0"
    "ItemPurchasable"          "0"
    "ItemKillable"             "0"
    "ItemDroppable"            "0"
    "ItemSellable"             "0"
    "ItemCanChangeContainer"   "0"
   
    // Casting
    //-------------------------------------------------------------------------------------------------------------
    "AbilityCastRange"        "0"

    // Time   
    //-------------------------------------------------------------------------------------------------------------
    "AbilityCooldown"       "0"

    // Cost
    //-------------------------------------------------------------------------------------------------------------
    "AbilityManaCost"       "0 0 0 0"
  }

  //Shield
  "item_example_item"
  {
    "ID"              "1836"
    "AbilityBehavior"       "DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_DONT_RESUME_ATTACK"
    "AbilityUnitTargetTeam"     "DOTA_UNIT_TARGET_TEAM_ENEMY"
    "AbilityUnitTargetType"     "DOTA_UNIT_TARGET_HERO"
    "BaseClass"           "item_datadriven"
    "AbilityCastAnimation"      "ACT_DOTA_DISABLED"
    "AbilityTextureName"      "item_example_item"

    // Stats
    //-------------------------------------------------------------------------------------------------------------
    "AbilityCastRange"        "900"
    "AbilityCastPoint"        "0.2"
    "AbilityCooldown"       "13.0"

    // Item Info
    //-------------------------------------------------------------------------------------------------------------
    "AbilityManaCost"       "100"
    "ItemCost"            "750"
    "ItemInitialCharges"      "0"
    "ItemDroppable"         "1"
    "ItemSellable"          "1"
    "ItemRequiresCharges"     "0"
    "ItemShareability"        "ITEM_NOT_SHAREABLE"
    "ItemDeclarations"        "DECLARE_PURCHASES_TO_TEAMMATES | DECLARE_PURCHASES_TO_SPECTATORS"
   
    "MaxUpgradeLevel"       "1"
    "ItemBaseLevel"         "1"
   
    "precache"
    {
      "particle"              "particles/frostivus_herofx/queen_shadow_strike_linear_parent.vpcf"
      "particle_folder"       "particles/test_particle"
      "soundfile"             "soundevents/game_sounds_heroes/game_sounds_abaddon.vsndevts"
    }
    "OnSpellStart"
    {
      "LinearProjectile"
      {
        "EffectName"      "particles/frostivus_herofx/queen_shadow_strike_linear_parent.vpcf"
        "MoveSpeed"       "%speed"
        //"StartPosition"   "attach_attack1"
        "FixedDistance"   "%distance"
        "StartRadius"     "%radius"
        "EndRadius"       "%radius"
        "TargetTeams"     "DOTA_UNIT_TARGET_TEAM_ENEMY"
        "TargetTypes"     "DOTA_UNIT_TARGET_HERO"
        "TargetFlags"     "DOTA_UNIT_TARGET_FLAG_NONE"
        "HasFrontalCone"    "0"
        "ProvidesVision"    "0"
        "VisionRadius"      "0"
      }
      "FireSound"
      {
        "EffectName"    "Hero_Abaddon.AphoticShield.Cast"
        "Target"        "CASTER"
      }
      "ApplyModifier"
      {
        "Target"      "CASTER"
        "ModifierName"  "modifier_item_shield"
      }
    }
   
    "OnProjectileHitUnit"
    {     
      "DeleteOnHit" "0"
      "Damage"
      {
        "Target"      "TARGET"
        "Type"    "DAMAGE_TYPE_PURE"
        "Damage"  "%damage"
      }
    }
   
    "Modifiers"
    {
      "modifier_item_shield"
      {
        "EffectName"    "particles/test_particle/damage_immunity.vpcf"
        "EffectAttachType"  "follow_origin"
        "Target"      "CASTER"
       
        "Duration" "%duration"
        "TextureName" "abaddon_aphotic_shield"
        "Properties"
        {
          "MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE"    "%damage_reduction"
        }
      }

      "modifier_item_ex"
      {
        "Passive" "1"
        "Attributes"  "MODIFIER_ATTRIBUTE_MULTIPLE"

        "Properties"
        {
          "MODIFIER_PROPERTY_PREATTACK_BONUS_DAMAGE"    "33"
        }
      }

      "modifier_item_ex2"
      {
        "Passive" "1"

        "Properties"
        {
          "MODIFIER_PROPERTY_STATS_AGILITY_BONUS"    "3"
        }
      }
    }
   
    // Special 
    //-------------------------------------------------------------------------------------------------------------
    "AbilitySpecial"
    {
      "01"
      {
        "var_type"        "FIELD_FLOAT"
        "duration"        "4.0"
      }
     
      "02"
      {
        "var_type"        "FIELD_INTEGER"
        "damage_reduction"    "-50"
      }
      "03"
      {
        "var_type"        "FIELD_INTEGER"
        "radius"          "150"
      }
      "04"
      {
        "var_type"        "FIELD_INTEGER"
        "speed"           "1800"
      }
      "05"
      {
        "var_type"        "FIELD_FLOAT"
        "distance"        "900"
      }
      "06"
      {
        "var_type"        "FIELD_INTEGER"
        "damage"          "125"
      }
    }
  }
}
[свернуть]
С айди экспрементировал, менял его, ничего не помогло
« Последнее редактирование: 10-08-2017, 08:34:05 от Веджитто »

Оффлайн I_GRIN_I

  • Продвинутый
  • 636
  • Мощь: 11
  • Научиться бы скриптить...
Веджитто, id от 2к должно начинаться(желательно) и у всех айтемов разное должно быть, лучше всего просто строку с ид у всех айтемов убери

Оффлайн Илья

  • Супермодератор
  • 2142
  • Мощь: 21
На самодельных вещах просто делаешь id, которого еще нет в игре. Глянь стандартный файл по шмоткам и посмотри, какой там самый большой id.

Оффлайн TopKun

  • 44
  • Мощь: 0
  • оп мизантроп
I_GRIN_I, по моему у предметов айди нельзя убирать

Оффлайн I_GRIN_I

  • Продвинутый
  • 636
  • Мощь: 11
  • Научиться бы скриптить...
TopKun, можно. У меня в модах ни у одного айтема ид не прописано, все работает

Оффлайн Adam Smith

  • Друзья CG
  • 476
  • Мощь: 6
  • жрять жри его
TopKun, можно. У меня в модах ни у одного айтема ид не прописано, все работает
потому что это говнодатадрайвен наверно
By PG.Freeman

Оффлайн I_GRIN_I

  • Продвинутый
  • 636
  • Мощь: 11
  • Научиться бы скриптить...
Adam Smith,  все на луа написано, лол