Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : _MyScriptX/Y and MoveTo (Not working)
New Topic New Poll Post Reply
Poster Message
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged

File: BugShow.drh (1 KB)
Downloaded 37 times.
License: Public Domain
icon _MyScriptX/Y and MoveTo (0)  
The Help file says, that Move and MoveTo commands can be used with _MyScript. Move works fine, but if I set the coordinates and try to use MoveTo, the NPC ignores the variables and moves as if they were not set. Check the attached hold.

____________________________
My website | Facebook | Twitter
09-28-2008 at 02:10 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
TFMurphy
Level: Smitemaster
Rank Points: 3118
Registered: 06-11-2007
IP: Logged
icon Re: _MyScriptX/Y and MoveTo (+2)  
Not a bug. _MyScriptX/Y works fine with MoveTo, but you must make sure you are moving to a *co-ordinate*, not an object. The usual way to do this is to deselect any object by Ctrl-Clicking on it and select a co-ordinate instead.

Alternatively, although it's not documented, you can use _MyScriptF to decide what entity to move to:
 0 - Co-ordinate (uses _MyScriptX/_MyScriptY)
 1 - Player
 2 - NPC
 4 - Monster
 8 - Self
16 - Stalwart

Also, _MyScriptW controls whether ForbidTurning is on or off, and _MyScriptH controls whether SingleStep is on or off.

[Last edited by TFMurphy at 09-28-2008 03:21 PM]
09-28-2008 at 03:21 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged
icon Re: _MyScriptX/Y and MoveTo (0)  
Heh, nifty. Some document which gives a bit more detailed explanation of which My variables affect which functions in what ways :)
Thanks.

____________________________
My website | Facebook | Twitter
09-28-2008 at 04:09 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : _MyScriptX/Y and MoveTo (Not working)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.