Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
Reply
Posted 2006-08-28, 08:57 AM in reply to Lenny's post starting "Nice one, thanks. :)"
=P It's so easy to use, I forget I'm scripting. I'd suggest, if your going to start writing scripts, making comment lines whenever and wherever you do something. Like...

code said:
#Now to read the .ini file, hello.ini
module INI
def self.read(filename, variable)
File.open(filename).each{ |row|
if row =~ Regexp.new("^" + variable + "=.*$")
return row.scan(Regexp.new("^" + variable + "=(.*)$"))[0]
end
}
end
end

for i in 0..5
puts INI.read("hello/Hello.ini","hello" + i.to_s)
end
No, of course I didn't just write that. I was just using a snippet from another script and putting the pound sign to signify a comment which is unreadable to the program, but is readable to you. This .ini shit is higher than what I can do anyway.
Old
Profile PM WWW Search
Atnas shows clear signs of ignorance and confidence; the two things needed to succeed in lifeAtnas shows clear signs of ignorance and confidence; the two things needed to succeed in life
 
 
Atnas
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:37 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.