Advertisement
LiTTleDRAgo

[RGSS2/3] Longer Script Calls

Aug 8th, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.01 KB | None | 0 0
  1. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
  2. # [Vx/VxA] Longer Script Call
  3. # Version: 1.00
  4. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
  5. #==============================================================================
  6. # ** Game_Interpreter
  7. #------------------------------------------------------------------------------
  8. #  An interpreter for executing event commands. This class is used within the
  9. # Game_Map, Game_Troop, and Game_Event classes.
  10. #==============================================================================
  11. class Game_Interpreter
  12.   #-------------------------------------------------------------------
  13.   # * Script
  14.   #-------------------------------------------------------------------
  15.   def command_355
  16.     script = @list[index = @index].parameters[0] + "\n"
  17.     while [655, 355].include?(@list[@index + 1].code) do
  18.       script += @list[@index += 1].parameters[0] + "\n"
  19.     end
  20.     eval(script).nil? || true
  21.   end  
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement