Quotethere is a file called scripts.rxdata , but if i open it, is full of japanese characters. It seems encrypted in some way.
Yeah don't worry about it. Has to do with Ruby Marshal. Programmer stuff.
The idea was to just put the Scripts.rxdata into a new project and then open the RMXP editor to view the scripts. But you provided me with the whole project instead, so that's even better
Anyways, looks like
Blizz-ABS HUD is the script you want to work with. Specifically, the edited Hotkey_Assignment class.
The algorithm it uses to draw the hotkeys depends on the
Z_HOTKEYS_BACK graphic file. I looked at your project's Pictures and it seems the "hotkey.png" graphic was never finished. It's just a black 10x10 pixel square. So what I did, in the meantime, was change the graphic to be a 32x32 black square.
Then I changed the class to this (compare my edits before you replace the original, for learning purposes):
class Hotkey_Assignment
def initialize(viewport = nil)
super
self.bitmap = Bitmap.new(32, 320)
self.bitmap.font.bold = true
self.bitmap.font.size -= 8
self.bitmap.font.color = system_color
self.x, self.y, self.z = 4, 160, 1100
@skills = BlizzABS::Cache::EmptyKeys
@items = BlizzABS::Cache::EmptyKeys
update
end
def draw(index = nil)
back = RPG::Cache.picture(BlizzCFG::Z_HOTKEYS_BACK)
w, h = back.width, back.height
ow, oh = (w - 24) / 2, (h - 32) / 2
(index == nil ? BlizzABS::Cache::HotkeyRange : [index]).each {|i|
if $game_player.skill_hotkeys[i%10] != 0
object = $data_skills[$game_player.skill_hotkeys[i%10]]
elsif $game_player.item_hotkeys[i%10] != 0
object = $data_items[$game_player.item_hotkeys[i%10]]
end
if @items[i%10] != $game_player.item_hotkeys[i%10] ||
@skills[i%10] != $game_player.skill_hotkeys[i%10]
self.bitmap.fill_rect(0, h*(i-1), w, h, Color.new(0, 0, 0, 0))
self.bitmap.blt(0, h*(i-1), back, Rect.new(0, 1, w, h))
if object != nil
bitmap = RPG::Cache.icon(object.icon_name)
self.bitmap.blt(ow, h*(i-1)+oh, bitmap, Rect.new(0, 0, 24, 24))
end
self.bitmap.draw_text_full(0, h*(i-1)+oh, w-2, 32, (i%10).to_s, 2)
end}
@items = $game_player.item_hotkeys.clone
@skills = $game_player.skill_hotkeys.clone
end
end
Looks like it's more formatted now: