item
parent_type=/obj
MouseDrop(over_object,src_location,over_location)
if(over_object in view(1))
src.Move(over_object)
How would I make it so I can only move items that are in view(1)?
ID:165055
Mar 4 2007, 9:48 am (Edited on Mar 4 2007, 6:54 pm)
|
|
This is the code I use for pretty everything: get, drop, place items in containers, moving items in general. This works fine.
item How would I make it so I can only move items that are in view(1)? |
Mar 4 2007, 10:08 am
|
|
Seems like it should already be doing what you want it to do because of the if() statement..Try replacing view(1) with oview(1).
|
In response to Dragon_fire6653
|
|
You're not understanding the problem. I can move things to 1 square around me or into my contents, but I can also move things from more than 1 square, which is not what I want possible.
|
In response to LastTroubadour
|
|
item |
In response to Xx Dark Wizard xX
|
|
Well, that works. But the mouse_drag_pointer is still displayed...
|
In response to LastTroubadour
|
|
Isn't the mouse pointer always the same? If not just set it to the proper icon, there is a var to do it.
|