Advertisement
dsiver144

Yanfly Victory Aftermath - Change Quotes Set via Script Call

Aug 8th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #===============================================================================
  2. # Add-on: Yanfly Victory Aftermath - Change Quotes Set via Script Call
  3. # dsiver144
  4. # How to use:
  5. # + replace_quotes_set(actor_id, quote_type, quote_str1, quote_str2, ... )
  6. # - Example:
  7. # replace_quotes_set(23, :win, "I can talk now and we've just won the battle!", "We won!")
  8. # replace_quotes_set(23, :level, "I can talk now and I've just leveled up!", "Power's up!", "Now I'm the most powerful cat in the world!")
  9. # replace_quotes_set(23, :drops, "I can talk now and I've just found something!")
  10. class Game_Interpreter
  11. #----------------------------------------------------------------------------
  12. # * new method: replace_quotes_set
  13. # by dsiver144
  14. # Purpose: Replace the old quotes set with new quotes set.
  15. #----------------------------------------------------------------------------
  16. def replace_quotes_set(actor_id,type,*quotes)
  17. case type
  18. when :win
  19. $game_actors[actor_id].actor.win_quotes = quotes
  20. when :level
  21. $game_actors[actor_id].actor.level_quotes = quotes
  22. when :drops
  23. $game_actors[actor_id].actor.drops_quotes = quotes
  24. end
  25. end
  26. end # Game_Interpreter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement