RETCON LIBRARY: JOURNAL

RPG Maker VX Ace

Adds journal-like functionality to your game

  • McDohl
  • 02/18/2013 06:31 PM
  • 21802 views
Latest version: 1.2

This script adds a journal to your game. It can be a quest log, personal memoir, or anything else you can fancy.

Define the text in the matrix in the script. Functions are defined to access during script calls to modify the journal as you see fit.

If there's other functionality you'd like to see, feel free to let me know.




Posts

Pages: first 12 next last
HELLO SIR, NICE SCRIPT, HOW DO I CALL THE JOURNAL SCENE?
I WAS TRYING TO CREATE A BUTTON THAT WILL SHOW THE JOURNAL
NOT ON THE MENU

Conditional branch if :Z is being pressed
Scene_Journal
branch end

But it doesn't show up
Is there a way to activate the script via common event? I'm using a custom menu, that's why.
Dunno if you still look at this thread, but I'm having trouble.

I've gone through like 20 journal scripts now, and at my wit's end. All I want is a nice, simple script which lets me say something like "I need some power" in a separate window - is that so hard?!

Anyway, I've just modified the example entry. At the start of the game, the journal is disabled. I can access the menu etc etc, it's all good. When the journal is activated, however, I always get the error:

Script "Game_Interpreter" line 1411: NoMethodError occurred.
undefined method "= " for nil:NilClass

Any help appreciated.
I'm not sure what I'm doing wrong here, every entry before 11 works, but when I collect entries 11+ I get this problem when I go to look at them.

is there a way to get rid of an entrie after an event?
Question before I start tinkering with this script...

Is it possible to add text to a given entry without re-writing the whole entry?

As in:
Player examines a book about subject A. gets fact X, fact X is recorded to journal page 1.
Player later talks to an NPC about subject A, gets fact Z, Fact Z is ADDED to the Journal on page 1 alongside fact X, without deleting fact X.
Hey sorry to bother you McDohl, but I was wondering if it is possible to add rewards for the quests along with icons for certain quests? Also how could I add a icon of the npc to show who to return the quest to?

I have gotten it to show a gold icon in the message box with this add in.
draws the journal window.

def create_journal_display
entry = ""
if @page.maxpage == 0
entry = RETCON::Journal::NoEntries
else
entry = $game_party.journal.to_str
draw_icon(361, 5, 119)

and the icon of one npc with

#the titlefixins
def update
super
@pagetitle.change_page
if (@pagetitle.changeit == true)
refresh
@pagetitle.changeit = false
end
end

def create_title
title = ""
if @pagetitle.maxpage == 0
title = RETCON::Journal::NoTitle

else
title = $game_party.journal.to_str
draw_icon(528, 15, 1)


but my problem is doing it this way causes those icons to show up on every quest page that I add and I can't change the npc icon or the icon for what rewards I want. Any suggestions?

Forgive the late replies, everyone. I've been busy with work and stuff.

author=RiketzKarlom
Is it possible to make multiple instances of this?
For example (and intended use), have one for a synopsis and one as a quest log?


Hrm. I haven't tried that, but it might be something to test out/look into. I imagine there's variable conflicts that come into play.

author=Pinkamena666
I have these Materials/Scripts and I'm not sure if it's the combo of Scripts or the order or what but the option to access this particular Script does not appear on the menu. Help?


If you're using a custom menu system, it might not play correctly. I suppose one thing I should look into is just how well it plays with others.

I can tell you though that it works with the default VX Ace engine though. Have you tried inserting it into a fresh game?

I have these Materials/Scripts and I'm not sure if it's the combo of Scripts or the order or what but the option to access this particular Script does not appear on the menu. Help?
Sorry to bother you, McDohl, but, it's possible to have the entry showed in the order the player unlock them unles in order I inscribed them?

EDIT

Ok I solved my problem.
I insert in an empty script:
M1 = "blablabla"
$pag = 0
than in a call script
RETCON::Journal::journal_activate($pag)
RETCON::Journal::modify_entry($pag,M1)
$pag += 1

It worked ^^
Is it possible to make multiple instances of this?
For example (and intended use), have one for a synopsis and one as a quest log?
Heya.

I'm fairly new to editing scripts, so I figured I'd ask on here.

Is there a way to make a page/entry selector menu with this script? I'd rather my players not have to cycle through pages of extraneous information, as I expect to be fairly note/lore heavy.
This is a brilliant script.

Is it possible to add a character portrait at the bottom? I'm hoping to use it like the note from Ancient Lands of YS.
author=Sergei
Unfortunately, no. Changing the X/YPos only changes the position of the title box itself, but not the text within. Since the window I have is 640, each journal title is off-center.


Oh, okay. Gotcha.

Line #369.

change_color(text_color(RETCON::Journal::TitleColor))

draw_text(0, 0, Graphics.width, line_height, title , 1)
change_color(normal_color)


The first two 0s in draw_text will affect the x and y position of the text. The 1 is alignment; set that to 0 for left align.

I can update the script to make those user-defined variables.
author=McDohl
author=Sergei
This is a great script! I'm having a lot of fun editing it and chronicling the characters' adventures :3

I have a problem though. I made the game screen wider, and thus had to edit the journal to move to the center. I was able to do so by simply fixing the scripts inside, EXCEPT one: the title. I can't seem to find the line where the title's x and y's are. Please help.
The variables should be in the customization section, just below the title text color.

If these don't work, let me know.

#Position and stats for the title window length.

TitleXPos = 0
TitleYPos = 0
TitleWidth = JWidth
TitleHeight = 48


Unfortunately, no. Changing the X/YPos only changes the position of the title box itself, but not the text within. Since the window I have is 640, each journal title is off-center.
author=Sergei
This is a great script! I'm having a lot of fun editing it and chronicling the characters' adventures :3

I have a problem though. I made the game screen wider, and thus had to edit the journal to move to the center. I was able to do so by simply fixing the scripts inside, EXCEPT one: the title. I can't seem to find the line where the title's x and y's are. Please help.


The variables should be in the customization section, just below the title text color.

If these don't work, let me know.

#Position and stats for the title window length.

TitleXPos = 0
TitleYPos = 0
TitleWidth = JWidth
TitleHeight = 48
This is a great script! I'm having a lot of fun editing it and chronicling the characters' adventures :3

I have a problem though. I made the game screen wider, and thus had to edit the journal to move to the center. I was able to do so by simply fixing the scripts inside, EXCEPT one: the title. I can't seem to find the line where the title's x and y's are. Please help.
author=NobleD
This is all I edited.




You need to use \n to signify line breaks, not the enter key.

So it'd be like this.

"Dear somebody,\n this is the letter I sent you.\n -Mr. BunBuns"
author=Ven01273
Did you edit anything in the Game_Interpreter?
Did you add in entries to the journal script yet?

No, I didn't add anything in the Game Interpreter, I don't mess with scripts that I don't know how to handle.

This is all I edited.


Could it be that one of these custom scripts have something to do with it??
Pages: first 12 next last