Hey guys
Was wondering how I could go about changing an object or perhaps adding an object to another objects screen location.
Thanks
ID:154828
Dec 6 2011, 11:31 pm
|
|
In response to Kimmiehier
|
|
Kimmiehier wrote:
I don't know what you wanna change about the objects, but if you wanna switch between the icon states you should use something like > verb() I don't really care for its state, I want to change the object completely. If you wanna summon it you can use the something like this: > var/obj/nameobj/O = new(usr.loc) I want to summon it to the location of the screen, not the user. I think you should figure out the basics a bit more, I don't know it all too well either, but this should help a bit... At least that you know where to search.... If it's not possible then I know what I have to do, it'll just take forever -_- |
In response to Elenter
|
|
I see nothing in the DM F1 help files saying that you cannot modify the screen loc variable during the game itself. Try modifying it. You can use a for() loop to single out the desired object.
|
In response to Lugia319
|
|
Lugia319 wrote:
I see nothing in the DM F1 help files saying that you cannot modify the screen loc variable during the game itself. Try modifying it. You can use a for() loop to single out the desired object.Hey, thanks for the reply :) Right now I'm trying to get an item to teleport into the users on screen inventory. So I made a proc that checks what slots are open, if open I want to teleport the obj to that slot. Would this work or is there a lot more to it that I am missing? Trying to think of how I would use a for() to single out that slot location and teleport the desired item to it. Would I have to create a var specifically for the slots location and have the obj translate the var into the location it needs to go. I've been up all night, my head is a mess rofl. |
If you wanna summon it you can use the something like this:
I think you should figure out the basics a bit more, I don't know it all too well either, but this should help a bit... At least that you know where to search....