daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mob/proc
  2.  
  3.     char_create()
  4.         while(src)
  5.             var/NL = input("Character Screen") in list("New", "Load", "Delete")
  6.             if(NL == "New")
  7.                 Race = input("Select a race") in list("Human", "Unknown")
  8.                 Size = input("Select a size") in list("Large", "Medium", "Small")
  9.                 gender = lowertext(input("Select a Gender") in list("Male", "Female"))
  10.                 var/classPath = text2path("/ClassData/[Race]/[Size]") // Create type path based on race and size
  11.                 var/ClassData/data = new classPath() // Create an instance of the type path
  12.                 for(var/varName in data.vars) // For each variable defined in class data
  13.                     if(issaved(data.vars[varName]))
  14.                         vars[varName] = data.vars[varName] // Copy over the value to src
  15.                 var/naming = 1
  16.                 while(naming)
  17.                     name = input("Give yourself a name") as text
  18.                     if(name == "")
  19.                         continue
  20.                     naming = 0
  21.                 real_name = name
  22.                 Birthday = C_Date
  23.                 loc = locate(100,100,1)
  24.                 hascreated = 1
  25.                 add_bparts()
  26.                 save_proc()
  27.                 world << "[key] has created a character."
  28.                 return
  29.  
  30.             else if(NL == "Load" && load_proc())
  31.                 if(Attacking)
  32.                     sleep(20/SpdMod)
  33.                     Attacking = 0
  34.                 return
  35.  
  36.             else if(NL == "Delete")
  37.                 DeleteProc()
  38.  
  39.     add_bparts()
  40.         Head = new /obj/BodyParts/Head(src)
  41.         Torso = new /obj/BodyParts/Torso(src)
  42.         RightArm = new /obj/BodyParts/Right_Arm(src)
  43.         LeftArm = new /obj/BodyParts/Left_Arm(src)
  44.         RightLeg = new /obj/BodyParts/Right_Leg(src)
  45.         LeftLeg = new /obj/BodyParts/Left_Leg(src)
  46.  
  47.     hud_bparts()
  48.         client.screen += Head
  49.         client.screen += Torso
  50.         client.screen += RightArm
  51.         client.screen += LeftArm
  52.         client.screen += RightLeg
  53.         client.screen += LeftLeg
  54.  
  55.  
  56. mob
  57.     New()
  58.         ..()
  59.         if(!client)
  60.             add_bparts()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top