Enlarge Map by 50x50.fscript 796 B

12345678910111213141516171819202122232425262728
  1. // FinalAlert2:YR Script file
  2. // Name: Enlarge map by 50x50
  3. // Written By: Matthias Wagner
  4. // Last Change: August 21, 2001
  5. // Be careful when editing scripts, they may cause damage to maps if used improperly
  6. Is("%Width%", ">", "150", "WidthTooLarge");
  7. Is("%Height%", ">", "150", "HeightTooLarge");
  8. Print("Script cannot resize map, because the map width is too large.","WidthTooLarge");
  9. Print("Script cannot resize map, because the map height is too large.","HeightTooLarge");
  10. Cancel("WidthTooLarge");
  11. Cancel("HeightTooLarge");
  12. SetVariable("NW", "%Width%");
  13. SetVariable("NH", "%Height%");
  14. SetVariable("X", "25");
  15. SetVariable("Y", "25");
  16. Add("NW", "50");
  17. Add("NH", "50");
  18. AskContinue("This script will resize the map from %Width%x%Height% to NWxNH. Continue?");
  19. Resize("X","Y","NW","NH");