All actors script call?

Marioman13

Imaginationer
Veteran
Joined
Jan 3, 2015
Messages
41
Reaction score
6
First Language
English
Primarily Uses
I know that there is a script call to obtain all items:

$data_items.each { |i|

next if i.nil? or i.name == ""

$game_party.gain_item(i, 1000)

}

 

Is there a script call to add all actors?
 

Hollow

(◡‿◡✿)
Veteran
Joined
Jul 14, 2012
Messages
519
Reaction score
439
First Language
English
Primarily Uses
RMMV
for actor in $data_actors
  next if actor.nil?


  $game_party.add_actor(actor.id)


end

^That should do it.
 
Last edited by a moderator:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,959
First Language
English
Primarily Uses
RMMV
Or you could do $data_actors.compact.each { |actor| $game_party.add_actor(actor.id) }
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top