Is this me being stupid or a bug ??

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Is this me being stupid or a bug ??

Post by Fippy » Mon Aug 23, 2004 11:29 am

Ok if i run this macro

Code: Select all

#turbo 10

Sub Main 
	:Loop
	/if (${Me.Animation}=32) {
		/echo Idle Stand
	} else {
		/echo ${Me.Animation.Hex}
	}
	/doevents
	/delay 10
	/goto :Loop
/return 

I get

Failed to parse /if condition '(71=32)', non-numeric encountered.
test.mac@6 (Main): /if (${Me.Animation}=32)

Yet I know that ${Me.Animation} is an int as I can do the Int member functions on it without a problem.
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

Rusty~
a hill giant
a hill giant
Posts: 244
Joined: Wed Apr 14, 2004 2:55 pm

Post by Rusty~ » Mon Aug 23, 2004 11:50 am

Code: Select all

#turbo 10 

Sub Main 
   :Loop 
   /if (${Me.Animation}==32) { 
      /echo Idle Stand 
   } else { 
      /echo ${Me.Animation.Hex} 
   } 
   /doevents 
   /delay 10 
   /goto :Loop 
/return

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Mon Aug 23, 2004 1:18 pm

Doh!
What a mistakadamaka
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]