turf/Creation
Screen
icon='Creation.jpg'
density = 1
Start
density=1
Click()
switch(input("Welcome to Star Wars: The New Republic \n What would you like to do?") in list ("Create a new character","Continue an existing character"))
if("Create a new character")
if(fexists("Save/[usr.key]"))
switch(input("Are you sure? Doing this will delete your previous character!") in list ("Yes","Cancel"))
if("Yes")
usr.loc = locate(9,27,1)
else
return
else
usr.loc = locate(9,27,1)
if("Continue an existing character")
usr.Load()
usr.Give_Rank()
usr.firing = 0
usr.attacking=0
usr.regen = 1
usr.meditating=0
usr.resting=0
usr.icon_state=""
usr.Regenerate()
if(usr.Groupleader)
usr.verbs -= /mob/Group/verb/Start_Group
usr.verbs += /mob/Group/verb/Leave_Group
usr.verbs += /mob/Group/verb/Change_Rank
usr.verbs += /mob/Group/verb/Recruit
usr.verbs += /mob/Group/verb/Boot_From_Group
if(usr.KO)
usr.icon_state="dead"
usr.UnKo()
usr.AutoSave()
Name
density=1
Click()
usr.name=input("Please create a name for your character. (Remember this is a RP game!! So Name your character what you would name your child!!)") as text
if(usr.name=="")
return
usr.name=html_encode(name)
Race
density=1
Click()
usr.icon=null
usr.overlays -= usr.Hair
usr.Hair=null
usr.overlays -= 'ZabrakHorns.dmi'
usr.overlays -= 'Eyes_Arkanian.dmi'
usr.ForceSensitive=0
var/list/A=new/list
var/random
A.Add("Arkanian")
if(global.Chiss||Admins.Find(usr.key)||Moderator.Find(usr.key))
random=rand(1,50)
if(random==1||Admins.Find(usr.key)||Moderator.Find(usr.key))
A.Add("Chiss")
A.Add("Human")
A.Add("Kel Dor")
if(global.Miraluka||Admins.Find(usr.key)||Moderator.Find(usr.key))
random=rand(1,75)
if(random==1||Admins.Find(usr.key)||Moderator.Find(usr.key))
A.Add("Miraluka")
A.Add("Nagai")
A.Add("Nautolan")
A.Add("Rodian")
if(global.Sith||Admins.Find(usr.key)||Moderator.Find(usr.key))
random=rand(1,100)
if(random==1||Admins.Find(usr.key)||Moderator.Find(usr.key))
A.Add("Sith")
A.Add("Sephi")
A.Add("Twi'lek")
A.Add("Ubese")
A.Add("Wookie")
A.Add("Zabrak")
switch(input("Please choose which race you wish to be") in A)
if("Arkanian")
usr.Race="Arkanian"
usr.ModIntel = 2.75
usr.ModFortitude = 1.2
usr.ModReflex = 1
usr.ModStrength = 1.5
usr.ModDefence = 0.7
usr.ModForceMastery = 2
usr.ModForce = 1.75
usr.RegenHealth = 0.7
usr.RegenForce = 2
usr.overlays += 'Eyes_Arkanian.dmi'
if("Chiss")
usr.Race="Chiss"
usr.ModIntel = 2.5
usr.ModFortitude = 1.5
usr.ModReflex = 1.5
usr.ModStrength = 1.25
usr.ModDefence = 1.25
usr.ModForceMastery = 1.75
usr.ModForce = 1.5
usr.RegenHealth = 1.3
usr.RegenForce = 1.5
if("Human")
usr.Race="Human"
usr.ModIntel = 2
usr.ModFortitude = 2
usr.ModReflex = 1.3
usr.ModForceMastery = 2
usr.ModForce = 2
usr.RegenHealth = 1.5
usr.RegenForce = 1.5
if("Kel Dor")
usr.Race="Kel Dor"
usr.ModIntel = 1.5
usr.ModFortitude = 1.25
usr.ModReflex = 2
usr.ModStrength = 1
usr.ModDefence = 1.5
usr.ModForceMastery = 1.5
usr.ModForce = 1.3
usr.RegenHealth = 2
usr.RegenForce = 1.25
if("Miraluka")
usr.Race="Miraluka"
usr.ModIntel = 3
usr.ModFortitude = 3
usr.ModReflex = 1.3
usr.ModStrength = 0.5
usr.ModDefence = 1.3
usr.ModForceMastery = 3
usr.ModForce = 3
usr.RegenHealth = 1
usr.RegenForce = 2
usr.ForceSensitive=1
if("Nagai")
usr.Race="Nagai"
usr.ModIntel = 1.1
usr.ModFortitude = 1.3
usr.ModReflex = 2
usr.ModStrength = 0.7
usr.ModDefence = 1.3
usr.ModForceMastery = 1.25
usr.ModForce = 1.2
usr.RegenHealth = 1.25
if("Nautolan")
usr.Race="Nautolan"
usr.ModIntel = 1.5
usr.ModFortitude = 2
usr.ModReflex = 1.5
usr.ModStrength = 1.25
usr.ModDefence = 0.7
usr.ModForceMastery = 1.75
usr.ModForce = 1.5
usr.RegenHealth = 1.25
usr.RegenForce = 1.5
if("Rodian")
usr.Race="Rodian"
usr.ModIntel = 1.5
usr.ModFortitude = 1
usr.ModReflex = 1.5
usr.ModStrength = 1
usr.ModDefence = 1
usr.ModForceMastery = 1
usr.ModForce = 1.1
usr.RegenHealth = 1.5
usr.RegenForce = 1
if("Sith")
usr.Race="Sith"
usr.ModIntel = 2
usr.ModFortitude = 4
usr.ModReflex = 1.5
usr.ModStrength = 2
usr.ModDefence = 0.8
usr.ModForceMastery = 2
usr.ModForce = 1.5
usr.RegenHealth = 2
usr.RegenForce = 1.5
usr.ForceSensitive=1
if("Sephi")
usr.Race="Sephi"
usr.ModIntel = 2.5
usr.ModFortitude = 2
usr.ModReflex = 1.2
usr.ModStrength = 0.8
usr.ModDefence = 0.75
usr.ModForceMastery = 1.5
usr.ModForce = 1.7
usr.RegenHealth = 1
usr.RegenForce = 1.2
if("Twi'lek")
usr.Race="Twi'lek"
usr.ModIntel = 1.4
usr.ModFortitude = 1.2
usr.ModReflex = 1.5
usr.ModStrength = 1
usr.ModDefence = 1
usr.ModForce = 1.25
usr.RegenHealth = 1.5
if("Ubese")
usr.Race="Ubese"
usr.ModIntel = 0.5
usr.ModFortitude = 0.5
usr.ModReflex = 1.5
usr.ModStrength = 2
usr.ModDefence = 0.8
usr.ModForceMastery = 0.7
usr.ModForce = 0.8
usr.RegenHealth = 2.5
if("Wookie")
usr.Race="Wookie"
usr.ModIntel = 0.7
usr.ModFortitude = 1
usr.ModReflex = 0.7
usr.ModStrength = 3
usr.ModDefence = 2
usr.ModForceMastery = 0.7
usr.ModForce = 0.8
usr.RegenHealth = 1.75
if("Zabrak")
usr.Race="Zabrak"
usr.ModIntel = 1.25
usr.ModFortitude = 1.25
usr.ModReflex = 2
usr.ModStrength = 1.25
usr.ModDefence = 0.8
usr.ModForceMastery = 1
usr.ModForce = 1.5
usr.RegenHealth = 1.25
usr.RegenForce = 1.25
usr.overlays += 'ZabrakHorns.dmi'
Skin
density=1
Click()
switch(input("Please choose your characters gender") in list ("Male","Female"))
if("Male")
if(usr.Race=="Twi'lek")
switch(input("Please choose your characters skin tone") in list ("Blue","Green","Grey","Red","Tan","Yellow"))
if("Blue")
usr.icon='Base_TwilekBlue.dmi'
usr.oicon='Base_TwilekBlue.dmi'
if("Green")
usr.icon='Base_TwilekGreen.dmi'
usr.icon='Base_TwilekGreen.dmi'
if("Grey")
usr.icon='Base_TwilekGrey.dmi'
usr.oicon='Base_TwilekGrey.dmi'
if("Red")
usr.icon='Base_TwilekRed.dmi'
usr.oicon='Base_TwilekRed.dmi'
if("Tan")
usr.icon='Base_TwilekTan.dmi'
usr.oicon='Base_TwilekTan.dmi'
if("Yellow")
usr.icon='Base_TwilekYellow.dmi'
usr.oicon='Base_TwilekYellow.dmi'
if(usr.Race=="Human"|usr.Race=="Ubese"|usr.Race=="Zabrak"|usr.Race=="Miraluka"|usr.Race=="Sephi"|usr.Race=="Arkanian")
switch(input("Please choose your characters skin tone") in list ("Black","Tan","White"))
if("Black")
usr.icon='Base_MaleBlack.dmi'
usr.oicon='Base_MaleBlack.dmi'
if("Tan")
usr.icon='Base_MaleTan.dmi'
usr.oicon='Base_MaleTan.dmi'
if("White")
usr.icon='Base_MaleWhite.dmi'
usr.oicon='Base_MaleWhite.dmi'
if(usr.Race=="Nagai")
usr.icon='Base_MaleUmbaran.dmi'
usr.oicon='Base_MaleUmbaran.dmi'
if(usr.Race=="Chiss")
usr.icon='Base_MaleChiss.dmi'
usr.oicon='Base_MaleChiss.dmi'
if(usr.Race=="Nautolan")
usr.icon='Base_Nautolan.dmi'
usr.oicon='Base_Nautolan.dmi'
if(usr.Race=="Sith")
usr.icon='Base_MaleSith.dmi'
usr.oicon='Base_MaleSith.dmi'
if(usr.Race=="Rodian")
usr.icon='Base_Rodian.dmi'
usr.oicon='Base_Rodian.dmi'
if(usr.Race=="Kel Dor")
usr.icon='Base_KelDor.dmi'
usr.oicon='Base_KelDor.dmi'
if(usr.Race=="Wookie")
usr.icon='Base_Wookie.dmi'
usr.oicon='Base_Wookie.dmi'
if("Female")
if(usr.Race=="Twi'lek")
switch(input("Please choose your characters skin tone") in list ("Blue","Green","Grey","Red","Tan","Yellow"))
if("Blue")
usr.icon='Base_FemaleTwilekBlue.dmi'
usr.oicon='Base_FemaleTwilekBlue.dmi'
if("Green")
usr.icon='Base_FemaleTwilekGreen.dmi'
usr.icon='Base_FemaleTwilekGreen.dmi'
if("Grey")
usr.icon='Base_FemaleTwilekGrey.dmi'
usr.oicon='Base_FemaleTwilekGrey.dmi'
if("Red")
usr.icon='Base_FemaleTwilekRed.dmi'
usr.oicon='Base_FemaleTwilekRed.dmi'
if("Tan")
usr.icon='Base_FemaleTwilekTan.dmi'
usr.oicon='Base_FemaleTwilekTan.dmi'
if("Yellow")
usr.icon='Base_FemaleTwilekYellow.dmi'
usr.oicon='Base_FemaleTwilekYellow.dmi'
if(usr.Race=="Human"|usr.Race=="Ubese"|usr.Race=="Zabrak"|usr.Race=="Miraluka"|usr.Race=="Sephi"|usr.Race=="Arkanian")
switch(input("Please choose your characters skin tone") in list ("Black","Tan","White"))
if("Black")
usr.icon='Base_femaleBlack.dmi'
usr.oicon='Base_femaleBlack.dmi'
if("Tan")
usr.icon='Base_femaleTan.dmi'
usr.oicon='Base_femaleTan.dmi'
if("White")
usr.icon='Base_femaleWhite.dmi'
usr.oicon='Base_femaleWhite.dmi'
if(usr.Race=="Nagai")
usr.icon='Base_femaleUmbaran.dmi'
usr.oicon='Base_femaleUmbaran.dmi'
if(usr.Race=="Chiss")
usr.icon='Base_femaleChiss.dmi'
usr.oicon='Base_femaleChiss.dmi'
if(usr.Race=="Nautolan")
usr.icon='Base_femaleNautolan.dmi'
usr.oicon='Base_femaleNautolan.dmi'
if(usr.Race=="Rodian")
usr.icon='Base_FemaleRodian.dmi'
usr.oicon='Base_FemaleRodian.dmi'
if(usr.Race=="Sith")
usr.icon='Base_femaleSith.dmi'
usr.oicon='Base_femaleSith.dmi'
if(usr.Race=="Wookie")
usr.icon='Base_Wookie.dmi'
usr.oicon='Base_Wookie.dmi'
Hair
density=1
Click()
usr.Hair()
Occupation
density=1
Click()
var/list/A=new/list
A.Add("Assassin")
A.Add("Bounty Hunter")
A.Add("Diplomat")
A.Add("Doctor")
A.Add("Mercenary")
A.Add("Smuggler")
A.Add("Pirate")
A.Add("Slicer")
A.Add("Smuggler")
A.Add("Trader")
A.Add("Pirate")
A.Add("Worker")
A.Add("Spacer")
A.Add("None")
switch(input("Please choose your characters profession \n(This can be changed in game)") in A)
if("Assassin")
usr.Occ = "Assassin"
if("Bounty Hunter")
usr.Occ = "Bounty Hunter"
if("Mercenary")
usr.Occ = "Mercenary"
if("Doctor")
switch(input("What would you like to specialise in") in list ("Medicine","Cybernetics","Engineer","Unspecialised"))
if("Medicine")
usr.Occ = "Medical Doctor"
if("Cybernetics")
usr.Occ = "Cyberneticist"
if("Engineer")
usr.Occ = "Engineer"
if("Unspecialised")
usr.Occ = "Doctor"
if("Smuggler")
usr.Occ = "Smuggler"
if("Spacer")
usr.Occ = "Spacer"
if("Diplomat")
usr.Occ = "Diplomat"
if("Trader")
usr.Occ = "Trader"
if("Slicer")
usr.Occ = "Slicer"
if("Pirate")
usr.Occ = "Pirate"
if("Worker")
usr.Occ = "Worker"
if("None")
usr.Occ = "Unemployed"
Home
density=1
Click()
switch(input("Please choose your home planet") in list ("Dantooine","Csilla","Hoth","Korriban","Naboo","Tatooine","Space","Kashyyyk","Coruscant",))
if("Dantooine")
usr.Home = "Dantooine"
if("Csilla")
usr.Home = "Csilla"
if("Hoth")
usr.Home = "Hoth"
if("Korriban")
usr.Home = "Korriban"
if("Naboo")
usr.Home = "Naboo"
if("Tatooine")
usr.Home = "Tatooine"
if("Space")
usr.Home = "Space"
if("Kashyyyk")
usr.Home = "Kashyyyk"
if("Coruscant")
usr.Home = "Coruscant"
Begin
density=1
Click()
if(usr.Race==""|usr.Home==""|usr.Occ==""|usr.icon==null|usr.name==usr.key)
return
else
world << "<font color=silver>Server Information:[usr] has begun their adventure!"
if(usr.Home=="Naboo")
usr.loc = locate(85,376,2)
if(usr.Home=="Dantooine")
usr.loc = locate(280,385,5)
if(usr.Home=="Hoth")
usr.loc = locate(80,245,6)
if(usr.Home=="Korriban")
usr.loc = locate(80,126,4)
if(usr.Home=="Tatooine")
usr.loc = locate(250,220,15)
if(usr.Home=="Csilla")
usr.loc = locate(250,220,15)
if(usr.Home=="Space")
usr.loc = locate(250,220,15)
if(usr.Home=="Kashyyyk")
usr.loc = locate(60,450,3)
if(usr.Home=="Coruscant")
usr.loc = locate(332,427,7)
usr.credit = rand(500,1000)
usr.Savable=1
usr.verbs += /mob/Group/verb/Start_Group
usr.suffix = "Status: Concious"
usr.Dest.Add("Naboo")
usr.Dest.Add("Korriban")
usr.Dest.Add("Hoth")
usr.Dest.Add("Dantooine")
usr.Dest.Add("Kashyyyk")
usr.Dest.Add("Coruscant")
usr.Dest.Add("Cancel")
usr.Regenerate()
usr.AutoSave()
Problem description:
I have added the button (turfs) so when you Click them it takes you somewere else or lets you put your name, but when i click them nothing happens