RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Diary 1.0

0 Members and 2 Guests are viewing this topic.

**
Rep: +0/-0Level 76
RMRK Junior
i have a problem in your script. it is found here:
http://rmrk.net/index.php/topic,40130.msg462087.html#new

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Try switching the order of the scripts in the Script Editor.

Otherwise, try making it so that the Journal option is above the Continue option. If both of those don't work, I'll take a look at the scripts and make them compatible.

**
Rep: +0/-0Level 81
Rpg Maker VX Master
Woah, that's really cool !
I will absolutely use it in my new game !
modern algebra you rock ! Your scripts are some of the best I ever seen !
Visit my official website for resources, games, and informations.
Download for free my (great) videogames and resources.
Link:
http://thefrontera.knossus.net

Watch also my great videos !
Link: Awesome videos here

The VX Project I'm working on: (Click to see the Description)


ALL MY AWESOME COMPLETED GAMES [OPEN THE SPOILER!!!]
Spoiler for:
My Completed VX Games:
The Frontera Legends (Click to Download)


My Completed XP Games:
The Frontera 2 (Click to Download)


The Frontera 1
Unfortunatly I can't have more than three pictures in my signature...
However, download it HERE (without the cool image)

**
Rep: +0/-0Level 75
RMRK Junior
Help i got error on diary on line 763 "Paragraher" :'(

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Did you add the Paragraph Formatter and Special Codes Formatter as is required? You can get both from the demo.

*
Rep: +0/-0Level 71
RMRK Junior
Hello, I got an error with
line 667: NoMethodError occured
undefined method 'back_picture' for nil"NilClass

i have the pictures from the demo, the formatters, im not using a special menu script and i copied correctly.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
My best guess is that you are loading from a save file that existed from before you added the diary script. You can't do that - you need to delete the old save files and start again.

**
Rep: +0/-0Level 71
RMRK Junior
Hey,

Im using a mouse script, and I was wondering if it was possible to have like an arrow or something here taht you could click to turn the page as well as using the arrow keys.

thanks

Matt (Mapper2100)

**
Rep:
Level 66
RMRK Junior
Modern, this Script is very very very usefoul to people like me that tend to do big stories with a lot of talk XD but i have a question. I dont see anywhere in the script, the chance to change the font size...is it possible? Becouse the font is very big, i need a smaller one. can it be done somehow?
Thanks for your time ^^

**
Rep:
Level 66
RMRK Junior
Modern, i use Yem and many other script and your Diary 1.0 work fine.
But i'm Italian so it taked to me around 2 hours to figure out how to set the 2nd diary [a cookbook] and call it. So if you dont mind, i will post here the complete code for those who, like me, had same problem to set the diary cause they didnt get well with english or script. Hope to be of help to other newbie like me. Your work is awesome as alwais Modern! The code, is set like this:

Quote
#==============================================================================
#    Multiple Diaries
#      Addon to Diary 1.0
#    Version: 1.0
#    Author: modern algebra (rmrk.net)
#    Date: January 17, 2010
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This allows for an built-in way to create and access multiple diaries.
#   Unlike the main diary, this is a little simpler as it does not allow for
#   access through the menu or anything fancy, so it has to be called through
#   an event. Entries for these diaries are also set up in the default way
#   through the main script
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Place this script below the main Diary script, but keep it above Main
#
#    To create the new diaries, go down to line 66 and read the instructions
#   located there. Keep in mind what order you creat them, as that is how you
#   will access them. The main diary will always have the ID 0, so each of the
#   new diaries you create will have IDs starting from 1. So, the first one you
#   make has ID 1, the second one ID 2, and so on.
#
#    You can then write entries or call the diaries by using their IDs in these
#   codes, which you put in the call script event command:

#      write_diary_entry (entry_id, diary_id)
#        entry_id : this is an ID of an entry set up in the database, or it
#          could be an entry object itself if you have set one up in an
#          event (which is NOT recommended, btw).
#        diary_id : this is the ID of the diary you want to call. It could also
#          be the diary object itself, if you wanted, but I don't see any
#          reason why that would be easier than the ID. If left blank, it
#          defaults to the main diary that you set up through the main script.
#
#      call_diary (diary_id)
#        diary_id : this is the ID of the diary you want to call. It could also
#          be the diary object itself. If left blank, it defaults to the main
#          diary that you set up through the main script.
#==============================================================================

#==============================================================================
# ** Game System
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new instance variable - diaries
#    aliased method - initialize
#==============================================================================

class Game_System
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Public Instance Variables
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  attr_reader   :diaries
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Object Initialization
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias ma_joy_cokbok_diry_4kw1 initialize
  def initialize (*args)
    # Run Original Method
    ma_joy_cokbok_diry_4kw1 (*args)
    @diaries = [@diary]
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    #  EDITABLE REGION
    #``````````````````````````````````````````````````````````````````````````
    # Make new diaries Like this:
    #    name = "name of diary"
    #    font_name = "name of font" OR ["font_1", "font_2", ..., "font_n"]
    #    back_pic = "name of Background Image
    #    page_rects = [Rect.new (x, y, w, h), Rect.new (x, y, w, )]
    #      w, h : width, height
    #    num_rects = [[Rect.new (x, y, w, h), align], [Rect.new (x, y, w, h), align]]
    #      align : 0 => Left, 1 => Middle, 2 => Right
    #
    #  You must define all of the following, and then you can make it:
    #    @diaries.push (Diary.new (name, font_name, back_pic, page_rects, num_rects))
    #
    #  I should note, if you do not define arguments, then they resorts to
    #  the default setting you've set up. However, you can't "skip" arguments.
    #  If you want back_pic to be default but want to change page_rects, then
    #  you will need to define back_pic anyway. However, if you wanted back_pic,
    #  page_rects, and num_rects all to be default, then you would only need to
    #  define name and font_name and create it like this:
    #    @diaries.push (Diary.new (name, font_name))
name = "Ricettario"
font_name = ["Garamond", "Verdana", "Arial"]
back_pic = "Diary Back"
page_rects = [Rect.new (20, 20, 200, 360), Rect.new (260, 20, 200, 360)]
num_rects = [[Rect.new (110, 384, 20, 24), 1], [Rect.new (350, 384, 20, 24), 1]]
@diaries.push (Game_Diary.new (name, font_name, back_pic, page_rects, num_rects))

    #``````````````````````````````````````````````````````````````````````````
    #  END EDITABLE REGION
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  end
end

#==============================================================================
# ** Game_Interpreter
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased methods - call_diary, write_diary_entry
#==============================================================================

class Game_Interpreter
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Write Diary Entry
  #    entry : either an Game_DiaryEntry object or an entry ID
  #    diary : the Game_Diary object to write it to
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias ma_mult_diry_writeentry_6hf2 write_diary_entry
  def write_diary_entry (entry, diary = $game_system.diary, *args)
    diary = $game_system.diaries[diary] if diary.is_a? (Integer)
    ma_mult_diry_writeentry_6hf2 (entry, diary, *args)
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Call Diary
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mjoy_clldiry_multiples_8kd2 call_diary
  def call_diary (diary = $game_system.diary, *args)
    diary = $game_system.diaries[diary] if diary.is_a? (Integer)
    mjoy_clldiry_multiples_8kd2 (diary, *args)
  end
end

and to call the 2nd Diary, you just need to create one Item, give it to the player and ser his use "only from the menĂ¹", no consume.
it must call a "common event" and in the common event you need just the
"Script" command, the last in the 3rd page, below "advanced"
and put there, this:

Quote
call_diary (1)

for the entryies you simpli use the first script, the Diary 1.0 and if you will like to have an ordered list, use the entryes from 1 to 100 [just to say] for the diary, and the entryes from 101 to 200 for the coockbook.

To add other diarys, just add another time the first quote and change name and picture and to make the call of other diaries you will make another item same as the first but the call will be...

Quote
call_diary (2)

then call 3..4...5 as many as you want. easy to configure.
Our problem was just to figure out where we need to edit eheh
my first time i messed up all because i misunderstand this line
@diaries.push (Game_Diary.new (name, font_name, back_pic, page_rects, num_rects))
i used it like this:
@diaries.push (Game_Diary.new (cookbook, font_name, back_pic, page_rects, num_rects))
Fon non-scripter like me is easy make those kind of mistake...but i read your comments many time, doing some change and at least figured out how to configure properly.
Now it work perfect! And i'm starting making my event-cooking part of the game heheh "sweeet"
Thanks a lot Algebra. More the tima passes, more i think you are truly blessed with genius.

I just remind you about my question, if you dont mind.
I will like to change font to a smaller size if can be done.
For now, i'm simply avoiding the problem using "Garamond" Font that is smaller than Verdana or the others, but if there is a way to change the font-size, i will like to know ^^

Thanks for your time, sorry for my talkative habits...i hope this post will be of some help ^^

**
Rep:
Level 63
RMRK Junior
I'm using your Addon, but I get the following:

Quote
Script 'Diary_Addon' line 88: Name Error Occured.
Uninitialized Constant Game_System::Diary.

I get that when I try Loading the Game up.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Well, the Addon requires the original script to work.

**
Rep:
Level 63
RMRK Junior
i have the Demo, and I added onto the Demo under the original Program. Which is why I'm confused on to that error message.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Oh, I took a look and there was an error in the addon. Grab it again and see if it's any better.

**
Rep:
Level 63
RMRK Junior
Nope. It's now saying that Game_Interpreter::Cookbook is an Uninitialized Constant.

Can you plug it into a Demo so I can see it in a Working Model please? Thank you very much for your time.

**
Rep: +0/-0Level 69
RMRK Junior
I can't download the demo, the link doesn't seem to work
Nevermind, It does work but downloads the demo as "index.php", i have to rename it as .exe to make it work... Dunno if it's just a downloading problem of mine or it's like that for everybody else.
« Last Edit: January 06, 2012, 10:16:10 AM by Darkxyn »