SphereCommunity
what's the return value of CANMOVE? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: what's the return value of CANMOVE? (/Thread-what-s-the-return-value-of-CANMOVE)



what's the return value of CANMOVE? - Jim - 02-12-2015 01:12 PM

what's the return value of CANMOVE?

In WiKi, it said "Returns 1 if the character can move in the given direction"

but in my test, the return value is NOT the 1 , it is "06002ae4" and the other like this.

anything wrong?


RE: what's the return value of CANMOVE? - matex - 02-12-2015 01:53 PM

Hello Jim,

The WiKi seems to be mistaken there.
IF you can move there, the function will return the resource-id of the Area you move to.
This is only an internal value and of limited value to you.

What the WiKi _should_ say is:

If this function returns anything other than 0 you can move there.

Kind regards,
matex


RE: what's the return value of CANMOVE? - Jim - 02-12-2015 03:25 PM

Hi matex,
Thanks for reply! :_)