Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- damage=random_range(50,300)
- if sheld1 = true{
- if sheld>0{
- sheld-=damage/5
- global.hp-=damage/5*4
- }
- if sheld=0
- {
- global.hp-=damage
- }
- }
- if sheld = false{global.hp-=damage}
- if sheld2 = true{
- if sheld>0{
- sheld-=damage/5*2
- global.hp-=damage/5*3
- }
- if sheld=0
- {
- global.hp-=damage
- }
- }
- if sheld = false{global.hp-=damage}
- if sheld3 = true{
- if sheld>0{
- sheld-=damage/5*3
- global.hp-=damage/5*2
- }
- if sheld=0
- {
- global.hp-=damage
- }
- }
- if sheld = false{global.hp-=damage}
- if sheld4 = true{
- if sheld>0{
- sheld-=damage/5*4
- global.hp-=damage/5
- }
- if sheld=0
- {
- global.hp-=damage
- }
- }
- if sheld = false{global.hp-=damage}
- instance_destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement