YellowSubmarine
Member
All right, so, I'm creating a Level-up and exp gainsystem that's narrated by messages. To do this, I'm running command 101 a few times in the level up process to display the relevant messages. Here's the bit of code for levelling:
(I haven't developed messages for other actors besides reidman levelling up.)
Unfortunately, when this is put into practice, there's a few problems:
a) The text gets all crumpled together, making it illegible. I can resolve this to some extent by spacing out the letters and words, as in + "h a s" + " " + "r e a c h e d", but I'd like to actually fix this problem instead of avoid it.
b) The real problem: when reidman does level up, the first message gets skipped, and the only message that shows up is the level up message. I'd like to show both.
c) I don't know how to use command_101 to create messages with more than one line. I'd like to put the level up message on a line below the exp message instead of making its own message box.
Can someone help me out? Thanks a bunch.
Code:
if $game_party.actors.size > 1
$command_101
$game_temp.message_text = "r e i d m a n" + " " "a n d" + " " + "f r i e n d s" + " " + "g a i n e d" + " " + exp.to_s + " " + "e x p ."
else
$command_101
$game_temp.message_text = "r e i d m a n" + " " + "g a i n e d" + " " + exp.to_s + " " + "e x p ."
end
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
if actor.cant_get_exp? == false
last_level = actor.level
actor.exp += exp
if actor.level > last_level
@status_window.level_up(i)
$command_101
$game_temp.message_text = "r e i d m a n" + " " + "h a s" + " " + "r e a c h e d" + " " + "l e v e l" + " " + actor.level.to_s + " " + "!"
end
end
end
(I haven't developed messages for other actors besides reidman levelling up.)
Unfortunately, when this is put into practice, there's a few problems:
a) The text gets all crumpled together, making it illegible. I can resolve this to some extent by spacing out the letters and words, as in + "h a s" + " " + "r e a c h e d", but I'd like to actually fix this problem instead of avoid it.
b) The real problem: when reidman does level up, the first message gets skipped, and the only message that shows up is the level up message. I'd like to show both.
c) I don't know how to use command_101 to create messages with more than one line. I'd like to put the level up message on a line below the exp message instead of making its own message box.
Can someone help me out? Thanks a bunch.