RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Fixnum into String

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 88
Hey guys, I just wanted to know if there was a way to show a variable in a hud through Script...?

Code: [Select]
    self.contents.draw_text(384, 16, 120, 32, $game_variables[0012])

That code doesn't work, so help would be very good. :)

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
2 mistakes. It should be

Code: [Select]
    self.contents.draw_text(384, 16, 120, 32, $game_variables[12].to_s)

.to_s converts values into strings.
And leading zeroes can cause bugs.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

**
Rep: +0/-0Level 88
Thnaks for that, works great! :)