SHARE
TWEET

Flash Green During Status Effect

ZoriaRPG Jan 17th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top