ZoriaRPG

FFC to Disable Sidewarps on Triggering a Secret Combo

Oct 6th, 2018
159
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. ffc script cancelsidewarp
  4. {
  5.     void run(int combo_id, int dir)
  6.     {
  7.         while(1)
  8.         {
  9.             for ( int q = 0; q < 176; ++q )
  10.             {
  11.                 if ( Screen->ComboD[q] == combo_id )
  12.                 {
  13.                     Screen->SetSideWarp(dir, Screen->GetCurScreen(), Screen->GetCurDMap(), WT_NOWARP);
  14.                     this->Data = 0; Quit();
  15.                 }
  16.             }
  17.             Waitframe();
  18.         }
  19.     }
  20. }
  21.  
  22.  
  23.  
  24. ffc script cancelsidewarps
  25. {
  26.     void run(int combo_id, int num, bool sidewarp_a, bool sidewarp_b, bool sidewarp_c, bool sidewarp_d)
  27.     {
  28.         while(1)
  29.         {
  30.             for ( int q = 0; q < 176; ++q )
  31.             {
  32.                 if ( Screen->ComboD[q] == combo_id )
  33.                 {
  34.                     if ( sidewarp_a )
  35.                         Screen->SetSideWarp(0, Screen->GetCurScreen(), Screen->GetCurDMap(), WT_NOWARP);
  36.                     if ( sidewarp_b )
  37.                         Screen->SetSideWarp(1, Screen->GetCurScreen(), Screen->GetCurDMap(), WT_NOWARP);
  38.                     if ( sidewarp_c )
  39.                         Screen->SetSideWarp(2, Screen->GetCurScreen(), Screen->GetCurDMap(), WT_NOWARP);
  40.                     if ( sidewarp_d )
  41.                         Screen->SetSideWarp(3, Screen->GetCurScreen(), Screen->GetCurDMap(), WT_NOWARP);
  42.                     this->Data = 0; Quit();
  43.                 }
  44.             }
  45.             Waitframe();
  46.         }
  47.     }
  48. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×