area/DblClick()
if(usr.GM)
step_towards(usr,src)
I made sure I had the GM variable true. So how would I get it so you can double click anywhere on the map and your character will TRY to walk there? (No pathfinding please)
ID:272679
![]() Dec 1 2008, 4:38 pm
|
|
area/DblClick() I made sure I had the GM variable true. So how would I get it so you can double click anywhere on the map and your character will TRY to walk there? (No pathfinding please) |
area/DblClick() Still not working >.< EDIT I used turf in place of area and it worked! Why can't I use area! :( |
Lists are more flexible, and you're going to need one anyway (unless you do tons of ugly repeated checks). A GM variable would also be easy to edit with a hex editor, probably, whereas a list would give more trouble.
|
Because an area covers more than one point on the map. A turf _is_ a single coordinate, and areas can contain multiple turfs.
|
Oh, you can't use area because areas are displayed below all atoms. Use turf or atom (if you use atom, use precautions to make sure the player isn't clicking on objects in a grid or a stat panel).
|
By the way, GM variables are bad. Make a list of keys with GM, then check if the players key is in the list instead.