Hey guys, I'm having a little trouble trying to figure out a few things in scripting.
One being I don't know how to make an "enter" or a page break when creating a text string. This is involving the help_window.set_text.
Then there's a further problem then that. If my description that I want has a really long description that I want to go over to the next line, it just condenses it's size instead.
Another thing. How can you call a display on what elements a skill has?
I want something like
def draw_element(element,x,y)
elem = RPG::Cache.picture(element.name)
cw = elem.width
ch = elem.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y, elem, src_rect)
end
@skill = current_skill
for i in 0...@actor.skill[@skill].element_set
element = $data_skills[@actor.skills[@skill]].element
x = i * 24
y = 100
draw_element(element, x, y)
to work, but I can't even find an idea in the default scripts of how to make it work.
Thanks for your help guys!
One being I don't know how to make an "enter" or a page break when creating a text string. This is involving the help_window.set_text.
Then there's a further problem then that. If my description that I want has a really long description that I want to go over to the next line, it just condenses it's size instead.
Another thing. How can you call a display on what elements a skill has?
I want something like
def draw_element(element,x,y)
elem = RPG::Cache.picture(element.name)
cw = elem.width
ch = elem.height
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x , y, elem, src_rect)
end
@skill = current_skill
for i in 0...@actor.skill[@skill].element_set
element = $data_skills[@actor.skills[@skill]].element
x = i * 24
y = 100
draw_element(element, x, y)
to work, but I can't even find an idea in the default scripts of how to make it work.
Thanks for your help guys!