so I have been learning different note box methods but my dumb brain is having issues with items noteboxs. I did try reverse engineering a scripts note boxing. Which worked for a while till I found out picking an item up before the noteboxed item, stops my script activation system from working. so I came here to see what I am doing wrong
my code
the code I used
my code
Ruby:
class Game_Party
def item_note(num)
it = self.items.find_all{|i| i.note =~ /#{Map::Map_Name::Name[num][0]}/}
return false unless $~
$game_system.map_unlock_open(num,Map::Map_Name::Name[num][0])# this just adds to a global non item system
it.each{|i| numb += item_number i }
return Map::Map_Name::Name[num][0]
end
the code I used
Ruby:
def num_lockpicks
it = self.items.find_all{|i| i.note =~ Tidloc::Games::LockPick::Notetags[:pick]}
it += self.items.find_all{|i| i.note =~ Tidloc::Games::LockPick::Notetags[:unbreak]}
num = 0
it.each{|i| num += item_number i }
return num
end