Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. obj
  2.     Clothing
  3.         Shirt
  4.             icon='NormalShirt.dmi'
  5.             verb
  6.                 Drop()
  7.                     src.loc=locate(usr.x,usr.y-1,usr.z)
  8.                 Get()
  9.                     set src in oview(1)
  10.                     src.loc = usr
  11.                     usr<<"You picked up [src]"
  12.                 Wear()
  13.                     usr.clothing = "Shirt"
  14.                     var/clothingred = input("How much red do you want to put into your clothing?") as num
  15.                     var/clothingblue = input("How much blue do you want to put into your clothing?") as num
  16.                     var/clothinggreen = input("How much green do you want to put into your clothing?") as num
  17.                     var/clothingover = 'NormalShirt.dmi'
  18.                     clothingover += rgb(clothingred,clothinggreen,clothingblue)
  19.                     usr.Oclothing = clothingover
  20.                     usr.clothing = usr.Oclothing
  21.                     usr.overlays += usr.clothing
  22.                 Remove()
  23.                     usr.overlays -= usr.clothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement