SphereCommunity

Full Version: Player nearby to banker
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

i try to script making my character say "hello" if he's nearby a banker npc.
(8 tiles or less)
unfortunately its not working.
any ideas, what i made wrong?

thank you.Shifty

forchars 8
if (<npc> && <brain> && <Title> == "banker")
var.bankernear = 1
//say banker is near
else
var.bankernear = 2
//say banker is far
endif
endfor


if <var.bankernear> == 1
say Hello Banker
endif
Reference URL's