ID:144954
 
Code:


Problem description:
im making 4 teleporters but they all teleport to the same place can some1 help i changed the (x,y,z) and i tried setting tags

this is the code:


turf/Teleorter
icon='teleport1.dmi'

teleport
icon_state="teleport"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(155,48,1)

teleport2
icon_state="teleport2"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(178,51,1)

teleport3
icon_state="teleport3"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(135,7,1)

teleport4
icon_state="teleport4"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(181,24,1)

thanx
turf/Teleorter
icon='teleport1.dmi'

teleport //needed a tab after each of these
icon_state="teleport"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(155,48,1)

teleport2
icon_state="teleport2"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(178,51,1)

teleport3
icon_state="teleport3"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(135,7,1)

teleport4
icon_state="teleport4"
Entered(mob/M)
if(istype(M,/mob))
M.loc=locate(181,24,1)
In response to Evidence
thanx alot
In response to Dazz513
np
In response to Evidence
can u help me make a teleport verb?

4get it i did it

In response to Dazz513
Sure, what do you want it to do?
In response to Evidence
4get it i found out how 2 do it but i still need help

how do u make a npc give an item?
In response to Dazz513
Just give it an inventory

obj
sword
icon=whatever
mob
Shopguy
icon=whatever
DblClick()
usr<<"[src]: Hello"
var/obj/lol=input("What do you want","Shopguy")as null|anything in src.contents
if(!lol) usr<<"Thanks for stopping by";return
usr.contents+=lol
return
New()//so it will do this evetime it spawns.
..()
var/obj/sword/s = new /obj/sword
src.contents+=s
In response to Evidence
That won't work. Should be var/obj/lol :<
In response to Mysame
=p Edited
In response to Evidence
not an obj a verbthis is what i want the npc to give

mob
verb
NetArea1Card(mob/M)
set category = "NetCards"
M.loc=locate(155,48,1)
src << "You are in Net Area 1"
In response to Dazz513
Well, I will just let someone else who understands help you. I could of sworn you said item. >.>
In response to Evidence
oh srry
can u make that into an item?
In response to Dazz513
obj/NetArea1Card
icon=whatever
verb
NetArea1Card(mob/M)
set category="NetCards"
M.loc=locate(155,48,1)
usr<<"You are in Net Area 1"
In response to Evidence
k thanx
In response to Dazz513
k im confused of how the npc gives the item
srry im a noob at making game on byond
In response to Dazz513
In response to Evidence
i want to kno how they automatically give u the item
not choosing it
In response to Dazz513
obj
sword
icon=whatever
mob
Shopguy
icon=whatever
DblClick()
usr<<"[src]: Have this sword"
usr.contents+=src.contents
New()//so it will do this evetime it spawns.
..()
var/obj/sword/s = new /obj/sword
src.contents+=s
<dm>

It might be easier to udnerstand stuff if you actualy READ the guide.

In response to Evidence
i did read it
Page: 1 2