Jump to content

DorFenn

Member
  • Content Count

    13
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by DorFenn


  1. That sounds good! But I wish I could write it. You see, I have to draw two objects in a window, the second image is superimposed with photoshop since somehow trying it with a bitmap to occupy the place was a good idea. But if or if I need to be able to draw the icon and the name.

    Spoiler

    Arma_1.png.26d9cf87284a00c868ff6966a98086dd.png

    What is underlined in black is the overlay.

        if @actor.equips[0] != nil and $game_player.current_skill[0]
          @Equip_window.draw_text(0, -15 , 120, 50, RE_MENU::Equip)      
          @Equip_window.draw_icon(@actor.equips[0].icon_index, 110, 20, true)
          @Equip_window.draw_text(0, 15 , 150, 50, @actor.equips[0].name)  
        elsif $game_player.current_skill[0] == $data_skills[9]  
          @Equip_window.draw_text(0, -15 , 120, 50, RE_MENU::Equip)
          @Equip_window.draw_icon($data_skills[9].icon_index, 190, 20, true)
          @Equip_window.draw_text(180, 15 , 150, 50, $data_skills[9].name)      
        end 

     

    The above is what in theory should be written in the window. I honestly don't know why that doesn't happen. I will check the Yanfly class to see if I can get something, thanks Phoenix.

     

    EDIT: 

    Well, I have updated the code box, I have managed to show the ability and its name, but now the same thing happens to me as when I wanted to add the skills to the main menu, the skills displayed overwrite the previous equipment.

    • Like 1

  2. Hey! Good afternoon or evening, whatever, I come again with my problems from the menu xd, now I am faced with ... Not being able to draw the skills, it happens that the VXAce (I do not know this case in other Makers) does not take as equipment Skills, and this is a problem, since I can only draw the icons and names of everything that the system recognizes as an object. 

    That is why I would like to know if anyone knows a way to draw the skill either completely (being able to put the name and icon without any problem), or having to mess with something in the background.

    Greetings and thanks to all of you in advance!


  3. 15 hours ago, Kayzee said:

    Personally I would have probobly used a note tag of some kind.

    Regarding the Note Tag I was going to try it, but when I read a tutorial and it was too much to scan, I decided to use the conditionals after all. From what I do, three skills are nothing compared to those people who use a lot of them.

    14 hours ago, PhoenixSoul said:

    Ah, I see. Yeah; no purpose in scanning a lot of skills that aren't going to be used, or that won't be visible anyway.
    (I thought the `$data_skills[9]` was a placeholder-whoops)

     

    You can see it as a placeholder xd Although it helps me too much to know which line I should edit in the future. Luckily now I can progress on my own, thanks to everyone again!

    • Like 1

  4.  

    I did think about it. But seeing that I only use three skills doesn't make much sense to me at least.

    So I make just one general modification that conditionally adds those three.

    Although maybe someone else is the same as me, unless you want to add all the skills.

    (Although I have not seen anyone who wants to mix skills within the menu of items xd)

    • Like 1

  5. Thanks for the comments (? I'll save those explanations for the future. Now I have another problem for this... The skill is displayed in the common items menu and the special items menu.

    Does anyone know the why of this?

     

    Now I attach the script that is almost ready (Do not try it because images are missing and all that.)

     

    I'm sorry if it's in Spanish. It is my first language and the script guided it that way.

     

    Greetings and good night (?


  6. Thank you very much Rorinator! I have managed to show it, now I only have to lay some basic things and it be like new.

     

    In case someone has a similar problem attached as it should be the code.

     

      def make_item_list
        if skill = $game_party.members.any? { |actor| actor.skills.include?($data_skills[9]) }
        @data = $game_party.all_items.select {|item| include?(item) }
        @data << $data_skills[9]
        @data.push(nil) if include?(nil)
      else
        @data = $game_party.all_items.select {|item| include?(item) }
        @data.push(nil) if include?(nil)    
      end
    end

    Greeting and have a nice day.

    • Like 1

  7. Hey Kayzee! Thanks for the help, I have tried it in many ways but it gives me an error as soon as I put the "+" behind the equal.

     

    I honestly don't know what could be generating this.

     

    Here is the error:

    Spoiler

    1668675595_Sinttulo-1.png.f3ecae6cfd10d07cf2c4668477d0e0bf.png

     

     

    I know that you said that the "+" must go after the "=", but the error it shows me is the same.

     

    Greeting and have a nice day.


  8. Hello everyone! You see, I am creating a menu for the SaS IV (Or Saphire Action System) battle system, and the problem is that when creating the item window, these are not shown but the skill is. It is very problematic since I have tried to add the skills as an item in the categories, but I cannot get the skill to show next to the items in any way.

    I put the "item.is_a?(RPG:Skill) on the category
     

    Ruby:
      def include?(item)
        case @category
        when :item
          item.is_a?(RPG::Item) && !item.key_item? or item.is_a?(RPG::Weapon) or item.is_a?(RPG::Skill)
        when :key_item
          item.is_a?(RPG::Item) && item.key_item?
        else
          false
        end
      end

    This is the list created, the original is after the "Else". I have the problem that it shows me only the skills.
     

    Ruby:
      def make_item_list
        if skill = $game_party.members.any? { |actor| actor.skills.include?($data_skills[9]) }
        @data = $game_party.all_items.select {|item| include?(item) }
        @data = $data_skills.select {|skill| usable?(skill) }
        @data.push(nil) if include?(nil)
      else
        @data = $game_party.all_items.select {|item| include?(item) }
        @data.push(nil) if include?(nil)   
      end
    end

    I would greatly appreciate if you could teach me a way to display Skills and Items within the same category.

    I've only made these changes to the menu, so I can't find anything else to clarify.

×
Top ArrowTop Arrow Highlighted