January 23, 2018
Registering and Testing Ability
Time to make the dream come true.
EDIT: Some notes has been edited due to github repository change.
Dota 2 Addon: Ability Lua Example
Valve actually made their own tutorial on how to create custom abilities using lua. Well, "giving examples" is more accurate, but still it's very useful. The tutorial is an addon (custom game) named
"ability_lua_example"
.To play the addon, simply open Dota 2, then on your console (make sure you enabled it first), put:
Code:
dota_launch_custom_game lua_ability_example hero_demo_main
Go with the flow (Lina recommended; she's hot), and voila: it looks like a hero demo! Go play with her and everything seems normal, except for the fact that she has 5 abilities.
Random guy: Okay, now what?
If you still didn't notice it, here's the hint: all of her abilities are written in Lua, and you may see (also edit) the script file(s).
The addon files are located on:
Code:
"<YourSteamLibrary>/dota 2 beta/game/dota_addons/lu
Read More