I was working on building a little stargate system to learn many diffrent parts of DM at once using lists and vars. My problem is that i get a runtime error after i complete dialing the address to test if it worked i was making sure that an invisable part of the stargate was made solid.
Am i on the right track to doing this?
obj
Stargate
peices
left
icon='PGate.dmi'
icon_state="Gleft"
middle
icon='PGate.dmi'
icon_state="Gmiddle"
right
icon='Pgate.dmi'
icon_state="Gright"
chevrons
C1
icon='PChevron.dmi'
icon_state="C1"
C2
icon='PChevron.dmi'
icon_state="C2"
C3
icon='PChevron.dmi'
icon_state="C3"
C4
icon='PChevron.dmi'
icon_state="C4"
C5
icon='PChevron.dmi'
icon_state="C5"
C6
icon='PChevron.dmi'
icon_state="C6"
C7
icon='PChevron.dmi'
icon_state="C7"
Gate//This becomes solid
var/address=""
DHD
icon='PDHD.dmi'
icon_state="DHD"
var/memory=""
var/obj/Stargate/Gate/A
DblClick()
var/current
memory=""
current=""
current = input ("Dial me") as num|null
current = input ("Dial me") as num|null
current = input ("Dial me") as num|null
current = input ("Dial me") as num|null
current = input ("Dial me") as num|null
current = input ("Dial me") as num|null
memory += num2text(current)
if((current==A.address in world))
A.density=1
What you need to do is LOOP through all the /obj/Stargate/Gate/ in the world, but you're going about it the wrong way.
Use a for loop:
http://developer.byond.com/docs/ref/info.html#/proc/for/list
Sorry I can't explain more, off to beat someone in their own game.