So playing around with some stuff, and I came across this:
module RPG
class Troop
def initialize
@id = 0
@name = ""
@members = []
@pages = [RPG::BattleEventPage.new]
end
attr_accessor :id
attr_accessor :name
attr_accessor :members
attr_accessor :pages
end
end
Trouble is that there is nothing in the documentation for the structure of the RPG::BattleEventPage.new
Whats up with that?
It's another one of the help file's mistakes. You can easily confirm this by trying
and get
uninitialized constant RPG::BattleEventPage
If you then try to do
You'll see
@pages=[#<RPG::Troop::Page ... >]
The text in the RPG::Troop documentation in the help file is correct.
Quotepages
Battle events. An RPG::Troop::Page array.
Though I never really realized this until just now and saw that XPA has this incorrect class definition in its scripts.