08-19-2016, 02:26 AM 
	
	
	
		I apologize, I forgot that element is an array so it cant be used to sort item array.
However, I tried the following and it works for the most part. Edit the Add Item part in Item Window
	
	
	
	
	
However, I tried the following and it works for the most part. Edit the Add Item part in Item Window
Code:
# Add item
    for i in 1...$data_items.size
      if $game_party.item_number(i) > 0
        @data.push($data_items[i])
        if $game_temp.in_battle
          @data.sort! do |d1, d2| 
            d2.recover_hp <=> d1.recover_hp
          end
        end
      end
    end
 
 
 What's up, RMers?
 What's up, RMers?
 

