swiftdeathsk
Member
I can't get this right, my friends have been waiting for over an hour for my next demo, and I cant release it because i cant get this to work. What im trying to do is show the number of a variable in a string. Like this:
but no matter what i do, i cant figure out the correct way to display the variable's number, which is a random number between 1000 and 9999, so i cant just type in the number...
Please and thank you, hopefully I and my friends wont have to wait much longer
Code:
if $game_switches[26] == true
$game_variables[7] = @vaultcode
self.contents.draw_text(25, 158, 900, 64, "There is a vault behind the picture in The Bunny Hole bar")
self.contents.draw_text(25, 182, 900, 64, "the vault code is " + @vaultcode.to_s + ".")
end
but no matter what i do, i cant figure out the correct way to display the variable's number, which is a random number between 1000 and 9999, so i cant just type in the number...
Please and thank you, hopefully I and my friends wont have to wait much longer