Advertisement
ZoriaRPG

Justin888_Requests

Mar 13th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.49 KB | None | 0 0
  1.  
  2. ffc script Justin888_Bomb_example
  3. {
  4.      void run()
  5.      {
  6.           while(1)
  7.           {
  8.                //if at DMap 2
  9.                if ( Game->GetCurDMap() == 2 )
  10.                {
  11.                     //and at Screen 16
  12.                     if ( Game->GetCurScreen() == 0x02 )
  13.                     {
  14.                          //and if blue bomb is item that is treated as B button to use
  15.                          if ( GetEquipmentB() == I_BOMB )
  16.                          {
  17.                               //and if treated as B button is pressed
  18.                               if ( Link->PressB )
  19.                               {
  20.                                    //and if blue bomb is at x and y 17
  21.                                    for ( int q = Screen->NumLWeapons(); q > 0; --q )
  22.                                    {
  23.                                         lweapon l = Screen->LoadLWeapon(q);
  24.                                         if ( l->ID == LW_BOMB )
  25.                                         {
  26.                                              if ( l->X == 17 && l->Y == 17 )
  27.                                              {
  28.                                                   //Rupees go up by 1 gradually 158 times?
  29.                                                   Game->DCounter[CR_RUPEES] += 158;
  30.                                              }
  31.                                         }
  32.                                    }
  33.                               }
  34.                          }
  35.                     }
  36.                }
  37.           Waitframe();
  38.           } //end infinite loop
  39.      } //end run()
  40. } //end script
  41.  
  42.  
  43. ffc script Justin888_Hokshot_example
  44. {
  45.      void run()
  46.      {
  47.           while(1)
  48.           {
  49.                //if at DMap 17
  50.                if ( Game->GetCurDMap() == 17 )
  51.                {
  52.                     //and at Screen 9
  53.                     if ( Game->GetCurScreen() == 0x09 )
  54.                     {
  55.                          //and if longshot is on item A
  56.                          if ( GetEquipmentA() == I_HOOKSHOT2 )
  57.                          {
  58.                               //and if treated as B button is pressed
  59.                               if ( Link->PressA )
  60.                               {
  61.                                    //Rupees go up by 1 gradually 216 times?
  62.                                    Game->DCounter[CR_RUPEES] += 216;
  63.                                }
  64.                          }
  65.                     }
  66.                }
  67.           Waitframe();
  68.           } //end infinite loop
  69.      } //end run()
  70. } //end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement