I can't figure this out. I want to call the global variable id 1000 in a script.
I use this script in event:
$journal[1] = "Alignment with Lakmi: #{$global_variables[1000]}"
before that I assign all journal entries up to page 1000 to empty:
$journal = []
n = 0
1000.times do
n += 1
$journal[n] = ""
end
$journal[1] = "Lakmi syays Hi! \n Speak set to on!"
after the assignment of journal[1] speak on it calls the journal, and works just fine. the alignment set happens when the player chooses a specific home planet...
it gives me Nil:NilClass error for method '[]' in game interpreter, when it tries to store the variable in journal.
what am I doing wrong, and how do I correct it?
I use this script in event:
$journal[1] = "Alignment with Lakmi: #{$global_variables[1000]}"
before that I assign all journal entries up to page 1000 to empty:
$journal = []
n = 0
1000.times do
n += 1
$journal[n] = ""
end
$journal[1] = "Lakmi syays Hi! \n Speak set to on!"
after the assignment of journal[1] speak on it calls the journal, and works just fine. the alignment set happens when the player chooses a specific home planet...
it gives me Nil:NilClass error for method '[]' in game interpreter, when it tries to store the variable in journal.
what am I doing wrong, and how do I correct it?