Forums > General > Patchesmodsaddons > Question about Macro

Question about Macro

Topic List
2 posts / 0 new
Last post
High CouncilOfficer
Officer Emeritus
Last seen: 1 year 2 weeks ago
Joined: 07/16/2006 - 17:08

I was wondering what the effect of "()" was in the following macro: /cast [harm] Penance(); [help] Penance

Wouldnt the following give the same result?: /cast [harm] Penance; [help] Penance "OR" /cast [harm] [ ] Penance

I only saw () used in long strings with conditionals, but never in a simple macro like that one and i cant find any information on the distinction.

Thanks :)

Edited by: Anonymous on 02/02/2015 - 15:01 Reason: Topic automatically locked
AdministratorHigh CouncilOfficer
High Council
Last seen: 42 min 51 sec ago
Joined: 11/17/2005 - 12:18

I don't think the () do anything, since penance isn't a function or other macro. 

Maybe I'm reading it wrong, but I think there might be a small difference between the two cases you give.  The first one ( /cast [harm]Penance; [help]Penance) will only fire off if you have something targeted.  The second one will always fire off ( [] is true), and I think it will target yourself if you don't have anything targeted.  The second one might as well be /cast Penance, btw.

Topic locked