Ruby script for RPG Maker Ace VX, case sensitive ID is octal number

94 Views Asked by At

I have inserted a script to make a Journal Quest written by Modern Algebra. It works perfectly but when I tried to input an Item ID, 128, I get an error telling me that the number is an octal. I tried converting the number into a string "128" but the program crashes. This is part of the code:

q[:name]              = "Fish for the Inn"

q[:icon_index]        = 028

I'm very new to Ruby. Can you please tell me how to solve this problem? Thanks!

0

There are 0 best solutions below