Group: Member
Posts: 42
Type: Developer
RM Skill: Undisclosed
It seems that Vampyr SBABS 12 is interfering with an evented menu I made. After some investigating, it seems that Vampyr Keyboard prevents me from using the conditional branch option ''If B (Escape button, which opens the menu) button is being pressed...". Here's the Keyboard section from Vampyr SBABS 12:
Vampyr SBABS 12 Keyboard
#========================================================================= ===== # Vampyr Keyboard (Thanks to Aleworks to source) #============================================================================== Vampyr_Kernel.register("Vampyr Keyboard", 1.0, "09/01/2009") #------------------------------------------------------------------------------ module Keys
Keyboard = "PT-BR"
Mouse_Left = 1 Mouse_Right = 2 Mouse_Middle = 4
Back = 8 Tab = 9 Clear = 12 Enter = 13 Shift = 16 Ctrl = 17 Alt = 18 Pause = 19 CapsLock = 20 Esc = 27 Space = 32 PGUP = 33 PGDN = 34 End = 35 Home = 36 Left = 37 Up = 38 Right = 39 Down = 40 PrintScreen = 44 Insert = 45 Delete = 46
A = 65 B = 66 C = 67 D = 68 E = 69 F = 70 G = 71 H = 72 I = 73 J = 74 K = 75 L = 76 M = 77 N = 78 O = 79 P = 80 Q = 81 R = 82 S = 83 T = 84 U = 85 V = 86 W = 87 X = 88 Y = 89 Z = 90
def self.name(id) return (Names.keys.include?(id) ? Names[id] : "???") end
def self.value(id) if Values["ALL"].keys.include?(id) return Values["ALL"][id] elsif Values[Keyboard].keys.include?(id) return Values[Keyboard][id] else return Values["EN-US"][id] end end
unless File.exists?("Input.dll") print("Unlable to load file - Input.dll") exit end
LEFT = 37 UP = 38 RIGHT = 39 DOWN = 40 A = [160, 161] B = [27, 88, 96] C = [13, 32, 90] X = 65 Y = 83 Z = 68 L = 81 R = 87 SHIFT = 16 CTRL = 17 ALT = 18 F5 = 116 F6 = 117 F7 = 118 F8 = 119 F9 = 120
def self.trigger?(id) @trigger.indexes(*id.to_a).include?(true) end
def self.press?(id) @press.indexes(*id.to_a).include?(true) end
def self.triggerd?(what) if triggered.include?(what) return true end end
def self.triggered array = Array.new @trigger.each_index {|i| array.push(i) if @trigger[i]} array end
def self.pressed?(what) if pressed.include?(what) return true end end
def self.pressed array = Array.new @press.each_index {|i| array.push(i) if @press[i]} array end
def self.repeat?(id) @repeat.indexes(*id.to_a).include?(true) end
def self.repeated array = Array.new @repeat.each_index {|i| array.push(i) if @repeat[i]} array end
def self.release?(id) @release.indexes(*id.to_a).include?(true) end
def self.released array = Array.new @release.each_index {|i| array.push(i) if @release[i]} array end
def self.dir4 return 2 if self.pressed?(DOWN) return 4 if self.pressed?(LEFT) return 6 if self.pressed?(RIGHT) return 8 if self.pressed?(UP) return 0 end
def self.dir8 if self.pressed?(UP) return 9 if self.pressed?(RIGHT) return 7 if self.pressed?(LEFT) return 8 end if self.pressed?(DOWN) return 3 if self.pressed?(RIGHT) return 1 if self.pressed?(LEFT) return 2 end return 6 if self.pressed?(RIGHT) return 4 if self.pressed?(LEFT) return 0 end
end
I've fiddled with the script a lot, but it just doesn't work. Does anyone perhaps know anything about this incombaillity? Does ''Vampyr Keyboard'' prevent me of using the conditional branch option ''If "..." button is being pressed...''? Or is it something else? Any help is greatly appreciated.
__________________________
I'm making a huge game called Clan Wars The Orb of Truth but I'm desperately in need of a composer and (less important but still important) a spriter. Please PM me if you are interested. Thank you for your time.