RPG Maker Forums

In my text game version, I had a journal, which took notes from scenes, such as battles and information about what skills did. So I looked at some tutorials and got help from @Rikifive

it requires an extra end I can't figure out why.

 


class Journal
def initialize
@journal = Window_Base.new(0,0,300,300)
@page = 1
@log = []
write_log
end
def write_log
log[1] = "Page 1:
Page 2-362: Scenes
Page 363-375: Skills"
end

def refresh
case @page
when 1
draw_text(0, 0, 100, 24, log[1])
when 2
draw_text(0, 0, 100, 24, "This is page 2")
#etc....
end
end
def update
if Input.trigger?:)LEFT) && @page > 1
@page -= 1
refresh
elsif Input.trigger?:)RIGHT) && @page < 17 #(for example having maximum of 17 pages)
@page += 1
refresh
end
end
end


how do I call it to test it? how would I store more data to @log? what do I need to do to this script?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top