Aldeia RPG

Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Suporte no desenvolvimento de jogos


3 participantes

    [VXA-OS] Make some hidden text at VIP icon

    eek
    eek
    Novato
    Novato


    Mensagens : 21
    Créditos : 1

    [VXA-OS] Make some hidden text at VIP icon Empty [VXA-OS] Make some hidden text at VIP icon

    Mensagem por eek Seg Jan 27, 2020 12:00 pm

    Hi Everyone, iam a stranger but very interest about VXA-OS  Razz

    I want to ask, i have script like this:
    on [VS] Sprite_Minimap
    Código:
     def draw_VIP_icon #textedit2
        bitmap = Cache.system('Iconset') #@character.vip?
        icon_index = $network.vip? ? Configs::MAP_VIP_ICON : Configs::MAP_NONVIP_ICON
        rect = Rect.new(icon_index % 16 * 24, icon_index / 16 * 24, 24, 24)
        self.bitmap.blt(0, 30, bitmap, rect)
      end

    How to edit it to be like "Item (I)", "Skill (H)"
    with automatically day in it toward "network vip".

    image for example:
    [VXA-OS] Make some hidden text at VIP icon Dong10

    THANKYOU!


    _________________
    Glad 
    [VXA-OS] Make some hidden text at VIP icon Zk0iyt
    Valentine
    Valentine
    Administrador
    Administrador


    Medalhas : [VXA-OS] Make some hidden text at VIP icon ZgLkiRU
    Mensagens : 5300
    Créditos : 1160

    [VXA-OS] Make some hidden text at VIP icon Empty Re: [VXA-OS] Make some hidden text at VIP icon

    Mensagem por Valentine Seg Jan 27, 2020 4:39 pm

    I didn't quite understand what you mean. Do you want your window to appear when you press a key?


    _________________
    [VXA-OS] Make some hidden text at VIP icon Logof5
    Shiy
    Shiy
    Experiente
    Experiente


    Mensagens : 410
    Créditos : 56

    [VXA-OS] Make some hidden text at VIP icon Empty Re: [VXA-OS] Make some hidden text at VIP icon

    Mensagem por Shiy Seg Jan 27, 2020 8:38 pm

    Olá!
    Acredito que ele queira criar uma nova tecla de atalho, parecida com as de itens, habilidades e afins, porém, para abrir uma janela Vip que possui automatização em seu efeito diário, aparecendo a tecla para coletar ou algo do tipo.

    Resumindo, ele quer criar uma tecla de atalho com letras do alfabeto, para abrir a janela vip e a mesma ter seu efeito diário do Script Network Vip, algo assim.
    Valentine
    Valentine
    Administrador
    Administrador


    Medalhas : [VXA-OS] Make some hidden text at VIP icon ZgLkiRU
    Mensagens : 5300
    Créditos : 1160

    [VXA-OS] Make some hidden text at VIP icon Empty Re: [VXA-OS] Make some hidden text at VIP icon

    Mensagem por Valentine Seg Jan 27, 2020 8:58 pm

    You can add a new key on the def update_trigger of the script [VS] Scene_Map.

    You can use:
    Código:
    elsif Input.trigger?(:LETTER_V)


    _________________
    [VXA-OS] Make some hidden text at VIP icon Logof5
    eek
    eek
    Novato
    Novato


    Mensagens : 21
    Créditos : 1

    [VXA-OS] Make some hidden text at VIP icon Empty Re: [VXA-OS] Make some hidden text at VIP icon

    Mensagem por eek Ter Jan 28, 2020 12:33 am

    Valentine escreveu:I didn't quite understand what you mean. Do you want your window to appear when you press a key?
    Thanks for reply, Valentine 

    this no window, no key, just text to show up, to see how many days character vip will expire.
    like "Item (I)".
    [VXA-OS] Make some hidden text at VIP icon Smfftr10


    _________________
    Glad 
    [VXA-OS] Make some hidden text at VIP icon Zk0iyt
    Valentine
    Valentine
    Administrador
    Administrador


    Medalhas : [VXA-OS] Make some hidden text at VIP icon ZgLkiRU
    Mensagens : 5300
    Créditos : 1160

    [VXA-OS] Make some hidden text at VIP icon Empty Re: [VXA-OS] Make some hidden text at VIP icon

    Mensagem por Valentine Ter Jan 28, 2020 9:27 am

    eek escreveu:
    Valentine escreveu:I didn't quite understand what you mean. Do you want your window to appear when you press a key?
    Thanks for reply, Valentine 

    this no window, no key, just text to show up, to see how many days character vip will expire.
    like "Item (I)".
    [VXA-OS] Make some hidden text at VIP icon Smfftr10
    You can create a new icon in the def create_all_icons of the [VS] Scene_Map script:
    Código:
    if $network.vip?
      time_now = Time.new(Time.now.year, Time.now.month, Time.now.day, 0, 0, 0)
      vip_days = (($network.vip_time - time_now) / 86400).to_i
      @icons << Icon.new(nil, 0, 0, Configs::MENU_ICON, "Vip days: #{vip_days}")
    else
      @icons << Icon.new(nil, 0, 0, Configs::MENU_ICON, "Vip days: 0")
    end

    However, the number of VIP days is already shown in the character selection. I believe that showing this in the game would pollute the screen.


    _________________
    [VXA-OS] Make some hidden text at VIP icon Logof5
    eek
    eek
    Novato
    Novato


    Mensagens : 21
    Créditos : 1

    [VXA-OS] Make some hidden text at VIP icon Empty Re: [VXA-OS] Make some hidden text at VIP icon

    Mensagem por eek Ter Jan 28, 2020 1:15 pm

    Valentine escreveu:
    eek escreveu:
    Valentine escreveu:I didn't quite understand what you mean. Do you want your window to appear when you press a key?
    Thanks for reply, Valentine 

    this no window, no key, just text to show up, to see how many days character vip will expire.
    like "Item (I)".
    [VXA-OS] Make some hidden text at VIP icon Smfftr10
    You can create a new icon in the def create_all_icons of the [VS] Scene_Map script:
    Código:
    if $network.vip?
      time_now = Time.new(Time.now.year, Time.now.month, Time.now.day, 0, 0, 0)
      vip_days = (($network.vip_time - time_now) / 86400).to_i
      @icons << Icon.new(nil, 0, 0, Configs::MENU_ICON, "Vip days: #{vip_days}")
    else
      @icons << Icon.new(nil, 0, 0, Configs::MENU_ICON, "Vip days: 0")
    end

    However, the number of VIP days is already shown in the character selection. I believe that showing this in the game would pollute the screen.
    yeah indeed this is a little uselss move bcoz s already show in the chaaracter selection, haha, but THANK YOU VALENTINE! SOLVED!


    _________________
    Glad 
    [VXA-OS] Make some hidden text at VIP icon Zk0iyt

    Conteúdo patrocinado


    [VXA-OS] Make some hidden text at VIP icon Empty Re: [VXA-OS] Make some hidden text at VIP icon

    Mensagem por Conteúdo patrocinado


      Data/hora atual: Sex Jun 24, 2022 7:18 pm