- 7 Окт 2018
- 8
- 1
Как сделать чтобы скилл качался только один раз и на определённом уровне?
Код:
"sverhrazum"
{
// General
//-------------------------------------------------------------------------------------------------------------
"BaseClass" "ability_datadriven"
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_PASSIVE"
"AbilityType" "DOTA_ABILITY_TYPE_ULTIMATE"
"AbilityTextureName" "sverhrazum"
// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
{
"01"
{
"var_type" "FIELD_INTEGER"
"marksmanship_intellect_bonus" "400"
}
"02"
{
"var_type" "FIELD_INTEGER"
"radius" "0"
}
// Extra variables
"03"
{
"var_type" "FIELD_FLOAT"
"think_interval" "0.1"
}
}
// Data driven
//-------------------------------------------------------------------------------------------------------------
"precache"
{
"particle" "particles/units/heroes/hero_drow/drow_marksmanship.vpcf"
"particle" "particles/units/heroes/hero_drow/drow_marksmanship_start.vpcf"
}
"Modifiers"
{
"modifier_marksmanship_passive_datadriven"
{
"Passive" "1"
"IsHidden" "1"
"IsPurgable" "0"
"ThinkInterval" "%think_interval"
"OnIntervalThink"
{
"RunScript"
{
"ScriptFile" "heroes/hero_drow_ranger/marksmanship.lua"
"Function" "marksmanship_detection"
}
}
}
"modifier_marksmanship_effect_datadriven"
{
"IsPurgable" "0"
"OnCreated"
{
"FireEffect"
{
"Target" "CASTER"
"EffectName" "particles/units/heroes/hero_drow/drow_marksmanship_start.vpcf"
"EffectAttachType" "start_at_customorigin"
"ControlPointEntities"
{
"CASTER" "attach_attack1"
}
}
"AttachEffect"
{
"Target" "CASTER"
"EffectName" "particles/units/heroes/hero_drow/drow_marksmanship.vpcf"
"EffectAttachType" "follow_origin"
"ControlPoints"
{
"02" "150"
}
}
}
"Properties"
{
"MODIFIER_PROPERTY_STATS_INTELLECT_BONUS" "%marksmanship_intellect_bonus"
}
}
}
}
}