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.
Data_system Help [Request]

0 Members and 1 Guest are viewing this topic.

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
I need to know how I can add $data_system.word.runes, because I'm trying to add a secondary currency.
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
meh, just define a new variable.

It's not as if you can set it up in the database regardless.

At least, that's what I'd do. I am sure one of our actual scripters will abruptly enter and give 100 reasons why my way is bad  :P

I guess that's life  ;D

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
I do not know why you would want that so badly.
It doesn't hurt to show you I guess
Here's a version where runes is set to an empty array if you try to read it before writing to it:

Code: [Select]
module RPG
  class System
    class Words
      def runes
        @runes = []   if @runes.nil?
        return @runes
      end
      attr_writer :runes
    end
  end
end

Just paste this anywhere before you use it ^_^

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
I'm creating multiple currencies, I am going to do three currently: Gold, Runes, and Fishing Points.  I need this to finish the other currencies, thanks!!
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.

*
A Random Custom Title
Rep:
Level 96
wah
Fishing points could just be stored in a game variable. XP So could runes? :P

pokeball WcWOfflineMale
***
Rep:
Level 87
2 + 2 is a math problem, NOT 4.
Yes, but I want to be able to make a shop with them, therefore, I need currency and a slightly remodeled shop.  You see, I'm capable of basic scripting, probably once I get use to scripting I'll be capable of moderate RGSS abilities, and I just needed to know how to do that so I can make it as real as I want.  Thanks again for the help.

P.S. If I seem a little irritated, go check Error? and OBEY ME! to see why.
If you are reading this, the government of the U.S.A. is currently planting a chip in your brain.
People like decreasing my Rep. In fact, people like decreasing most others people's rep.