2 replies [Last post]
PeteTh
PeteTh's picture
User offline. Last seen 2 years 9 weeks ago. Offline
Joined: 08/26/2009
Posts: 28

Hi Guys,

Is there a help page for macro syntax possibly BNF format?

I'm trying to do a conditional test on one toon, my healer in general will just laze about doing nothing while the DPS/Tank do the work and will only step in if health becomes an issue. This is fine and normally the way it should work in instances were the healer is usually my main focus window to monitor whats going on.

Out side of instances ( were healing is not as important ) I would like to use the healer for damage along side certain DPS commands, for instance

Macro /assist %$Leader%
<<DPS>>
Macro /PetAttack
<<Heals>>
if not %$Leader%
cast holy fire
endif

I have tried the bit in bold, but nothing happens, is this possible and if so what would be the correct syntax?

Thanks in advance

Pete

Update I ran the debug mode over this to see what was generated and the output does not look right

<<DPS>>
macro /petattack %$Leader%-Target
<<Alight>>
if not %$Leader%
cast Holy Fire on %$Leader-Tagret%
endif

Translation
-----------
<<DPS>>
If %$LeaderChan% = 1
Hit %k
EndIf
If %$LeaderChan% = 2
Hit %l
EndIf
If %$LeaderChan% = 3
Hit %m
EndIf
If %$LeaderChan% = 4
Hit %n
EndIf
If %$LeaderChan% = 5
Hit %o
EndIf
<<Alight>>
If %$LeaderChan% = 1
if not Alight
EndIf
If %$LeaderChan% = 2
if not Bunty
EndIf
If %$LeaderChan% = 3
if not Crib
EndIf
If %$LeaderChan% = 4
if not Drink
EndIf
If %$LeaderChan% = 5
if not Eject
EndIf
Hit %p
endif

Game Code
---- ----
@macro ALT-k,/petattack Alight-Target@
@macro ALT-l,/petattack Bunty-Target@
@macro ALT-m,/petattack Crib-Target@
@macro ALT-n,/petattack Drink-Target@
@macro ALT-o,/petattack Eject-Target@
@macro ALT-p,/cast [target=] Holy Fire@

Jeremy
Jeremy's picture
User offline. Last seen 1 year 25 weeks ago. Offline
Joined: 06/14/2009
Posts: 268
List of GCP Commands and

List of GCP Commands and Constants:
http://www.gamecommanderpro.com/commands

There is not currently an If Not but you could just put it in the else statement.

<<Heals>>
If %$LeaderChan% = %ActiveChan%
Else
cast holy fire
Endif

I am not sure if this is exactly what you are trying to accomplish but it should give you an idea of what to do.

__________________

GameCommanderPro Graphics Designer / Software Engineer

PeteTh
PeteTh's picture
User offline. Last seen 2 years 9 weeks ago. Offline
Joined: 08/26/2009
Posts: 28
Re Comment

Thanks Jeremy,

That should do the trick!