Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
HBGames
This script allows your "Show Text" event commands to be longer than 3 lines before being shown to the player.
Since this is probably going to be a pretty useful script for people, you can share it with any other rpg maker xp communities you'd like. Just don't take credit and leave my support topic link in there please, I don't want to be another guy where people are always asking for help with his scripts.
You guys should reply here if you need any help. That's for sites I don't visit.
Instructions
Just toss it in your game, no modifications necessary.
Use '' in the message somewhere and it will continue to the next.
That is ' ' without the space, not ".
Can easily be changed if you know what you're doing.
It will only use continue if the very next command is also a show text.
You can also use this to stick other message script commands in the next lines. Works good for name windows that may mess up how your text looks.
If you want message windows longer than 4 lines, you'll need to edit Window_Message yourself (not part of this script). I'm horrible at explaining things and won't help with that. Those are not a beginner's level edit.
Code:
#==========================================================================
# ** Message Window Fix
#==========================================================================
# sandgolem
# Version 1
# 17.09.06
#==========================================================================
#
# To use this script, copy it and insert it in a new section above "Main",
# under the default scripts and the SDK (if using).
#
# Have problems? Support topic:
# http://forums.gamebaker.com/showthread.php?t=277
#
#==========================================================================
begin
SDK.log('Message Window Fix', 'sandgolem', 1, '17.09.06')
if SDK.state('Message Window Fix') != true
@sg_messagefix_disabled = true
end
rescue
end
if !@sg_messagefix_disabled
#--------------------------------------------------------------------------
class Interpreter
alias sg_msgfix_interp_101 command_101
def command_101
if $game_temp.message_text != nil
return false
end
sg_msgfix_interp_101
if $game_temp.message_text.include?("''")
$game_temp.message_text.slice!("''")
sg_message_carryover
end
end
def sg_message_carryover
loop do
@sg_msg_text2 = nil
if @list[@index+1].code == 101
@sg_msg_text2 = @list[@index+1].parameters[0] + "\n"
@index += 1
if @list[@index+1].code == 401
@sg_msg_text2 += @list[@index+1].parameters[0] + "\n"
@index += 1
end
if @list[@index+1].code == 401
@sg_msg_text2 += @list[@index+1].parameters[0] + "\n"
@index += 1
end
else
break
end
if !@sg_msg_text2.include?("''")
$game_temp.message_text += @sg_msg_text2
break
end
@sg_msg_text2.slice!("''")
$game_temp.message_text += @sg_msg_text2
end
end
end
#--------------------------------------------------------------------------
end
If there's any interest, I might make a version that's better with smaller fonts as well.
Thanks Cygnea, MeisMe and Nix for testing it out earlier.