Coolgamer012345

Untitled

May 11th, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. ffc script Signpost{
  2. void run(int m,int input,int ItemToGive){
  3. int loc = ComboAt(this->X,this->Y);
  4. while(true){
  5. while(!AgainstComboBase(loc) || !SelectPressInput(input)) Waitframe();
  6. SetInput(input,false);
  7. Screen->Message(m);
  8. Link->Item[ItemToGive] = true;
  9. Waitframe();
  10. }
  11. }
  12. bool AgainstComboBase(int loc){
  13. return Link->Z == 0 && (Link->Dir == DIR_UP && Link->Y == ComboY(loc)+8 && Abs(Link->X-ComboX(loc)) < 8);
  14. }
  15. }
  16.  
  17. //!!These functions should only be included in your script file once!!
  18. bool SelectPressInput(int input){
  19. if(input == 0) return Link->PressA;
  20. else if(input == 1) return Link->PressB;
  21. else if(input == 2) return Link->PressL;
  22. else if(input == 3) return Link->PressR;
  23. }
  24. void SetInput(int input, bool state){
  25. if(input == 0) Link->InputA = state;
  26. else if(input == 1) Link->InputB = state;
  27. else if(input == 2) Link->InputL = state;
  28. else if(input == 3) Link->InputR = state;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment