The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Yin Wei on February 04, 2007, 06:21:48 AM

Title: Sorry another stupid question.. >.<
Post by: Yin Wei on February 04, 2007, 06:21:48 AM

Theres a script that I dont get.. [I know how to insert scripts but this one confused me..]

Link: http://www.hbgames.org/forums/showthread.php?t=6305

He lost me on the third step..

"Put this under all the other instance variables
attr_accessor : qupdate # for the quest script
Then put this at the bottom of "initialize"
@qupdate = []
for i in 0...5000
@qupdate = false
end"

Please and Thank You ^__^
Title: Re: Sorry another stupid question.. >.<
Post by: Blizzard on February 04, 2007, 04:35:07 PM
Just use this piece of code and you'll be fine:

class Game_Temp

  attr_accessor : qupdate
 
  alias init_qu initialize
  def initialize
    init_qu
    @qupdate = []
    5000.times {@qupdate.push(false)}
  end

end


I also improved the code a lil' bit. ::)
Title: Re: Sorry another stupid question.. >.<
Post by: Yin Wei on February 04, 2007, 05:23:27 PM
I keep getting an error now >.<

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi47.photobucket.com%2Falbums%2Ff157%2FYinWeiCao%2Ferror.jpg&hash=bbb23198bb2bc386006bc1287daddc38e14d3c51)

i think i screwed up.. .__.
Title: Re: Sorry another stupid question.. >.<
Post by: Blizzard on February 04, 2007, 05:36:51 PM
hbgames.org smiley corruption I would say. ::) (The code got corrupted by the forums smileys, you should have noticed...) And since somebody locked the topic, you can't use the quote button to get the code from the post itself. ::) Try to report it to a mod there, maybe he can help you.

Title: Re: Sorry another stupid question.. >.<
Post by: Yin Wei on February 04, 2007, 05:51:33 PM
I actually fixed that on my own.. [The smiley thing] Its just the error has to do with:
attr_accessor :totalquests, :totalfound, :moneyearned, :expearned, :rpearned, :totalcompleted,

I don't see much wrong with it.
Title: Re: Sorry another stupid question.. >.<
Post by: Blizzard on February 04, 2007, 06:07:56 PM
Ok, upload your Scripts.rxdata somewhere or put it as attachment to your post. I'll fix it directly.