Hello, today I'm trying to make a 'gun' script. But it seems not work properly. Can someone give suggestion to this script work?
×
Each use ready, set, go!
Go to ?useless label?
Label ready, set, go!
Set var "_Explosion" = 50
If ...
Wait until var "AmmoInRevolver" = 0
Go to reload
If End
Go to shoot & direction
Label shoot & direction
Set var "AmmoInRevolver" - 1
If ...
Wait for player to face northwest
Set var "DirectionX" = -1
Set var "DirectionY" = -1
If End
If ...
Wait for player to face North
Set var "DirectionX" = 0
Set var "DirectionY" = -1
If End
If ...
Wait for player to face northeast
Set var "DirectionX" = 1
Set var "DirectionY" = -1
If End
If ...
Wait for player to face West
Set var "DirectionX" = -1
Set var "DirectionY" = 0
If End
If ...
Wait for player to face East
Set var "DirectionX" = 1
Set var "DirectionY" = 0
If End
If ...
Wait for player to face southwest
Set var "DirectionX" = -1
Set var "DirectionY" = 1
If End
If ...
Wait for player to face South
Set var "DirectionX" = 0
Set var "DirectionY" = 1
If End
If ...
Wait for player to face southeast
Set var "DirectionX" = 1
Set var "DirectionY" = 1
If End
Set var "_MyScriptX" = _X
Set var "_MyScriptY" = _Y
Go to trace of shoot
Label trace of shoot
Set var "_MyScriptX" + DirectionX
Set var "_MyScriptY" + DirectionY
If ...
Wait for entity 0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Bomb,0,0,0,0
Build Explosion,0,0,0,0
Set var "_Explosion" = 100
Go to !RESET!
If End
If ...
Wait for item Mirror,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Obstacle,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Greckle gate,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Tar gate,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Trapdoor gate,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Blue door,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Green door,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Yellow door,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
If ...
Wait for item Wall,0,0,0,0
Build Explosion,0,0,0,0
Go to !RESET!
If End
Go to !RESET!
Label reload
Speech "*click*",Normal,Player,0,.
Wait 0
Speech "1 / 6",Normal,Player,0,.
Wait 0
Flush Speech Off
Speech "2 / 6",Normal,Player,0,.
Wait 0
Flush Speech Off
Speech "3 / 6",Normal,Player,0,.
Wait 0
Flush Speech Off
Speech "4 / 6",Normal,Player,0,.
Wait 0
Flush Speech Off
Speech "5 / 6",Normal,Player,0,.
Wait 0
Flush Speech Off
Speech "6 / 6",Normal,Player,0,.
Wait 0
Flush Speech Off
Speech "*click*",Normal,Player,0,.
Wait 0
Flush Speech Off
Set var "AmmoInRevolver" = 6
Set var "AmmoRevolver" - 6
Go to !RESET!
Label !RESET!
Set var "_Explosion" = 100
Set var "_MyScriptX" = -9999
Set var "_MyScriptY" = -9999
Wait 0
Label ?useless label?