im making a pod to transport players to different spots on the map and it cycles through all the places and stops at the last on here's what ive got so far
obj
pod
icon = 'turfs2.dmi'
icon_state = "pod2"
density = 1
verb
Get_In()
set name = "Get in"
set category = "Communication"
set src in oview(1)
input("Where do you want to go","Pod",text) in list ("Earth","Namek","Vegeta","Yardrat","Planet of the Kia's")
if("Earth")
sleep(10)
usr.loc=locate(65,44,1)
if("Namek")
sleep(10)
usr.loc=locate(98,82,5)
if("Vegeta")
sleep(10)
usr.loc=locate(38,92,7)
if("Yardrat")
sleep(10)
usr.loc=locate(57,115,11)
if("Planet of the Kia's")
sleep(10)
usr.loc=locate(30,110,10)
ID:175950
Feb 24 2003, 3:46 pm (Edited on Feb 24 2003, 3:54 pm)
|
|
In response to Nova2000
|
|
were do i put that
|
In response to VegeanSX
|
|
obj
pod icon = 'turfs2.dmi' icon_state = "pod2" density = 1 verb Get_In() set name = "Get in" set category = "Communication" set src in oview(1) var/theplace = input("Where do you want to go","Pod",text) in list ("Earth","Namek","Vegeta","Yardrat","Planet of the Kia's") switch(theplace) if("Earth") sleep(10) usr.loc=locate(65,44,1) .... |
In response to Nova2000
|
|
AHAA thx much
|
2) Use switch(theplace) and indent all the if statements in the switch. (Look it up, push F1)
-<font color="#33ff33">Nova</font>