Advertisement
Guest User

Untitled

a guest
Dec 5th, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.08 KB | None | 0 0
  1.   //=================================================================================================================
  2.   // Kunkka : Ghostship
  3.   //=================================================================================================================
  4.  
  5.   "imba_kunkka_ghostship"
  6.   {
  7.     // General
  8.     //-------------------------------------------------------------------------------------------------------------
  9.     "BaseClass"       "ability_datadriven"
  10.     "AbilityType"         "DOTA_ABILITY_TYPE_ULTIMATE"
  11.     "AbilityBehavior"       "DOTA_ABILITY_BEHAVIOR_DIRECTIONAL | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
  12.     "AbilityUnitDamageType"     "DAMAGE_TYPE_MAGICAL"
  13.     "SpellImmunityType"       "SPELL_IMMUNITY_ENEMIES_NO"
  14.     "FightRecapLevel"       "2"
  15.     "AbilityTextureName"      "kunkka_ghostship"
  16.  
  17.     // Casting
  18.     //-------------------------------------------------------------------------------------------------------------
  19.     "AbilityCastRange"        "1000"
  20.     "AbilityCastPoint"        "0.4 0.4 0.4"
  21.  
  22.     // Time  
  23.     //-------------------------------------------------------------------------------------------------------------
  24.     "AbilityCooldown"       "60.0 50.0 40.0"
  25.  
  26.     // Damage.
  27.     //-------------------------------------------------------------------------------------------------------------
  28.     "AbilityDamage"         "250" // "400 500 600"
  29.  
  30.     // Cost
  31.     //-------------------------------------------------------------------------------------------------------------
  32.     "AbilityManaCost"       "150 200 250"
  33.  
  34.     // Special
  35.     //-------------------------------------------------------------------------------------------------------------
  36.     "AbilitySpecial"
  37.     {
  38.       "01"
  39.       {
  40.         "var_type"          "FIELD_FLOAT"
  41.         "tooltip_delay"       "3.07"
  42.       }
  43.       "02"
  44.       {
  45.         "var_type"          "FIELD_INTEGER"
  46.         "ghostship_distance"    "1000"
  47.       }
  48.       "03"
  49.       {
  50.         "var_type"          "FIELD_INTEGER"
  51.         "ghostship_width"     "425"
  52.       }      
  53.       "04"
  54.       {
  55.         "var_type"          "FIELD_INTEGER"
  56.         "movespeed_bonus"     "10 10 10"
  57.       }
  58.       "05"
  59.       {
  60.         "var_type"          "FIELD_FLOAT"
  61.         "buff_duration"       "10"
  62.       }
  63.       "06"
  64.       {
  65.         "var_type"          "FIELD_FLOAT"
  66.         "stun_duration"       "1.4 1.4 1.4"
  67.       }
  68.       "07"
  69.       {
  70.         "var_type"          "FIELD_INTEGER"
  71.         "ghostship_speed"     "750 750 750"
  72.       }
  73.       // Extra variable
  74.       "08"
  75.       {
  76.         "var_type"          "FIELD_INTEGER"
  77.         "rum_reduce_pct"      "50"
  78.       }
  79.       "09"
  80.       {
  81.         "var_type"          "FIELD_FLOAT"
  82.         "damage_duration"     "10.0"
  83.       }
  84.       "10"
  85.       {
  86.         "var_type"          "FIELD_FLOAT"
  87.         "damage_interval"     "1.0"
  88.       }
  89.     }
  90.  
  91.     // Data driven
  92.     //-------------------------------------------------------------------------------------------------------------
  93.     "precache"
  94.     {
  95.       "soundfile"           "soundevents/game_sounds_heroes/game_sounds_kunkka.vsndevts"
  96.       "particle"            "particles/units/heroes/hero_kunkka/kunkka_ghostship_marker.vpcf"
  97.       "particle"            "particles/units/heroes/hero_kunkka/kunkka_ghost_ship.vpcf"
  98.       "particle"            "particles/status_fx/status_effect_rum.vpcf"
  99.     }
  100.  
  101.     "OnSpellStart"
  102.     {
  103.       "FireSound"
  104.       {
  105.         "Target"          "CASTER"
  106.         "EffectName"        "Ability.Ghostship.bell"
  107.       }
  108.  
  109.       "FireSound"
  110.       {
  111.         "Target"          "CASTER"
  112.         "EffectName"        "Ability.Ghostship"
  113.       }
  114.  
  115.       "RunScript"
  116.       {
  117.         "ScriptFile"        "hero/hero_kunkka.lua"
  118.         "Function"          "ghostship_start_traverse"
  119.         "Target"            "POINT"
  120.       }
  121.     }
  122.  
  123.     "OnProjectileHitUnit"
  124.     {
  125.       "DeleteOnHit"         "0"
  126.    
  127.       "ApplyModifier"
  128.       {
  129.         "Target"          "TARGET"
  130.         "ModifierName"        "modifier_ghostship_rum_datadriven"
  131.       }
  132.     }
  133.  
  134.     "Modifiers"
  135.     {
  136.       "modifier_ghostship_rum_datadriven"
  137.       {
  138.         "IsBuff"        "1"
  139.      
  140.         "Duration"        "%buff_duration"
  141.      
  142.         "StatusEffectName"    "particles/status_fx/status_effect_rum.vpcf"
  143.         "StatusEffectPriority"  "10"
  144.      
  145.         "OnTakeDamage"
  146.         {
  147.           "RunScript"
  148.           {
  149.             "ScriptFile"    "hero/hero_kunkka.lua"
  150.             "Function"      "ghostship_register_damage"
  151.             "DamageTaken"   "%attack_damage"
  152.           }
  153.         }
  154.      
  155.         "OnDestroy"
  156.         {
  157.           "RunScript"
  158.           {
  159.             "ScriptFile"    "hero/hero_kunkka.lua"
  160.             "Function"      "ghostship_spread_damage"
  161.             "Target"      "TARGET"
  162.           }
  163.         }
  164.      
  165.         "Properties"
  166.         {
  167.           "MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE"    "%rum_reduce_pct"
  168.           "MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE"    "%movespeed_bonus"
  169.         }
  170.       }
  171.     }
  172.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement