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.
[RMVXA]Hash help please?

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 90
Skilled Scripter, Shitty Mapper, Decent Writer.
It has been AGES since I've touched scripting much less RPG Maker. So, I'm fuzzy as can be on how to script with hashes. Everything I remember says this code block should work without ANY problems. What am I doing wrong?

Code: [Select]
  def self.r12_mission
    list = {} #INIT HASH list { ID => mission name, mission desc}
    list = {
    1 => self.name(1), self.desc(1),
    2 => self.name(2), self.desc(2),
    3 => self.name(3), self.desc(3),
    4 => self.name(4), self.desc(4),
    5 => self.name(5), self.desc(5),
    6 => self.name(6), self.desc(6)
    }
    return list 
  end

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Unless I'm mistaken, each value of the hash should be in array form.

Code: [Select]
list = {
  1 => [self.name(1), self.desc(1)],
  2 => [self.name(2), self.desc(2)],
  ...
}

***
Rep:
Level 90
Skilled Scripter, Shitty Mapper, Decent Writer.
*hangs head in shame* I forgot something so simple...well, at least I realized what I was doing wrong in another section of the script after a cigarette break. Ironically, it was something simple there too.