ID:146616
 
I have a dragonball z game i and i was wondering if i could get a teamspace ship in which is for a guild i am making a guild house for

here is the coding of mine i have

mob
SpacePod
icon = 'raditzsagaturfs.dmi'
icon_state = "pod"
verb
GotoNamek()
set src in oview(1)
set category = "Travel"
usr.loc=locate(109,18,3)
sleep(500)
usr.loc=locate(76,82,5)
verb
GotoEarth()
set src in oview(1)
set category = "Travel"
usr.loc=locate(128,17,3)
sleep(500)
usr.loc=locate(128,38,1)


So how could i go about this?

Another one is ive got some clothes but while the player is wearing the clothes has a gravity training feature so how can i this is what i have done so far

    saiyanarmor
name = "Saiya-jin Armor"
icon = 'saiyanarmor.dmi'
worn = 0
verb
Wear()
set category = "Inventory"
if(src.worn == 1)
src.worn = 0
usr.overlays -= 'saiyanarmor.dmi'
usr << "You remove the [src.name]."
Gravity()
set category = "Training"
set src in oview(1)
var/howmuch = input("How much gravity would you like? (Note, it is suggested to be atleast 1000 powerlevel before gravity training.)") as num|null
if(howmuch < 0)
usr << "<b>Thats not possible."
if(howmuch == 1||howmuch == 0)
usr.grav = 0
usr << "<b>You turn off the gravity...."
if(howmuch > 1 && howmuch <= 10000)
if(usr.grav >= 1)
usr << "<b>Please set the gravity to 0."
if(usr.grav == 0||usr.grav == null)
usr << "<b>You hear the machine turn on..."
usr.grav = howmuch
sleep(20)
usr.playergravity()
if(howmuch > 10000)
usr << "<b>The gravitron cannot withstand more than 10000x gravity."


When i do that i get these errors

objs.dm:1778:error:set :invalid proc definition
objs.dm:1779:error:howmuch :invalid proc definition
objs.dm:1780:error:if :invalid proc definition
objs.dm:1781:error::invalid proc definition
objs.dm:1783:error::invalid proc definition
objs.dm:1786:error::invalid proc definition
objs.dm:1794:error::invalid proc definition

on lines 1778 to 1794 is

    Gravity()
set category = "Training"
set src in oview(1)
var/howmuch = input("How much gravity would you like? (Note, it is suggested to be atleast 1000 powerlevel before gravity training.)") as num|null
if(howmuch < 0)
usr << "<b>Thats not possible."
if(howmuch == 1||howmuch == 0)
usr.grav = 0
usr << "<b>You turn off the gravity...."
if(howmuch > 1 && howmuch <= 10000)
if(usr.grav >= 1)
usr << "<b>Please set the gravity to 0."
if(usr.grav == 0||usr.grav == null)
usr << "<b>You hear the machine turn on..."
usr.grav = howmuch
sleep(20)
usr.playergravity()
if(howmuch > 10000)
usr << "<b>The gravitron cannot withstand more than 10000x gravity."


So can you help me so i can fix that too please
Hey,

I'm not sure what your looking for exactly, but if you mean setting the spacespod so that only guild members can use it try this:

var/list/GuildMems  //a list of user keys who are in the guild
verb/GotoNamek()
if(usr.key in GuildMems)
/*your code here*/
You have to indent the code after the Gravity() verb.
In response to DarkCampainger
DarkCampainger wrote:
You have to indent the code after the Gravity() verb.

Here is the new coding

var/list/GuildMems  //a list of user keys who are in the guild
verb/GotoNamek()
if(usr.key in GuildMems)
verb
GotoNamek()
set src in oview(1)
set category = "Travel"
usr.loc=locate(109,18,3)
sleep(500)
usr.loc=locate(76,82,5)
verb
GotoEarth()
set src in oview(1)
set category = "Travel"
usr.loc=locate(128,17,3)
sleep(500)
usr.loc=locate(128,38,1)
verb
Go_To_Planet_Vegeta()
set src in oview(1)
set category = "Travel"
usr.loc=locate(128,17,3)
sleep(500)
usr.loc=locate(237,12,10)

verb
Go_To_Yardrat()
set src in oview(1)
set category = "Travel"
usr.loc=locate(128,17,3)
sleep(500)
usr.loc=locate(192,138,10)


How can i fix it and the errors are

Guild.dm:89: Inconsistent indentation.
Guild.dm:90: Inconsistent indentation.
Guild.dm:91: Inconsistent indentation.
Guild.dm:92: Inconsistent indentation.
Guild.dm:93: Inconsistent indentation.
Guild.dm:94: Inconsistent indentation.
Guild.dm:96: Inconsistent indentation.
Guild.dm:97: Inconsistent indentation.
Guild.dm:98: Inconsistent indentation.
Guild.dm:99: Inconsistent indentation.
Guild.dm:100: Inconsistent indentation.
Guild.dm:101: Inconsistent indentation.
Guild.dm:103: Inconsistent indentation.
Guild.dm:104: Inconsistent indentation.
Guild.dm:105: Inconsistent indentation.
Guild.dm:106: Inconsistent indentation.
Guild.dm:107: Inconsistent indentation.
Guild.dm:109: Inconsistent indentation.
Guild.dm:111: Inconsistent indentation.
Guild.dm:112: Inconsistent indentation.
Guild.dm:113: Inconsistent indentation.
Guild.dm:114: Inconsistent indentation.
Guild.dm:115: Inconsistent indentation.
In response to Govegtos
Don't copy and paste your code, now you have to outdent it.