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

Как добавить предмету статы?

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

Оффлайн qofma

  • 81
  • Мощь: 0
Подскажите ,куда именно писать доп.атрибуты .Я попытался сам ,не получилось,надеюсь вы поможете мне добавить в этот предмет,допустим доп. магрезист 40.
Код
	"item_hood_of_defiance_ultimate_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "4013"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"SpellImmunityType" "SPELL_IMMUNITY_ALLIES_NO"
"FightRecapLevel" "1"
"AbilityTextureName" "item_hood_of_defiance_ultimate_datadriven"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "500"
"AbilityCastPoint" "0.0"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "12.0"

// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "0"
// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_FLOAT"
"duration" "2.0"
}
}

"precache"
{
"soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts"
"particle" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
}

"OnSpellStart"
{
"FireSound"
{
"EffectName" "Hero_Omniknight.Repel"
"Target" "CASTER"
}

"FireEffect"
{
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_cast.vpcf"
"EffectAttachType"  "follow_origin"
"Target"            "CASTER"
}

"ApplyModifier"
{
"Target" "CASTER"
"ModifierName" "modifier_hood_of_defiance_ultimate_datadriven"
}
}

"Modifiers"
{
"modifier_hood_of_defiance_ultimate_datadriven"
{
"IsBuff" "1"
"IsPurgable" "0"
"Duration" "%duration"
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
"EffectAttachType" "follow_origin"
"States"
{
"MODIFIER_STATE_MAGIC_IMMUNE" "MODIFIER_STATE_VALUE_ENABLED"
}
}
}
}
Моя кастомная карта:Shadow Fiend Wars

Оффлайн qofma

  • 81
  • Мощь: 0
Re: Как добавить предмету статы?
« Ответ #1 : 09-04-2016, 18:01:57 »
Подскажите ,куда именно писать доп.атрибуты .Я попытался сам ,не получилось,надеюсь вы поможете мне добавить в этот предмет,допустим доп. магрезист 40.
Код
	"item_hood_of_defiance_ultimate_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "4013"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"SpellImmunityType" "SPELL_IMMUNITY_ALLIES_NO"
"FightRecapLevel" "1"
"AbilityTextureName" "item_hood_of_defiance_ultimate_datadriven"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "500"
"AbilityCastPoint" "0.0"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "12.0"

// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "0"
// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_FLOAT"
"duration" "2.0"
}
}

"precache"
{
"soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts"
"particle" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
}

"OnSpellStart"
{
"FireSound"
{
"EffectName" "Hero_Omniknight.Repel"
"Target" "CASTER"
}

"FireEffect"
{
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_cast.vpcf"
"EffectAttachType"  "follow_origin"
"Target"            "CASTER"
}

"ApplyModifier"
{
"Target" "CASTER"
"ModifierName" "modifier_hood_of_defiance_ultimate_datadriven"
}
}

"Modifiers"
{
"modifier_hood_of_defiance_ultimate_datadriven"
{
"IsBuff" "1"
"IsPurgable" "0"
"Duration" "%duration"
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
"EffectAttachType" "follow_origin"
"States"
{
"MODIFIER_STATE_MAGIC_IMMUNE" "MODIFIER_STATE_VALUE_ENABLED"
}
}
}
}
Подскажите?
Моя кастомная карта:Shadow Fiend Wars

Оффлайн MRK1

  • 6
  • Мощь: 0
Re: Как добавить предмету статы?
« Ответ #2 : 09-04-2016, 19:30:14 »
Проверяй
Код
	"item_hood_of_defiance_ultimate_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "4013"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"SpellImmunityType" "SPELL_IMMUNITY_ALLIES_NO"
"FightRecapLevel" "1"
"AbilityTextureName" "item_hood_of_defiance_ultimate_datadriven"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "500"
"AbilityCastPoint" "0.0"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "12.0"

// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "0"
// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_FLOAT"
"duration" "2.0"
}
"02"
{
"var_type" "FIELD_INTEGER"
"magres" "40"
}
}

"precache"
{
"soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts"
"particle" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
}

"OnSpellStart"
{
"FireSound"
{
"EffectName" "Hero_Omniknight.Repel"
"Target" "CASTER"
}

"FireEffect"
{
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_cast.vpcf"
"EffectAttachType"  "follow_origin"
"Target"            "CASTER"
}

"ApplyModifier"
{
"Target" "CASTER"
"ModifierName" "modifier_hood_of_defiance_ultimate_datadriven"
}
}

"Modifiers"
{
"modifier_hood_of_defiance_ultimate_datadriven"
{
"IsBuff" "1"
"IsPurgable" "0"
"Duration" "%duration"
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
"EffectAttachType" "follow_origin"
"Properties"
{
"MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS" "%magres"
}
"States"
{
"MODIFIER_STATE_MAGIC_IMMUNE" "MODIFIER_STATE_VALUE_ENABLED"
}
}
}
}

Оффлайн qofma

  • 81
  • Мощь: 0
Re: Как добавить предмету статы?
« Ответ #3 : 11-04-2016, 14:21:17 »
Проверяй
Код
	"item_hood_of_defiance_ultimate_datadriven"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "item_datadriven"
"ID" "4013"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"
"Model" "models/props_gameplay/red_box.vmdl"
"Effect" "particles/generic_gameplay/dropped_item.vpcf"
"SpellImmunityType" "SPELL_IMMUNITY_ALLIES_NO"
"FightRecapLevel" "1"
"AbilityTextureName" "item_hood_of_defiance_ultimate_datadriven"

// Casting
//-------------------------------------------------------------------------------------------------------------
"AbilityCastRange" "500"
"AbilityCastPoint" "0.0"

// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "12.0"

// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "0"
// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_FLOAT"
"duration" "2.0"
}
"02"
{
"var_type" "FIELD_INTEGER"
"magres" "40"
}
}

"precache"
{
"soundfile" "soundevents/game_sounds_heroes/game_sounds_nevermore.vsndevts"
"particle" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
}

"OnSpellStart"
{
"FireSound"
{
"EffectName" "Hero_Omniknight.Repel"
"Target" "CASTER"
}

"FireEffect"
{
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_cast.vpcf"
"EffectAttachType"  "follow_origin"
"Target"            "CASTER"
}

"ApplyModifier"
{
"Target" "CASTER"
"ModifierName" "modifier_hood_of_defiance_ultimate_datadriven"
}
}

"Modifiers"
{
"modifier_hood_of_defiance_ultimate_datadriven"
{
"IsBuff" "1"
"IsPurgable" "0"
"Duration" "%duration"
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
"EffectAttachType" "follow_origin"
"Properties"
{
"MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS" "%magres"
}
"States"
{
"MODIFIER_STATE_MAGIC_IMMUNE" "MODIFIER_STATE_VALUE_ENABLED"
}
}
}
}
Не робит,ты забыл пихнуть "Attributes"       "MODIFIER_ATTRIBUTE_MULTIPLE" ,но я  сам не знаю куда надо это пихать,надеюсь на вашу помощь
Моя кастомная карта:Shadow Fiend Wars

Оффлайн Илья

  • Супермодератор
  • 1906
  • Мощь: 16
Re: Как добавить предмету статы?
« Ответ #4 : 11-04-2016, 16:20:21 »

Оффлайн qofma

  • 81
  • Мощь: 0
Re: Как добавить предмету статы?
« Ответ #5 : 08-05-2016, 10:09:19 »
Читай
Там нету,что мне надо,в моём коде пишется ,что это баф ,а не пассивка.Как добавить статы в этот код?
Код
	"Modifiers"
{
"modifier_hood_of_defiance_ultimate_datadriven"
{
"IsBuff" "1"
"IsPurgable" "0"
"Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"
"Duration" "%duration"
"EffectName" "particles/units/heroes/hero_omniknight/omniknight_repel_buff.vpcf"
"EffectAttachType" "follow_origin"
"Properties"
{
"MODIFIER_PROPERTY_MAGICAL_RESISTANCE_BONUS" "%bonus_magic_resist_percentage"
}
"States"
{
"MODIFIER_STATE_MAGIC_IMMUNE" "MODIFIER_STATE_VALUE_ENABLED"
}
}
}
}
Моя кастомная карта:Shadow Fiend Wars