So I've done a few searches for how to do this, but found nothing that seemed to pertain to me. What I'm trying to do is assign an attack verb to a mouseclick. I understand how macros work for keystrokes, but they don't seem to apply to mouseclicks.
I've also tried re-writing Click() for areas, thinking that if anyone clicked anywhere inside the screen it would simply execute the attack(), but to no avail.
Additionally, if there is a legitimate way to do this, will it conflict with my target system? Essentially, what I'm aiming for is for players to be able to click mobs to target them, then click anywhere else on screen to initiate the attack().
Here is the code where I rewrote Click() for mobs to incorporate targeting.
Code:
mob
Click()
var/C = src
if (usr == src)
return
usr:Target(C)
The code is just to show you how my target control works and see if it'd be compatible with a mouseclick attack() assignment.