hi there
i tried to script a friendlist (just like the social link list in persona 3), but i have some problems with adding friends...
so i take a look to the items script. that makes me even more confuse lol
if i understand it right, then i have to pre-define friends for the script? something like "$game_party.friend"?
does anyone know how to add stuff in a window_selectable for a list? i appreciate any help x3 thanks in advance
ps.: sorry for my bad english ^^"
i tried to script a friendlist (just like the social link list in persona 3), but i have some problems with adding friends...
so i take a look to the items script. that makes me even more confuse lol
Code:
#--------------------------------------------------------------------------
# * Get Item
#--------------------------------------------------------------------------
def item
return @data[self.index]
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
if self.contents != nil
self.contents.dispose
self.contents = nil
end
@data = []
# Add item
for i in 1...$data_items.size
if $game_party.item_number(i) > 0
@data.push($data_items[i])
end
end
# Also add weapons and items if outside of battle
unless $game_temp.in_battle
for i in 1...$data_weapons.size
if $game_party.weapon_number(i) > 0
@data.push($data_weapons[i])
end
end
for i in 1...$data_armors.size
if $game_party.armor_number(i) > 0
@data.push($data_armors[i])
end
end
end
# If item count is not 0, make a bit map and draw all items
@item_max = @data.size
if @item_max > 0
self.contents = Bitmap.new(width - 32, row_max * 32)
for i in 0...@item_max
draw_item(i)
end
end
end
if i understand it right, then i have to pre-define friends for the script? something like "$game_party.friend"?
does anyone know how to add stuff in a window_selectable for a list? i appreciate any help x3 thanks in advance
ps.: sorry for my bad english ^^"