Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Moranon

1
RMXP Script Database / Re: [XP] Juan's Option Menu
November 03, 2012, 05:10:05 am
this is perfect. thank you so much ^^
2
RMXP Script Database / Re: [XP] Juan's Option Menu
November 01, 2012, 09:52:22 am
hey guys

i'd like to use this script in my game, but i don't want the players to have so many options to change.
In fact i only want them to be able to change the bgm and sfx volume. but i dont know how to modify the script so that only these two options remain.
Could someone please help me with this?

thanks in advance
3
RMXP Script Database / Re: [XP] Achievements Script
September 22, 2012, 02:47:21 pm
i changed this
self.contents = Bitmap.new(width - 32, row_max * Awards::Icon_Size[1])


to
self.contents = Bitmap.new(height - 32, row_max * Awards::Icon_Size[1])


i'm kind of an idiot that way. unless someone tells me exactly what to change i'm screwed xD

edit:
with your
self.contents = Bitmap.new(width - 32, row_max * height)

it works just fine. thank you very much ^^
4
RMXP Script Database / Re: [XP] Achievements Script
September 22, 2012, 02:39:54 pm
i cant remember changing that. but when i change width to height it looks like this
http://www.freeimagehosting.net/dhe3h
5
RMXP Script Database / Re: [XP] Achievements Script
September 22, 2012, 02:05:58 pm
This is the only part i slightly changed
Spoiler: ShowHide
#===============================================================================
# Window_QuickAwards
#===============================================================================
class Window_QuickAwards < Window_Selectable
 def initialize
   super(64, 128 + 64, 512, 320 - 64)
   @column_max = Awards::Icon_QColumn
   self.z = 10000
   refresh
   self.index = 0
 end
 def item
   return @data[self.index]
 end
 def refresh
   if self.contents != nil
     self.contents.dispose
     self.contents = nil
   end
   @data = []
   $game_system.awards.each {|i|
     @data.push([Awards::Award[i], i])}
   if Awards::Show_All
     @data = []
     @locked = []
     @unlocked = []
     Awards::Award.each_index {|i|
       if Awards::Award[i] != nil
         if $game_system.awards.include?(i)
           @unlocked.push([Awards::Award[i], i])
         else
           @locked.push([Awards::Award[i], i])
         end
       end}
     @unlocked.each {|i| @data.push(i)}
     @locked.each {|i| @data.push(i)}
   end
   @item_max = @data.size
   if @item_max > 0
     self.contents = Bitmap.new(width - 32, row_max * Awards::Icon_Size[1])
     for i in 0...@item_max
       draw_item(i)
     end
   end
 end
 def draw_item(index)
   item = @data[index]
   width = Awards::Icon_Size[0] < 32 ? 32 : Awards::Icon_Size[0]
   height = Awards::Icon_Size[1] < 32 ? 32 : Awards::Icon_Size[1]
   x = 4 + index % @column_max * (width + 32)
   y = index / @column_max * (height + 4)
   rect = Rect.new(x, y, self.width / @column_max - 4, height)
   self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
   if $game_system.awards.include?(item[1])
     bitmap = RPG::Cache.icon(item[0][2])
   else
     bitmap = RPG::Cache.icon(Awards::Locked_Icon)
   end
   self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, Awards::Icon_Size[0],
       Awards::Icon_Size[1]))
 end
 def update_help
   @help_window.set_award(self.item)
 end
 def update_cursor_rect
   if @index < 0
     self.cursor_rect.empty
     return
   end
   row = @index / @column_max
   if row < self.top_row
     self.top_row = row
   end
   if row > self.top_row + (self.page_row_max - 1)
     self.top_row = row - (self.page_row_max - 1)
   end
   cursor_width = Awards::Icon_Size[0] < 32 ? 32 : Awards::Icon_Size[0]
   cursor_height = Awards::Icon_Size[1] < 28 ? 28 : Awards::Icon_Size[1]
   x = @index % @column_max * (cursor_width + 32)
   y = @index / @column_max * (Awards::Icon_Size[1] + 12) - self.oy
   self.cursor_rect.set(x, y, cursor_width, cursor_height + 4)
 end
end

i only changed some of the sizes and coordinates because the cursor wasn't directly behind the achievement icons.
maybe i f*cked something up here. i cant really tell.

maybe it helps you to find the error
6
RMXP Script Database / Re: [XP] Achievements Script
September 20, 2012, 02:16:28 pm
Hey.

I'd like to use this awesome script but i seem to have a little problem here.

The Achievement Icons won't be shown completely at some point. In the last row they are gone completely although they're still selectable.
Maybe someone can help me with this.

That's what it looks like right now
http://www.freeimagehosting.net/6z1gv

Thanks in Advance