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.
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.