Advertisement
Guest User

ColdCOinItem

a guest
Jun 29th, 2015
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "item_gold_coin"
  2.     {
  3.         //General
  4.         "ID"                    "1111"
  5.         "BaseClass"             "item_datadriven"
  6.         "AbilityTextureName"            "item_rapier"
  7.         "AbilityBehavior"           "DOTA_ABILITY_BEHAVIOR_NO_TARGET"
  8.         "AbilityCastPoint"              "0.0"
  9.             "Model"                     "models/props_gameplay/gold_coin001.vmdl"
  10.  
  11.  
  12.         // Item Info
  13.         //-------------------------------------------------------------------------------------------------------------
  14.         "ItemKillable"                  "0"
  15.         "ItemSellable"                  "0"
  16.         "ItemPurchasable"               "0"
  17.         "ItemDroppable"                 "1"
  18.         "ItemInitialCharges"                "1"
  19.         "ItemRequiresCharges"               "1"
  20.         "ItemStackable"                 "1"
  21.         "ItemShareability"              "ITEM_FULLY_SHAREABLE_STACKING"
  22.         //ItemPermanent set to 0 so once all charges are used it goes out of inventory, i.e. modifier auto removed
  23.         "ItemPermanent"                 "0"
  24.  
  25.         "OnSpellStart"
  26.         {
  27.             SpendCharge{}
  28.             //This is for other spell inter-action and does not affect the charge/modifier stacking
  29.             "RunScript"
  30.             {
  31.                 "ScriptFile" "addon_game_mode.lua"
  32.                 "Function"   "DropCoin"
  33.             }
  34.         }
  35.  
  36.         "AbilitySpecial"
  37.         {
  38.             "01"
  39.             {
  40.                 "var_type"      "FIELD_INTEGER"
  41.                 "bonus_stat_per_charge"    "-10"
  42.             }
  43.         }
  44.  
  45.         "Modifiers"
  46.         {
  47.             "item_gold_coin_modifier"
  48.             {
  49.                 "Passive"               "1"
  50.                 "IsHidden"              "0"
  51.                 //Ensures the modifier attribute stacks
  52.                 "Attributes"            "MODIFIER_ATTRIBUTE_MULTIPLE"
  53.  
  54.                 "Properties"
  55.                 {
  56.                     "MODIFIER_PROPERTY_MOVESPEED_BONUS_CONSTANT"    "%bonus_stat_per_charge"
  57.                 }
  58.             }
  59.         }
  60.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement