Advertisement
ZoriaRPG

Flash Green During Status Effect

Jan 17th, 2020
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. import "std.zh"
  2.  
  3. const int FLASH_GREEN = 143;
  4.  
  5. hero script active
  6. {
  7.     void run()
  8.     {
  9.         int clk;
  10.         while(1)
  11.         {
  12.             if ( Hero->Action == LA_GOTHURTLAND && !clk )
  13.             {
  14.                 clk = 100;
  15.             }
  16.             if ( clk )
  17.             {
  18.                 --clk;
  19.                 Hero->Item[FLASH_GREEN] =( (clk % 4) ) ? true : false;
  20.             }
  21.             else Hero->Item[FLASH_GREEN] = false;
  22.             Waitframe();
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement