Advertisement
Guest User

Location Randomizer

a guest
May 27th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. *location_randomizer
  2.  
  3. mov %hanyo1,0
  4.  
  5. ;templocation1
  6. if %pyramid>0 mov %hanyo1,%hanyo1+1:mov $templocation1,"Pyramid":skip 5
  7. if %portnatalia>1 mov %hanyo1,%hanyo1+1:mov $templocation1,"Natalia":skip 4
  8. if %undinesspring>0 mov %hanyo1,%hanyo1+1:mov $templocation1,"Spring":skip 3
  9. if %svillage>0 mov %hanyo1,%hanyo1+1:mov $templocation1,"SVillage":skip 2
  10. if %goldport>0 mov %hanyo1,%hanyo1+1:mov $templocation1,"Gold Port"
  11.  
  12. ;templocation2
  13. if %pyramid>0 && $templocation1!="Pyramid" mov %hanyo1,%hanyo1+1:mov $templocation2,"Pyramid":skip 5
  14. if %portnatalia>1 && $templocation1!="Natalia" mov %hanyo1,%hanyo1+1:mov $templocation2,"Natalia":skip 4
  15. if %undinesspring>0 && $templocation1!="Spring" mov %hanyo1,%hanyo1+1:mov $templocation2,"Spring":skip 3
  16. if %svillage>0 && $templocation1!="SVillage" mov %hanyo1,%hanyo1+1:mov $templocation2,"SVillage":skip 2
  17. if %goldport>0 && $templocation1!="Gold Port" mov %hanyo1,%hanyo1+1:mov $templocation2,"Gold Port"
  18.  
  19. ;templocation3
  20. if %pyramid>0 && $templocation1!="Pyramid" && $templocation2!="Pyramid" mov %hanyo1,%hanyo1+1:mov $templocation3,"Pyramid":skip 5
  21. if %portnatalia>1 && $templocation1!="Natalia" && $templocation2!="Natalia" mov %hanyo1,%hanyo1+1:mov $templocation3,"Natalia":skip 4
  22. if %undinesspring>0 && $templocation1!="Spring" && $templocation2!="Spring" mov %hanyo1,%hanyo1+1:mov $templocation3,"Spring":skip 3
  23. if %svillage>0 && $templocation1!="SVillage" && $templocation2!="SVillage" mov %hanyo1,%hanyo1+1:mov $templocation3,"SVillage":skip 2
  24. if %goldport>0 && $templocation1!="Gold Port" && $templocation2!="Gold Port" mov %hanyo1,%hanyo1+1:mov $templocation3,"Gold Port"
  25.  
  26. ;templocation4
  27. if %pyramid>0 && $templocation1!="Pyramid" && $templocation2!="Pyramid" && $templocation3!="Pyramid" mov %hanyo1,%hanyo1+1:mov $templocation4,"Pyramid":skip 5
  28. if %portnatalia>1 && $templocation1!="Natalia" && $templocation2!="Natalia" && $templocation3!="Natalia" mov %hanyo1,%hanyo1+1:mov $templocation4,"Natalia":skip 4
  29. if %undinesspring>0 && $templocation1!="Spring" && $templocation2!="Spring" && $templocation3!="Spring" mov %hanyo1,%hanyo1+1:mov $templocation4,"Spring":skip 3
  30. if %svillage>0 && $templocation1!="SVillage" && $templocation2!="SVillage" && $templocation3!="SVillage" mov %hanyo1,%hanyo1+1:mov $templocation4,"SVillage":skip 2
  31. if %goldport>0 && $templocation1!="Gold Port" && $templocation2!="Gold Port" && $templocation3!="Gold Port" mov %hanyo1,%hanyo1+1:mov $templocation4,"Gold Port"
  32.  
  33. ;templocation5
  34. if %pyramid>0 && $templocation1!="Pyramid" && $templocation2!="Pyramid" && $templocation3!="Pyramid" && $templocation4!="Pyramid" mov %hanyo1,%hanyo1+1:mov $templocation5,"Pyramid":skip 5
  35. if %portnatalia>1 && $templocation1!="Natalia" && $templocation2!="Natalia" && $templocation3!="Natalia" && $templocation4!="Natalia" mov %hanyo1,%hanyo1+1:mov $templocation5,"Natalia":skip 4
  36. if %undinesspring>0 && $templocation1!="Spring" && $templocation2!="Spring" && $templocation3!="Spring" && $templocation4!="Spring" mov %hanyo1,%hanyo1+1:mov $templocation5,"Spring":skip 3
  37. if %svillage>0 && $templocation1!="SVillage" && $templocation2!="SVillage" && $templocation3!="SVillage" && $templocation4!="SVillage" mov %hanyo1,%hanyo1+1:mov $templocation5,"SVillage":skip 2
  38. if %goldport>0 && $templocation1!="Gold Port" && $templocation2!="Gold Port" && $templocation3!="Gold Port" && $templocation4!="Gold Port" mov %hanyo1,%hanyo1+1:mov $templocation5,"Gold Port"
  39.  
  40. if %hanyo1<1 return
  41.  
  42. rnd2 %ransu,1,%hanyo1
  43. if %ransu=1 mov $Eventlocation,$templocation1:return
  44. if %ransu=2 mov $Eventlocation,$templocation2:return
  45. if %ransu=3 mov $Eventlocation,$templocation3:return
  46. if %ransu=4 mov $Eventlocation,$templocation4:return
  47. if %ransu=5 mov $Eventlocation,$templocation5:return
  48. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement