Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Swap Screen SideWarp A/B if Link->X < n
- //Requested by: BigJoe
- //By: ZoriaRPG
- //v0.1 - 3rd March, 2019
- ffc script SwapSideWarpAB
- {
- void run(imt x_string)
- {
- int swap[6];
- swap[0] = Screen->GetSideWarpScreen[0];
- swap[1] = Screen->GetSideWarpScreen[1];
- swap[2] = Screen->GetSideWarpDMap[0];
- swap[3] = Screen->GetSideWarpDMap[1];
- swap[4] = Screen->GetSideWarpTyoe[0];
- swap[5] = Screen->GetSideWarpType[1];
- while(1)
- {
- if ( Link->X < x_string )
- {
- Screen->SetSideWarp(0, swap[1], swap[3], swap[5]);
- Screen->SetSideWarp(1, swap[0], swap[2], swap[4]);
- }
- else
- {
- Screen->SetSideWarp(0, swap[0], swap[2], swap[4]);
- Screen->SetSideWarp(1, swap[1], swap[3], swap[5]);
- }
- Waitframe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement