wall
verb
Tag_Sly()
set src in view(1)
new /obj/sly(O, usr.dir)
var/obj/O = new /obj/sly
Problem description:
im trying to make a graffite game but i need it to graff all i need is for it to make a new obj 1 space infront of the users direction
ID:263247
Aug 1 2006, 9:11 am
|
|
Code:
wall Problem description: im trying to make a graffite game but i need it to graff all i need is for it to make a new obj 1 space infront of the users direction |
In response to Green Lime
|
|
rite set src view(1) mean when someones with in one step the verb will show
|
In response to Evil Productions
|
|
set src *in* view(1)
|
Here use this instead it's cleaner and it works I tested it:
turf also if you want I can help you make it so they can use there own icon's as graffiti too. |
In response to Hellsing4
|
|
Hellsing4 wrote:
Here use this instead it's cleaner and it works I tested it: (code) also if you want I can help you make it so they can use there own icon's as graffiti too. lolol i ween!1!!
|
In response to Hellsing4
|
|
Thank you hell this has helped a great deal if you want would you like to help make this game with me add my msn [email protected]
|
In response to DivineO'peanut
|
|
yeah that would work too but when I said its cleaner I meant that it was cleaner than his code
|
In response to DivineO'peanut
|
|
And you WEEN! you didn't even test this did you. (also note:)That if you use this than the icon_state for your graffitti must be put in the list. |
In response to Hellsing4
|
|
its allready done dude
|
In response to Pyro_dragons
|
|
you could have it so that its a player verb and not attached to the walls themselfs.
mob have fun |
In response to Zmadpeter
|
|
Zmadpeter wrote:
> mob No, that will not work. using <code>locate() in area</code> will try and find movable objects. Since what you want to find is a turf, you can just simply set T to get_step(src, src.dir), then do the various checks. var/turf/wall/T = get_step(src, src.dir) ~~> Unknown Person |
In response to Unknown Person
|
|
Unknown Person is correct V_V (dam it) using locate() will not pickup the turf.
mob |
Also, if I may I think your design is flawed. Your using a verb for your wall. In this verb you do a set src in view(1). What does this statement do?
What I am getting at is this. If I was facing up and to the left of me was a wall with this verb. I could use this verb and create that object where there is no wall.