Advertisement
TerminusEst13

Beed Spooster

Mar 14th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. script METROID_SPEEDBOOSTER ENTER
  2. {
  3. int buttons;
  4. while (1)
  5. {
  6. buttons = GetPlayerInput(-1, INPUT_BUTTONS);
  7. if (CheckInventory("SpeedBoosterAcquired") == 1)
  8. {
  9. if (buttons & BT_SPEED && buttons & BT_FORWARD)
  10. {
  11. if (CheckInventory("SpeedBoostCounter") == 0) { ActivatorSound("speedboost/start",127); }
  12. GiveInventory("SpeedBoosterActive",1);
  13. GiveInventory("SpeedBoostCounter",1);
  14.  
  15. if (CheckInventory("SpeedBoostCounter") > 8)
  16. {
  17. ActivatorSound("speedboost/loop",127);
  18. GiveInventory("SpeedBooster",1);
  19. GiveInventory("SpeedBoosterFlashing",1);
  20. }
  21. }
  22. else
  23. {
  24. TakeInventory("SpeedBooster",1);
  25. TakeInventory("SpeedBoosterActive",1);
  26. TakeInventory("SpeedBoostCounter",0x7FFFFFFF);
  27. }
  28. }
  29.  
  30. delay(9);
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement