Hiya...Well...I found this method in a script I'm editing...:
Well...What is it? The script doesn't have the definition, and I never saw it before... o.O
thank you for any help,
cya~
Code:
}
if count > 0
hit = steal_prob * 200
items.size.times { |i|
hit = [hit / 2, 1].max
next if self.stolen_items_flag[i]
item = items[i]
hit_result = (rand(100) < hit)
if hit_result
[COLOR=Red][b]case item[0].upcase[/b][/COLOR]
when "B"
self.stolen_items_flag[i] = true
next
when "I"
steal_item = $data_items[item[1]].name
$game_party.gain_item(item[1], 1)
when "W"
steal_item = $data_weapons[item[1]].name
$game_party.gain_weapon(item[1], 1)
when "A"
steal_item = $data_armors[item[1]].name
$game_party.gain_armor(item[1], 1)
when "G"
steal_item = item[1]
$game_party.gain_gold(item[1])
end
self.stolen_items_flag[i] = true
break
end
}
Well...What is it? The script doesn't have the definition, and I never saw it before... o.O
thank you for any help,
cya~