Can't figure this out....

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

Guest

Can't figure this out....

Post by Guest » Thu Nov 27, 2003 4:36 pm

Code: Select all

:Begin1
/target Ganbar
/echo GotHere
/if "$target(Name)"~~"Ganbar" /call DwarfUp1
/goto :Begin1
Alright all I want to do in this code is target Ganbar Dundam if she is up, then it echos GotHere just for debugging issues, Then I want it to call sub routine DwarfUp1 if she is up, if not then begin loop again until she has spawned.

I've done this before with A Mechanic and got it to work, I"m using MQ2 if that matters (Maybe $target got changed some I dunno)

I've tried this with parenthases and without, with == and ~~, with Variables instead of Ganbar and with (Name,clean_ and without and nothing. Just kept looping over and over through the echo. Maybe I'm just making a stupid little mistake that i can't even see, anyone able to help me out here?

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Thu Dec 04, 2003 8:05 pm

Only thing I can think of is to try changing $target(Name) to lowercase name. Not sure if it will help but it could be worth a shot.