I would like to move my victory window which appears after battles showing all the gold/ exp etc. collected to the upper left of the screen. I would also need the window to be transparent, and possibly change the text color for it. Can anyone help me on this one?
Victory window Up Left
RGSSx Script SupportFirst, do you use custom victory aftermath, or is it vanilla?
It's vanilla.
The vanilla only display text like message, and the window width is the same as the screen. The question would be placing on top or bottom. But you mentioned upper left which I assume a heavy modified victory message window. And you mentioned change color too.
With that means, you want to shrink victory window so that the width will not the same as the screen width?
As for color change, I believe you just need to change it in vocab module and add \\C[n]
Is that is what you mean? How about the window height?
With that means, you want to shrink victory window so that the width will not the same as the screen width?
As for color change, I believe you just need to change it in vocab module and add \\C[n]
Is that is what you mean? How about the window height?
I would just need it to be up, in a same way it's normally down. The window width and height could be the same as normally. I mistakenly said I want the window to be upper left, but I just meant that's where the text is gonna be (if it functions as the basic victory text window). Actually, I wouldn't want it to be transparent after all, but dim, like in a dim message window.
Code:
module BattleManager
def self.process_victory
play_battle_end_me
replay_bgm_and_bgs
$game_message.add(sprintf(Vocab::Victory, $game_party.name))
$game_message.position = 0
$game_message.background = 1
display_exp
gain_gold
gain_drop_items
gain_exp
SceneManager.return
battle_end(0)
return true
end
end
I used this, this is work. Could you make for escape message too?
Almost the same thing
Ruby:
module BattleManager
def self.process_escape
$game_message.add(sprintf(Vocab::EscapeStart, $game_party.name))
$game_message.position = 0
$game_message.background = 1
success = @preemptive ? true : (rand < @escape_ratio)
Sound.play_escape
if success
process_abort
else
@escape_ratio += 0.1
$game_message.add('\.' + Vocab::EscapeFailure)
$game_party.clear_actions
end
wait_for_message
return success
end
end
Original thread: https://forums.rpgmakerweb.com/threads/victory-window-up-left.91550/