Wildcards

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Misc
decaying skeleton
decaying skeleton
Posts: 6
Joined: Wed Jan 21, 2004 12:05 pm

Wildcards

Post by Misc » Fri Feb 13, 2004 3:22 pm

Is there a way to use wildcards in macros?

Something like...

Code: Select all

#Event gethit "has hit YOU for * damage"
or if I have a bunch of events and only want to doevent some of them...

Code: Select all

]/doevents 1*
where it will run all events whose name starts with the number 1.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Fri Feb 13, 2004 8:03 pm

No you can't use wildcards in events.

You can do things like this though:

Code: Select all

#Event gethit "has hit YOU for"

Sub Event_gethit(EvtText)
[color=red]  Do whatever[/color]
/return
You then have the full line from the event placed into a local variable called EvtText. You can parse through it and check for mob names, parse out the amount of damage etc.


You also can do individual events:

/doevents gethit