Added scripts
This commit is contained in:
parent
d40ae86ba4
commit
5118df09f4
106 changed files with 15680 additions and 0 deletions
28
scripts/Game_Actors.rb
Normal file
28
scripts/Game_Actors.rb
Normal file
|
@ -0,0 +1,28 @@
|
|||
#==============================================================================
|
||||
# ** Game_Actors
|
||||
#------------------------------------------------------------------------------
|
||||
# This class handles the actor array. Refer to "$game_actors" for each
|
||||
# instance of this class.
|
||||
#==============================================================================
|
||||
|
||||
class Game_Actors
|
||||
#--------------------------------------------------------------------------
|
||||
# * Object Initialization
|
||||
#--------------------------------------------------------------------------
|
||||
def initialize
|
||||
@data = []
|
||||
end
|
||||
#--------------------------------------------------------------------------
|
||||
# * Get Actor
|
||||
# actor_id : actor ID
|
||||
#--------------------------------------------------------------------------
|
||||
def [](actor_id)
|
||||
if actor_id > 999 or $data_actors[actor_id] == nil
|
||||
return nil
|
||||
end
|
||||
if @data[actor_id] == nil
|
||||
@data[actor_id] = Game_Actor.new(actor_id)
|
||||
end
|
||||
return @data[actor_id]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue