PDA

View Full Version : How can I use simple logic to have the same keystroke use different abilities?


Rokdar
03-02-2007, 03:22 AM
Greetings,

I would like to make a simple mod that on a keystroke will check for range and use an ability if its in range, otherwise use a different ranged ability. So the keystroke checks a condition and then fires one ability or a different ability based on the condition

Well the logic part is easy enough to handle with isActionInRange(slot,[unit]), however assuming the action is or isn't in range...how can I actually fire off the ability? I know we can't use ActionButtonDown(id) but there has to be a way to cast a spell/skill...there are mods out there that already do it (healer mods, decursive)

Thanks for any ideas

Tunga
03-02-2007, 11:18 AM
As far as I'm aware, there would be no way to do this since mods aren't allowed to choose which spell to cast based on range. Actually it would probably work out-of-combat, but that doesn't sound like it'd be much use.