BBot - The best bot of the world
Creatures.ByDirectionBeside(Dir) - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: BBot (https://forums.bmega.net/forum-3.html)
+--- Forum: Sugestions (https://forums.bmega.net/forum-21.html)
+--- Thread: Creatures.ByDirectionBeside(Dir) (/thread-18442.html)



Creatures.ByDirectionBeside(Dir) - You know who - 08-30-2015

My idea is instead of using creature.x,y,z to check for creatures positions there could be a macro like

Code:
Creatures.ByDirBeside(North)>=1
Creatures.ByDirBeside(South)>=1
Creatures.ByDirBeside(West)>=1
Creatures.ByDirBeside(East)>=1

Examples down (2 = Self / 1 = Other creatures)
If you know OTs Spells configs you will understand this easier.

North will check for:

Code:
1,1,1
0,2,0
0,0,0

South will check for:

Code:
0,0,0
0,2,0
1,1,1
West:

Code:
1,0,0
1,2,0
1,0,0

East:

Code:
0,0,1
0,2,1
0,0,1

This way its more easy for spells like exori min and future incoming spells...


RE: Creatures.ByDirectionBeside(Dir) - MegaNo0body - 08-30-2015

This is good suggestion, but please, check the newest version:

http://forums.bmega.net/thread-25733.html

It contains a new tool Advanced Attacker, that contains Waver Smile