[RESOLVED] Journals

Started by Lost_Hope, January 22, 2008, 12:24:37 pm

Previous topic - Next topic

Blizzard

(-_-')
Use a "Call Script" command and type "$scene = Scene_Journal.new". Make another event that increases Variable #10 by 1. Run the game and talk to the event with the call script command. Look at the text. Now end it and talk to the event that increases that variable. And now talk to the event with the script call command again. End the game, open the script editor and take a look at the configuration of the script. This script is easy to use, you're just lazy.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Fantasist

slice_text... I still don't understand it when I see it... I really need it... i'm stupid... :cry:

j/k about cry, you're awesome Bliz :D
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Lost_Hope

http://img242.imageshack.us/img242/3936/clipboard01fz7.jpg

Is it possible to put the journal command in with these commands in the menu???

Blizzard

Sure, that's easy. Ok, let's put it below the Status option. Open your script editor and open Scene_Menu. Find this here:

    s5 = "Save"
    s6 = "End Game"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])


Change it to:

    s5 = 'Journal'
    s6 = 'Save'
    s7 = 'End Game'
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7])
    @command_window.height = 224


Now go further below and fine those lines here:

      when 4  # save
        # If saving is forbidden
        if $game_system.save_disabled
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to save screen
        $scene = Scene_Save.new
      when 5  # end game
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to end game screen
        $scene = Scene_End.new


Change them to:

      when 4  # journal
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to journal screen
        $scene = Scene_Journal.new
      when 5  # save
        # If saving is forbidden
        if $game_system.save_disabled
          # Play buzzer SE
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to save screen
        $scene = Scene_Save.new
      when 6  # end game
        # Play decision SE
        $game_system.se_play($data_system.decision_se)
        # Switch to end game screen
        $scene = Scene_End.new


That should do the job.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

Yeah Blizzard, I would really appreciate it if you would add the pages feature to this script...
- It's not so much that there may be soo much text, that it can't fit on the page, but I would like defferent pages for different
- areas in the game. I'm gonna have Blake fill info in the journal for every new place that he goes to, and I think it would be better organized if each place had it's own page.

Blizzard

Oh, you want a journal that can display every of the old logs? No problem. I'll edit the script as soon as I can as this might take some more time to implement.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

Yeah...
Is that asking too much?

P.S. do you think you could add a center text feature?? Activated with = true/false ??

Blizzard

January 23, 2008, 03:16:15 pm #47 Last Edit: January 23, 2008, 03:19:08 pm by Blizzard
Sure. It's like 1 little edit. In Window_JournalDisplay, where it says "draw_text", you need to add another argument after the string. Like
test[i]) -> text[i], 1)

and it will be centered.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

I'm not o sure I understand...

I know where you're talking about, but what exactly does that argument mean?? Is the actual text supposed to get placed in the spot??

Blizzard

Find this line:

self.contents.draw_text(4, i*32, 600, 32, text[i])


and change it to

self.contents.draw_text(4, i*32, 600, 32, text[i], 1)


if you want the text to be centered.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

Yeah, I figured that out, Lol...
I tried to edit my post, but my CPU is gay sometimes, because UTorrent sucks on my bandwidth like a succubus!! Sometimes, I get errors until I pause all my downloads...

Blizzard

Hey, it's better that it eats your bandwidth and downloads like crazy then eats your RAM and CPU like all the other BitTorrent clients. You can always set a download/upload limit, lol!
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

Thats true, but I like having the things get done quick so.....
I normally do set the uplad limit to 10kb/sec, but I leave the download to unlimited...

Bah...I like to post stuff to, Lol...*drops max dwnld rate to 50kb/sec*... ;D

Nortos

hmm Blizz with pages would you just do the journal window.index and have each one working when the event switch is activated? I think I get it better it was 2am last night when I looked at it lol...

Calintz

Yeh, I think I would really like to be able to use pages in this script!! It would def. make it more useful.

Nortos

Blizz have you started the journal or should I bother cos if I do it would take a lot longer lol and I'm still not sure if on right track with .index and the event switches

Blizzard

Leave it to me. I'll do it ASAP.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Nortos

k I'll look at your code after than and see :)

Calintz


Blizzard

Ok, I updated the script in the post on the first page to v2.0. Enjoy it. :)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.