A few quick questions, though you probably are doing them right. You added the onThink() hook and the "think" function is being called correct?Soaponarope wrote:Trying to figure out brain scripts and not getting it. I even just tried to make the trickster move by doing what AH did in the twigroot tunnels and it's still not working.
Floor trigger activates this;
function startTrickster()
if cell_trickster then
local brain = cell_trickster.brain
brain:enable()
cell_trickster.rangedAttack:disable()
end
end
So far so good, trickster is active and does not attack
Trickster brain script;
function think(self)
if self:here("floor_target") then
return self:performAction("escape")
else
return self:goTo("floor target")
end
end
Trickster won't go to the spot. Please help
OK, I see it now. Didn't before because lack of indention in the code (suggest usingSoaponarope wrote:It is going to a place easy for him to get to. I even moved it 2 spaces away and it still wouldn't work. Positive there are no typos this time too.
Code: Select all