Main Menu
  • Welcome to The RPG Maker Resource Kit.

Letter by Letter Message Window

Started by Season In The Abyss, September 09, 2006, 09:02:51 PM

0 Members and 3 Guests are viewing this topic.

Darico

Again, thanks that worked. But now I may actually kill this script...

Quote????? 'AMS' ? 172 ??? NoMethodError ???????

undifined method 'sound_enable' for nil:NilClass

lol... refers to this part of the script...

@fit_size, @sound = false, system.sound_enable

Thanks once more to anyone that can help...

Blizzard

Most probably there will be even more errors. Change the line to

@fit_size, @sound = false, system == nil ? true : system.sound_enable
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

:)

Watch out for: HaloOfTheSun

Darico

QuoteMost probably there will be even more errors.
Hey, you guessed it. What you said worked but...

'fit' for nil:NilClass again...

if @fit_size = (event || system.fit)
  lines_size = [0, 0, 0, 0]
  save, lines = @text.clone, 0
  while (c = @text.slice!(/./m))
if c == "\n"
  lines += 1
  break if lines == 4
  if lines >= $game_temp.choice_start
lines_size[lines] += 16
  end
  next
end
lines_size[lines] += eval_text(c, true)
  end
end


Can someone just revamp this script or point me in the dirrection of a better one? lol

Blizzard

Change the

if @fit_size = (event || system.fit)

to

if @fit_size = (event || (system == nil ? event : system.fit))
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

I dont want to say it...

Quote'nbyo' for nil:NilClass

this time...

and the part of te script is...

  @name_box = Window_NameBox.new(x, y - system.nbyo, name_text)
  @name_box.back.opacity = 0 if $game_system.message_frame == 1


Hmmm... Thanks again Blizzard lol, truely you are the scripter people can only dream of becoming.

Blizzard

Lol, thanks.

Change

@name_box = Window_NameBox.new(x, y - system.nbyo, name_text)

to

@name_box = Window_NameBox.new(x, y - system == nil ? 0 : system.nbyo, name_text)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

*Actually Dies because of this script...*

Here we go...

Quotenil can't be coerced into Fixnum
TypeError - at least its slight different problem this time...

the script part is...

@name_box = Window_NameBox.new(x, y - system == nil ? 0 : system.nbyo, name_text)
@name_box.back.opacity = 0 if $game_system.message_frame == 1


Looks like the bit you changed. Oh, it is. Hmmm, any help appreciated as always. By the end of this i'll be a expert at scripting! lol!

Blizzard

My bad, should be:

@name_box = Window_NameBox.new(x, y - (system == nil ? 0 : system.nbyo), name_text)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

:)

dosen't this belong in script database?  :o
Watch out for: HaloOfTheSun

Darico

No, it belongs in the trash ._. lol...

Font again...

dumb.font.name = system.font

(Almost at the end of the script with this error; could be the last one!)

Thanks to any help...

Blizzard

dumb.font.name = (system == nil ? Font.default_name : system.font)

Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

...

Quote'nb_skin' for nil:NilClass

...

skin = system.nb_skin ? system.nb_skin : $game_system.windowskin_name
@back.windowskin = RPG::Cache.windowskin(skin)


...
Thanks again...

Blizzard

skin = (system == nil ? $game_system.windowskin_name : (system.nb_skin ? system.nb_skin : $game_system.windowskin_name))

Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

Quote from: Blizzard on January 22, 2007, 03:39:48 PM
skin = (system == nil ? $game_system.windowskin_name : (system.nb_skin ? system.nb_skin : $game_system.windowskin_name))



Ok, thanks! Let's see what happens next...

Its the font for nil:NilClass again...

heres the script part...

bitmap.font.name = system.font


Hmmm...

Changed it to

bitmap.font.name = system == nil ? Font.default_name : system.font


And it...

IT WORKED! lol... but...

Quote'outline' for nil:NilClass
(Back at line 376  :'()

and the script is...

if system.outline
  color = contents.font.color.dup
  contents.font.color.set(0, 0, 0, 255)
  contents.draw_text(@x + @start_x + 1, y, w * 2, system.height, c)
  contents.draw_text(@x + @start_x, y + 1, w * 2, system.height, c)
  contents.draw_text(@x + @start_x - 1, y, w * 2, system.height, c)
  contents.draw_text(@x + @start_x, y - 1, w * 2, system.height, c)
  contents.font.color = color
  contents.draw_text(@x + @start_x, y, w * 2, system.height, c)
elsif system.shadow
  color = contents.font.color.dup
  contents.font.color.set(0, 0, 0, 192)
  contents.draw_text(@x + @start_x + 2, y + 2, w * 2, system.height, c)
  contents.font.color = color
  contents.draw_text(@x + @start_x, y, w * 2, system.height, c)
else
  contents.draw_text(@x + @start_x, y, w * 2, system.height, c)
end

The first line of that is the one it says, but I put the rest there as its connected (In some way or another... I can just see by the spacing of it...)

Thanks again ~

Regards,
Darico



Blizzard

if system != nil and system.outline
...
elsif system != nil and system.shadow
...

Change all the

system.height

to

(system == nil ? 374 : system.height)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

Quote'outline' for nil:NilClass

:'(

Bit we just edited -

if system.outline
  color = contents.font.color.dup
  contents.font.color.set(0, 0, 0, 255)
  contents.draw_text(@x + @start_x + 1, y, w * 2, (system == nil ? 374 : system.height), c)
  contents.draw_text(@x + @start_x, y + 1, w * 2, (system == nil ? 374 : system.height), c)
  contents.draw_text(@x + @start_x - 1, y, w * 2, (system == nil ? 374 : system.height), c)
  contents.draw_text(@x + @start_x, y - 1, w * 2, (system == nil ? 374 : system.height), c)
  contents.font.color = color
  contents.draw_text(@x + @start_x, y, w * 2, (system == nil ? 374 : system.height), c)
elsif system.shadow
  color = contents.font.color.dup
  contents.font.color.set(0, 0, 0, 192)
  contents.draw_text(@x + @start_x + 2, y + 2, w * 2, (system == nil ? 374 : system.height), c)
  contents.font.color = color
  contents.draw_text(@x + @start_x, y, w * 2, (system == nil ? 374 : system.height), c)
else
  contents.draw_text(@x + @start_x, y, w * 2, (system == nil ? 374 : system.height), c)
end


.....................................

Blizzard

But you forgot:

if system != nil and system.outline
...
elsif system != nil and system.shadow
...

Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

Oppsie... lol ; ;

Well, another problem (Who would of guessed?!)

Quote'sound_enable' for nil:NilClass

and the script...

@sound = (system.sound_enable && c != ' ')
@x += w


I'm getting ever so slightly pissed off by this script... Maybe someone should just make another one? lol ; ;

Blizzard

Lol, it ain't that easy. (Actually it is, I made something similar the other day !_! )

@sound = ((system == nil ? true : system.sound_enable) && c != ' ')


You know... I am not sure if it's really a good idea to change all of that... You won't be able to change the properties of the AMS most probably. O_o Have you tried it with a new game or save game by chance?
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

Ill get back to you in 10min... If my save files are corrupted.... >< *Gets knife out*

Blizzard

I can make your a little add-on that makes them compatible with they Letter-by-Letter script if the really are. ;)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

Yep, the it was the save files after all that lmao! luckly the script still works! I just played to the bit I was having problems with and it works fine! *Uses the save point in the area and deletes old saves*

So.. Umm... Thanks for all the help Blizzard!(rep up!)^^ Maybe you should check out my demo?  :P

Regards,
Darico

Blizzard

If I ever find the time, sure. I still haven't played through Yossy's game... (-_-')
I should now delete these pointless posts and... no wait, 100k border. :=
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Darico

One more thing... how do you speed up the letter by letter thing? Or can you not? If you can't how do I turn it off?