yojimbos_law

some effect printing alias for g lover (negatives)

Jun 3rd, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. > alias negeffects => ash float[effect] prebutts;float maximum_butts = 0.0;float buffer_butts = 0.0;foreach i in $effects[]{if(i.numeric_modifier($string[%%]) < 0 && i.to_lower_case().contains_text("g")){buffer_butts = i.numeric_modifier($string[%%]);prebutts[i] = i.numeric_modifier($string[%%]);if(buffer_butts > maximum_butts){maximum_butts = buffer_butts;}}}float[float] postbutts;foreach i in prebutts{postbutts[prebutts[i]] = prebutts[i];}foreach i,j in postbutts{foreach k in prebutts{if(prebutts[k] - j < 1 && prebutts[k] - j > -1){print(k+" gives "+prebutts[k]+" "+$string[%%]);}}}
  2.  
  3. String successfully aliased.
  4. negeffects => ash float[effect] prebutts;float maximum_butts = 0.0;float buffer_butts = 0.0;foreach i in $effects[]{if(i.numeric_modifier($string[%%]) < 0 && i.to_lower_case().contains_text("g")){buffer_butts = i.numeric_modifier($string[%%]);prebutts[i] = i.numeric_modifier($string[%%]);if(buffer_butts > maximum_butts){maximum_butts = buffer_butts;}}}float[float] postbutts;foreach i in prebutts{postbutts[prebutts[i]] = prebutts[i];}foreach i,j in postbutts{foreach k in prebutts{if(prebutts[k] - j < 1 && prebutts[k] - j > -1){print(k+" gives "+prebutts[k]+" "+$string[%%]);}}}
  5.  
  6. > negeffects combat rate
  7.  
  8. Song of Solitude gives -20.0 combat rate
  9. Throwing Some Shade gives -20.0 combat rate
  10. Mimeoflage gives -15.0 combat rate
  11. Predjudicetidigitation gives -10.0 combat rate
  12. Brooding gives -10.0 combat rate
  13. Driving Stealthily gives -10.0 combat rate
  14. Inky Camouflage gives -5.0 combat rate
  15. Silent Running gives -5.0 combat rate
  16. Celestial Camouflage gives -5.0 combat rate
  17. Scaredy Dog gives -5.0 combat rate
  18. Rational Thought gives -5.0 combat rate
  19. Gummed Shoes gives -5.0 combat rate
  20. Silence of the God Lobster gives -5.0 combat rate
  21. Returned: void
Advertisement
Add Comment
Please, Sign In to add comment