03-15-2014, 06:06 AM
Hey there,
I will try to be as specific as possible; it's 5 AM.
Event 1 script call : $notice: "Hey there!"
Event 2 script call : $notice: "Save-point."
Event 3 script call : $notice: "Do you think we could get this to work."
Event 4 script call : $notice: "I bet there's someone smart reading this."
There is only one notice in my "notice box" (part of my hud) at a time. One fades after a short period.
However, I would like to keep a history log of these notices.
I tried storing these strings in variables via checks in my "notice" Window, this just doesn't seem to work.
Par example;
Then in the expanded window:
For example new notice becomes notice 4 and notice 3 becomes two. It's a mess.
The following is what I would like to accomplish through variables and checks when the player expands this notice box, but I just can't get it to work right.
$notice4 "Hey there!"
$notice3 "Save-point."
$notice2 "Do you think we could get this to work."
--------------
$notice1 "I bet there's someone smart reading this."
--------------
Basically, notice4 was the first thing the player received.
When there is a new notice, new notice becomes notice 1, notice 1 becomes 2, 2 becomes 3 and 3 becomes 4. This is just simplified, I want to make a log of 20 text lines.
I was thinking about something like $notice[var], but a variable in a variable on the other hand doesn't really makes sense to me..
Anyone kind enough to guide me in the right direction?
Thanks in advance!
I will try to be as specific as possible; it's 5 AM.
Event 1 script call : $notice: "Hey there!"
Event 2 script call : $notice: "Save-point."
Event 3 script call : $notice: "Do you think we could get this to work."
Event 4 script call : $notice: "I bet there's someone smart reading this."
There is only one notice in my "notice box" (part of my hud) at a time. One fades after a short period.
However, I would like to keep a history log of these notices.
I tried storing these strings in variables via checks in my "notice" Window, this just doesn't seem to work.
Par example;
Code:
(Assuming event told script what $notice is right now and $index was increased by 1.)
If $notice != nil
self.contents.draw_text(x, y, width, height, $notice.to_s)
$game_variables[10 + $index] = $notice.to_s
end
Then in the expanded window:
Code:
self.contents.draw_text(x, y, width, height, $game_variables[11].to_s)
self.contents.draw_text(x, y, width, height, $game_variables[12].to_s)
self.contents.draw_text(x, y, width, height, $game_variables[13].to_s)
For example new notice becomes notice 4 and notice 3 becomes two. It's a mess.
The following is what I would like to accomplish through variables and checks when the player expands this notice box, but I just can't get it to work right.
$notice4 "Hey there!"
$notice3 "Save-point."
$notice2 "Do you think we could get this to work."
--------------
$notice1 "I bet there's someone smart reading this."
--------------
Basically, notice4 was the first thing the player received.
When there is a new notice, new notice becomes notice 1, notice 1 becomes 2, 2 becomes 3 and 3 becomes 4. This is just simplified, I want to make a log of 20 text lines.
I was thinking about something like $notice[var], but a variable in a variable on the other hand doesn't really makes sense to me..
Anyone kind enough to guide me in the right direction?
Thanks in advance!