Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffc script Justin888_Bomb_example
- {
- void run()
- {
- while(1)
- {
- //if at DMap 2
- if ( Game->GetCurDMap() == 2 )
- {
- //and at Screen 16
- if ( Game->GetCurScreen() == 0x02 )
- {
- //and if blue bomb is item that is treated as B button to use
- if ( GetEquipmentB() == I_BOMB )
- {
- //and if treated as B button is pressed
- if ( Link->PressB )
- {
- //and if blue bomb is at x and y 17
- for ( int q = Screen->NumLWeapons(); q > 0; --q )
- {
- lweapon l = Screen->LoadLWeapon(q);
- if ( l->ID == LW_BOMB )
- {
- if ( l->X == 17 && l->Y == 17 )
- {
- //Rupees go up by 1 gradually 158 times?
- Game->DCounter[CR_RUPEES] += 158;
- }
- }
- }
- }
- }
- }
- }
- Waitframe();
- } //end infinite loop
- } //end run()
- } //end script
- ffc script Justin888_Hokshot_example
- {
- void run()
- {
- while(1)
- {
- //if at DMap 17
- if ( Game->GetCurDMap() == 17 )
- {
- //and at Screen 9
- if ( Game->GetCurScreen() == 0x09 )
- {
- //and if longshot is on item A
- if ( GetEquipmentA() == I_HOOKSHOT2 )
- {
- //and if treated as B button is pressed
- if ( Link->PressA )
- {
- //Rupees go up by 1 gradually 216 times?
- Game->DCounter[CR_RUPEES] += 216;
- }
- }
- }
- }
- Waitframe();
- } //end infinite loop
- } //end run()
- } //end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement