Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1.  
  2.  
  3.  
  4. mob
  5. icon = 'person.dmi'
  6.  
  7. bug
  8. icon = 'bug.dmi'
  9.  
  10. Del()
  11. var/obj/gold/G = new(loc)
  12. G.amount = rand(1,100)
  13. ..()
  14.  
  15.  
  16.  
  17.  
  18. Login()
  19. icon_state = gender
  20. ..()
  21. world << "[usr] has joined the game"
  22.  
  23. proc
  24. DeathCheck()
  25. if (HP <= 0)
  26. world << "[src] dies!"
  27. world << "[usr] has killed a bug!"
  28. del(src)
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37. var
  38. HP = 30
  39. wealth
  40. tree
  41.  
  42.  
  43. verb
  44. attack(mob/M as mob in oview(1))
  45. if (M.HP <= 0)
  46. usr << "[M] is already dead!"
  47. else
  48. usr << "You attack [M]!"
  49. oview() << "[usr] attacks [M]!"
  50. var/damage = rand(1,10)
  51. world << "[damage] damage!"
  52. M.HP -= damage
  53. M.DeathCheck()
  54.  
  55.  
  56.  
  57. say(msg as text)
  58. world << "[usr]: [msg]"
  59.  
  60. check()
  61. usr << "You have [usr.wealth] of gold!"
  62.  
  63.  
  64.  
  65.  
  66.  
  67. obj
  68. gold
  69. icon = 'gold.dmi'
  70. var
  71. amount
  72. verb
  73. get()
  74. set src in view(1)
  75. usr << "You pick up [amount] gold"
  76. usr.wealth += amount
  77. del(src)
  78.  
  79.  
  80.  
  81. tree
  82. icon = 'tree.dmi'
  83. density = 1
  84.  
  85.  
  86. turf
  87. grass
  88. icon = 'grass.dmi'
  89.  
  90.  
  91. world
  92. turf = /turf/grass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement