frankie2000
Member
Hi!
I am a newbee RGSS scripter and new to Ruby language. I have experience with other languages. And with OOP.
Read the tutorial that is found here:
http://www.dubealex.com/asylum/index.php?showtopic=4854
I get everything in the beginning but when the window making comes...it´s starts to be a little tricky. Some questions i hope someone has the time to answer:
1. On this line
self.contents.draw_text(305, 0, 100, 32, $game_party.gold.to_s)
We the the public instance variable: gold that is listed under $game_party...it´s easy to find...but later the line:
self.contents.draw_text(480, 0, 100, 32, $game_map.map_id.to_s)
where do we get the map_id from? It is not listed under $game_map.
2. On this line:
actor = $game_party.actors we get the array actors from $game_party so i ran and checked it and it was listed. Later:
self.contents.draw_text(x, y+32, 200, 32, actor.class_name)
Where does the class_name come from? It is not listed under $game_party.
Can someone explain to me this?
Thanx in advance.
I am a newbee RGSS scripter and new to Ruby language. I have experience with other languages. And with OOP.
Read the tutorial that is found here:
http://www.dubealex.com/asylum/index.php?showtopic=4854
I get everything in the beginning but when the window making comes...it´s starts to be a little tricky. Some questions i hope someone has the time to answer:
1. On this line
self.contents.draw_text(305, 0, 100, 32, $game_party.gold.to_s)
We the the public instance variable: gold that is listed under $game_party...it´s easy to find...but later the line:
self.contents.draw_text(480, 0, 100, 32, $game_map.map_id.to_s)
where do we get the map_id from? It is not listed under $game_map.
2. On this line:
actor = $game_party.actors we get the array actors from $game_party so i ran and checked it and it was listed. Later:
self.contents.draw_text(x, y+32, 200, 32, actor.class_name)
Where does the class_name come from? It is not listed under $game_party.
Can someone explain to me this?
Thanx in advance.