slimabob

npc_abilities_custom.lua

Sep 5th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. "inspire_lua"{
  2. "BaseClass" "ability_datadriven"
  3. "MaxLevel" "4"
  4.  
  5. "Abilitybehavior" "DOTA_ABILITY_BEHAVIOR_NO_TARGET"
  6. "AbilityUnitTargetType" "DOTA_UNIT_TARGET_BASIC | DOTA_UNIT_TARGET_HERO"
  7.  
  8. "AbilityCooldown" "0.75"
  9. "AbilityManaCost" "25"
  10.  
  11. "AbilityCastPoint" "0.15"
  12. "AbilitycastRange" "900"
  13.  
  14. "AbilitySpecial"
  15. {
  16. "01"
  17. {
  18. "var_type" "FIELD_INTEGER"
  19. "radius" "900"
  20. }
  21. "02"
  22. {
  23. "var_type" "FIELD_FLOAT"
  24. "buff_duration" "3.0 4.0 5.0"
  25. }
  26. "03"
  27. {
  28. "var_type" "FIELD_INTEGER"
  29. "str_increase" "25 50 75 100"
  30. }
  31. }
  32.  
  33. "OnSpellStart"
  34. {
  35. "ActOnTargets"
  36. {
  37. "Target"
  38. {
  39. "Center" "CASTER"
  40. "Radius" "%radius"
  41. "Teams" "DOTA_UNIT_TARGET_TEAM_FRIENDLY"
  42. "Types" "DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
  43. }
  44.  
  45. "Action"
  46. {
  47. "ApplyModifier"
  48. {
  49. "ModifierName" "modifier_inspire_str_datadriven"
  50. "Target" "TARGET"
  51. "Duration" "0.1"
  52. }
  53. }
  54. }
  55. }
  56.  
  57. "Modifiers"
  58. {
  59. // Stack Modifier
  60. "modifier_inspire_buff_datadriven"
  61. {
  62. "IsBuff" "1"
  63. "Duration" "%buff_duration"
  64.  
  65. "Properties"
  66. {
  67. "MODIFIER_PROPERTY_STATS_STRENGTH_BONUS" "%str_increase"
  68. }
  69. }
  70.  
  71. "modifier_inspire_str_datadriven"
  72. {
  73. "Duration" "%buff_duration"
  74. "IsHidden" "1"
  75.  
  76. "Attributes" "MODIFIER_ATTRIBUTE_MULTIPLE"
  77.  
  78. "OnCreated"
  79. {
  80. "RunScript"
  81. {
  82. "ScriptFile" "heroes/hero_minstrel/inspire_lua.lua"
  83. "Function" "ApplyInspire"
  84. "stack_modifier" "modifier_inspire_buff_datadriven"
  85. }
  86. }
  87.  
  88. "OnDestroy"
  89. {
  90. "RunScript"
  91. {
  92. "ScriptFile" "heroes/hero_minstrel/inspire_lua.lua"
  93. "Function" "RemoveInspire"
  94. "stack_modifier" "modifier_inspire_buff_datadriven"
  95. }
  96. }
  97. }
  98. }
  99. }
  100. }
Advertisement
Add Comment
Please, Sign In to add comment