A forumer once asked any of the available scripters to come up with a way to show the current quest's title on screen the same way the map name is displayed on the map.
Well, now it is possible!
The user also wanted to use some game variables that I hate a lot, but there is one that will hold the title until it gets replaced by a new one.
Here are the list of available Constants:
HIDE_WHEN_ZERO - true or false
SWITCH_ID - switch in charge or showing or hiding the quest title window
VAR_ID - variable holding the quest title
WINDOW_X, WINDOW_Y, WINDOW_WIDTH and WINDOW_HEIGHT constants are self evident.
This script has only 2 script calls, the second one is usually optional.
Set New Title:
new_quest_title("Quest Name")
Repeat the Most Recent Title:
repeat_quest_title!
The Script
Ruby:
# * Single Quest Title ACE * #
# Scripter : Kyonides Arkanthes
# 2023-05-21
# This scriptlet lets you show the Current Quest Title on the map using a
# given Game Variable. The state of a certain Game Switch determines
# whether or not the window will be visible on screen.
alias :kyon_single_quest_scn_map_create_all_win :create_all_windows
def create_all_windows
kyon_single_quest_scn_map_create_all_win
make_single_quest_window
end
def make_single_quest_window
@quest_window = SingleQuest::TitleWindow.new
SceneManager.quest_window = @quest_window
@quest_window.open
end
attr_reader :quest_window
end
复制代码
Terms & Conditions
Free for use in any game.
Include my nickname in your game credits.
Don't adopt stray cats nor sleeping beauties nor undead fans nor blue squirrels even if they desperately need to drink a cup of coffee!
That's it!