yojimbos_law

bucket spading (caldera version).ash

Oct 26th, 2018
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. //autoattack should be free running from everything that isn't in the caldera,
  2. //killing everything in the caldera,
  3. //and aborting on special monsters.
  4.  
  5.  
  6. string[int][location] spading_combats ;
  7. file_to_map("yay_buckets.txt", spading_combats) ;
  8. int lights_out = total_turns_played()%37 ;
  9. int current_turn = turns_played() ;
  10. int boop = 0;
  11.  
  12. print("hippies dead: "+get_property("hippiesDefeated"));
  13. while( current_turn == turns_played() & boop < 5){
  14. if(have_effect($effect[Drenched in Lava]) == 0){
  15. adv1($location[The Bubblin' Caldera],0,"");
  16. }
  17. if(lights_out == 0){
  18. adv1($location[The Haunted Ballroom],0,"");
  19. }
  20. foreach i in $locations[ The Deep Dark Jungle, The Haunted Bedroom, Pandamonium Slums, The Battlefield (Frat Uniform), The Bubblin' Caldera] {
  21. adv1(i,0,"");
  22. if( i.get_location_monsters() contains last_monster() ){
  23. spading_combats[current_turn][i] = last_monster().manuel_name;
  24. boop += 1;
  25. }
  26. else{
  27. print(last_monster()+" isn\'t in "+i);
  28. //breaks on wieners, semi-rares, and demonNames among other things.
  29. map_to_file(spading_combats,"yay_buckets.txt");
  30. abort("horrible data saved, yay!");
  31. }
  32. }
  33. }
  34. if(current_turn == turns_played()-1 & boop == 5){
  35. map_to_file(spading_combats,"yay_buckets.txt");
  36. }
  37.  
  38. //> ash string[int][location] spading_spading ; file_to_map("yay_buckets.txt", spading_spading); string blarg = ""; foreach i,j in spading_spading {blarg += spading_spading[i][j]+"~" ; } print(blarg);
Add Comment
Please, Sign In to add comment