Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. damage=random_range(50,300)
  2. if sheld1 = true{
  3. if sheld>0{
  4. sheld-=damage/5
  5. global.hp-=damage/5*4
  6. }
  7. if sheld=0
  8. {
  9. global.hp-=damage
  10. }
  11. }
  12. if sheld = false{global.hp-=damage}
  13.  
  14. if sheld2 = true{
  15. if sheld>0{
  16. sheld-=damage/5*2
  17. global.hp-=damage/5*3
  18. }
  19. if sheld=0
  20. {
  21. global.hp-=damage
  22. }
  23. }
  24. if sheld = false{global.hp-=damage}
  25.  
  26. if sheld3 = true{
  27. if sheld>0{
  28. sheld-=damage/5*3
  29. global.hp-=damage/5*2
  30. }
  31. if sheld=0
  32. {
  33. global.hp-=damage
  34. }
  35. }
  36. if sheld = false{global.hp-=damage}
  37.  
  38. if sheld4 = true{
  39. if sheld>0{
  40. sheld-=damage/5*4
  41. global.hp-=damage/5
  42. }
  43. if sheld=0
  44. {
  45. global.hp-=damage
  46. }
  47. }
  48. if sheld = false{global.hp-=damage}
  49.  
  50.  
  51.  
  52. instance_destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement