SphereCommunity
Player nearby to banker - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Player nearby to banker (/Thread-Player-nearby-to-banker)



Player nearby to banker - Berkley - 09-15-2021 06:00 AM

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


RE: Player nearby to banker - Kanibal - 09-25-2021 10:10 PM

Read this first https://forum.spherecommunity.net/Thread-Is-Character-Moving