Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //weather powers - This will control the execution of skills
  2. switch (skill)
  3. {
  4.     case skills.none:
  5.     break;
  6.    
  7.    
  8. case skills.rain:
  9. //rainpower
  10.     if (key_attack1) and hsp == 0 and onground
  11.     {
  12.         if !instance_exists(o_cloud)
  13.         {
  14.             if !image_index = 0 {image_index = 0}
  15.             state = states.rainprayer
  16.     }
  17. }; break;
  18.  
  19. case skills.wind:
  20. //wind power
  21. if (key_attack1) and hsp == 0 and onground
  22.         {
  23.             if !image_index = 0 {image_index = 0}
  24.             state = states.windprayer
  25.         }; break;
  26.        
  27. case skills.shock:
  28. //shock power
  29. if (key_attack3) and hsp == 0 and onground
  30.         {
  31.             if !image_index = 0 {image_index = 0}
  32.             state = states.shockattack
  33.         }; break;
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement