Number input while scripting?

● ARCHIVED · READ-ONLY
Started by wrigty12 8 posts View original ↗
  1. Very simple questions, but I am using Falcao Pearl ABS script, and there is a part where you can use number keys to use skills.

    Ex:

    Weapon   =  [PearlKey: default_biggrin.gif',      'D]          

      Armor    =  [PearlKey::A,      'A']            

      Item     =  [PearlKey::Q,      'Q']            

      Item2    =  [PearlKey::W,      'W']            

     

    How do I represent a number 1-9 to be pressed? I.E. like:   Skill = [PearlKey::1.  '1']
  2. Add a link to the script please. We can't guess, and we don't all have the time, or the incentive, to go searching for it.


    Did you TRY what you suggested? Except with a comma rather than a fullstop/period.
  3. Look through Falcaos script. In the main script i am sure, there is an I put module (just press Ctrl+Shift+F to search all scripts and search for 'class Input' or 'module Input')

    There wil be a list of key codes along with the :symbol he assigned to each key. Its probably something like :N1, :N2 ... for the number keys, but its wise to check...

    Alternatively, you shoujld be able to just use the key code directly...

    for example...

    here is a list of my input scripts key codes. In Falcaos script, you should be able to use the direct code, eg... 0x70 / 0x71 ... I dont see why he wouldnt have included that.

    Spoiler
    Code:
      Key={  # Func's  :F1 => 0x70,:F2 => 0x71,:F3 => 0x72,:F4  => 0x73,:F5  => 0x74,:F6  => 0x75,   :F7 => 0x76,:F8 => 0x77,:F9 => 0x78,:F10 => 0x7a,:F11 => 0x7b,:F12 => 0x7c,   # Numbers  :_0 => 0x30,:_1 => 0x31,:_2 => 0x32,:_3 => 0x33,:_4 => 0x34,  :_5 => 0x35,:_6 => 0x36,:_7 => 0x37,:_8 => 0x38,:_9 => 0x39,  # Letters  :A => 0x41,:B => 0x42,:C => 0x43, => 0x44,:E => 0x45,:F => 0x46,:G => 0x47,  :H => 0x48,:I => 0x49,:J => 0x4A,:K => 0x4B,:L => 0x4C,:M => 0x4D,:N => 0x4E,   => 0x4F, => 0x50,:Q => 0x51,:R => 0x52,:S => 0x53,:T => 0x54,:U => 0x55,   :V => 0x56,:W => 0x57,:X => 0x58,:Y => 0x59,:Z => 0x5A,  # NumPad  :N_0   => 0x60, :N_1  => 0x61, :N_2  => 0x62, :N_3  => 0x63, :N_4  => 0x64,  :N_5   => 0x65, :N_6  => 0x66, :N_7  => 0x67, :N_8  => 0x68, :N_9  => 0x69,  :ADD   => 0x6b, :MUL  => 0x6a, :SUB  => 0x6d, :DIV  => 0x6f, :DECI => 0x6e,  # Arrows  :LEFT => 0x25, :RIGHT => 0x27, :UP => 0x26, :DOWN => 0x28,  # Symbols  :S_Colon => 0xBA, :Equal       => 0xBB, :Comma   => 0xBC, :Minus       => 0xBD,  :Period  => 0xBE, :F_Slash     => 0xBF, :HASH    => 0xDE, :L_Sqr_Brack => 0xDB,  :B_Slash => 0xDC, :R_Sqr_Brack => 0xDD, :S_Quote => 0xC0,  # Other  :SHIFT => 0x10, :LSHIFT   => 0xa0, :RSHIFT   => 0xa1, :TAB    => 0x09,  :PAUSE => 0x13, :L_CTRL   => 0xa2, :R_CTRL   => 0xa3, :CTRL   => 0x11,  :BACK  => 0x08, :ENTER    => 0x0D, :CAPS     => 0x14, :SPACE  => 0x20,   :ESC   => 0x1B, :ALT      => 0x12, :PrtSc    => 0x2c,  } # << End Key {}
  4. I couldn't find either "class input" or "module input", and the hard codes don't work either...
  5. copied from the pearl abs script.

    Code:
      # numbers  N0 = 0x30; N1 = 0x31; N2 = 0x32; N3 = 0x33; N4 = 0x34  N5 = 0x35; N6 = 0x36; N7 = 0x37; N8 = 0x38; N9 = 0x39   # keys  A = 0x41; B = 0x42; C = 0x43; D = 0x44; E = 0x45  F = 0x46; G = 0x47; H = 0x48; I = 0x49; J = 0x4A  K = 0x4B; L = 0x4C; M = 0x4D; N = 0x4E; O = 0x4F  P = 0x50; Q = 0x51; R = 0x52; S = 0x53; T = 0x54  U = 0x55; V = 0x56; W = 0x57; X = 0x58; Y = 0x59; Z = 0x5A
  6. That was it! "N1" N2".. etc was what it needed!! haha Thanks!
  7. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.