How do i give my units gold in the data driven system?

and if not possible how do i do it in lua using runscript?

Comments

  • Posts: 1,670

    Overthrow has examples of this, both Lua and Datadriven.

    The DD Action is "GrantXPGold"

    "GrantXPGold"
    {
        "Target"
        {
            "Center"        "CASTER"
            "radius"        "1000"
            "Types"         "DOTA_UNIT_TARGET_HERO"
            "Flags"         "DOTA_UNIT_TARGET_FLAG_NOT_ILLUSIONS"
        }
        "XPAmount"      "8"
        "SplitEvenly"   "0"
        "GoldAmount"    "4"
        "ReliableGold"  "0"
    }
    

    The concept of Modding Community doesn't go well together with Competitive Business
    My Project Page || My GitHub Profile ||

  • Thank you