Class: Game_Party

Inherits:
Object show all
Defined in:
docs/00600_Script_RMXP.rb

Overview

The RPG Maker description of a Party

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGame_Party

Default initialization



289
290
# File 'docs/00600_Script_RMXP.rb', line 289

def initialize
end

Instance Attribute Details

#actors (readonly)

Returns the value of attribute actors.



285
286
287
# File 'docs/00600_Script_RMXP.rb', line 285

def actors
  @actors
end

#gold

Returns the value of attribute gold.



286
287
288
# File 'docs/00600_Script_RMXP.rb', line 286

def gold
  @gold
end

#steps

Returns the value of attribute steps.



287
288
289
# File 'docs/00600_Script_RMXP.rb', line 287

def steps
  @steps
end

Instance Method Details

#add_actor(actor_id)

Add an actor to the party

Parameters:

  • actor_id (Integer)

    the id of the actor in the database



303
304
# File 'docs/00600_Script_RMXP.rb', line 303

def add_actor(actor_id)
end

#gain_gold(n)

gives gold to the party

Parameters:

  • n (Integer)

    amount of gold



311
312
# File 'docs/00600_Script_RMXP.rb', line 311

def gain_gold(n)
end

#increase_steps

Increase steps of the party



318
319
# File 'docs/00600_Script_RMXP.rb', line 318

def increase_steps
end

#lose_gold(n)

takes gold from the party

Parameters:

  • n (Integer)

    amount of gold



315
316
# File 'docs/00600_Script_RMXP.rb', line 315

def lose_gold(n)
end

#max_levelInteger

Returns the max level in the team

Returns:

  • (Integer)

    0 if no actors



299
300
# File 'docs/00600_Script_RMXP.rb', line 299

def max_level
end

#refresh

Refresh the game party with right actors according to the RMXP data



295
296
# File 'docs/00600_Script_RMXP.rb', line 295

def refresh
end

#remove_actor(actor_id)

Remove an actor of the party

Parameters:

  • actor_id (Integer)

    the id of the actor in the database



307
308
# File 'docs/00600_Script_RMXP.rb', line 307

def remove_actor(actor_id)
end

#setup_starting_members

Set up the party with default members



292
293
# File 'docs/00600_Script_RMXP.rb', line 292

def setup_starting_members
end