Posting a $game_variable in a string.

Started by SilverShadow737, June 29, 2011, 08:20:41 pm

Previous topic - Next topic

SilverShadow737

I want to put a $game_variable in a string, such as
s = "Jump " + $game_variables[10] + " times to continue."
Ginyu Force Rules

G_G

str = "Jump #{$game_variables[10]} times to continue."

winkio

alternatively,

s = "Jump " + $game_variables[10].to_s + " times to continue."

SilverShadow737

Ginyu Force Rules