Script for Enigma to cast Midnight Pulse then ULT after blink?

Script for Enigma to cast Midnight Pulse then ULT after blink? - Group of People Sitting on Chair on Stage

Is it possible to write a script that will cast Midnight Pulse then ULT immideately after using blink dagger, right where Enigma is located?



Best Answer

Back from work

Midnight Pulse does indeed seem to be an annoyance. My old script did not feature that spell (instead bkb,dagger,ult)

The best i could do was this:

//Midnight Pulse then ULT immideately after using blink dagger
alias "sixLeftClick" "+sixense_left_click; -sixense_left_click"
alias "bkb" "dota_item_execute 0"
alias "pulse" "dota_ability_execute 2"
alias "ult" "dota_ability_execute 5"

alias "+enigcombo" "bkb; pulse; sixLeftClick"
alias "-enigcombo" "ult; sixLeftClick"
bind "b" "+enigcombo"

Explaination:

The sixense is a feature Valve integrated to simulate mouse movement and clicks. We use this to simulate a leftclick at the position of the mouse cursor (this should met the criteria "at enigmas position" well enough)

bkb, pulse and ult should be self explanatory. They serve as an abbreviation for better reading. dota_item_execute 0 needs to be adjusted (the number) to the itemslot that your bkb will be most of the time. The itemslots are formated like this:

0|1|2
3|4|5

+enigcombo does resemble a press down state (not releasing the button right away) while -enigcombo resembles a release of the button. this enables us to circumvent some valve limitations of just binding without those states.

Finally we bind any key (in this case b) to the button down state. Pressing b down results in executing bkb and the pulse at the position of the mouse cursor and releasing b results in executing ultimate at the position of the mouse cursor.

Here a quick demonstration I made to visualize this script.

The popups button_up and button_down have been added to show the minimal time b needs to be hold down.

Problems

This script has a flaw. If you press and release b fast (like you normally would) pulse will not be executed. If you however hold down b for a short time the whole combo will be executed. You should try this script in practice mode to get a feel for it.

Future

I am trying to tune this weakness by using shifting up to the point of pulse and then switching to manual commands again to cancel the pulse animation as fast as possible.




Pictures about "Script for Enigma to cast Midnight Pulse then ULT after blink?"

Script for Enigma to cast Midnight Pulse then ULT after blink? - Man in Black Suit Jacket Standing in Front of People Sitting on Chairs
Script for Enigma to cast Midnight Pulse then ULT after blink? - Group Of People Sitting With Their Scripts
Script for Enigma to cast Midnight Pulse then ULT after blink? - Man Sitting on Chair Holding A Script





Enigma - Midnight Pulse




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: cottonbro, cottonbro, cottonbro, cottonbro