These are chat archives for olistic/warriorjs

1st
Jul 2016
Per Hornshøj-Schierbeck
@Hojou
Jul 01 2016 11:04
anyone around?
i was wondering if i can have the warrior speak something out loud? I need to debug the thing - the warrior.look() command is supposed to return an array of space objects
but something is not the way i think it should be - i can see a captive in front of an enemy, yet my logic tells the warriror to shoot - killing the captive
i read my code over and over, but i fail to see the error - i need to be able to debug the code (a warrior.shout or something in place of a console.log) so i can see the value (string value is OK) of an object etc
Per Hornshøj-Schierbeck
@Hojou
Jul 01 2016 11:39
I completed the tower and doing epic now, i need to either hardcode specific tactics for a specific level or i need to be able to read what type of enemy is in a space
i have to engage in melee on some types, while definately shooting wizards from afar
Per Hornshøj-Schierbeck
@Hojou
Jul 01 2016 12:21
Ok i figured out calling '.toString()' on a space will return the unit type - making it possible to identify the enemy type