DennisWG / Roid-Macros

Vanilla macros on steroids!
MIT License
58 stars 16 forks source link

Add Targeting Functionality #19

Closed Razorwynd closed 6 years ago

Razorwynd commented 7 years ago

I made a post on the Elysium Forums but I figures it would be better to post suggestions here...

... is it possible to add targeting features to the addon

For example: /cast TargetEnemy -- this would be equivalent to /script TargetNearestEnemy() /cast !TargetEnemy -- this would be equivalent to /run if GetUnitName("target")==nil then TargetNearestEnemy() end /cast !TargetEnemyPlayer -- this would ensure that the target is an enemy player

also is it possible to create conditionals based on the current zone?

For example: /cast [battleground] !TargetEnemyPlayer; !TargetEnemy

This would prevent me from targeting pets in battlegrounds

Jakobud commented 7 years ago

Why don't you just use those script commands and put it in a macro?

/run if GetUnitName("target")==nil then TargetNearestEnemy() end
Razorwynd commented 7 years ago

that is what i currently do... just trying to help others