Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MY MACRO. Help my write.
#1
I want doing macro fallow lider. Still a lot of work to do. My first problem is five line of this code:

ID_LIDER:=Creature.ByName(NAME_LIDER)
ID_MY:=Creature.ByName(NAME_MY)
k:=Creature.X(!ID_LIDER!)
z:=Creature.X(!ID_MY!)
c:=(k-z)
Self.Say(!c!)

Here I want obtain different position. When i have there i can use if-function.
For example: if (c>=2) Self.MoveE
if(c<=2) Self.MoveW.
Now function Self.Say(!c!) always return 0, function c:=(k-z) have wrong form.

My second problem is correct form function if() in BBot.

c:=(!k!-!z!) is too wrong form.


Messages In This Thread
MY MACRO. Help my write. - by tem0x43 - 11-22-2013, 01:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)