@a=[];$data_common_events.each do |ce|
next if ce.nil?;ce.list.size.times do |i|
cmd=ce.list[i];if cmd.parameters.any?{|prm|
prm.is_a?(String) && prm.include?(
'尚方宝剑')} then
@a << ["公共事件#{ce.id} ",
"第#{i}指令 ",cmd.parameters]
end
end
end
File.open('分析结果.txt', "w"){|f|
@a.each{|e| f.puts e.to_s}}
@a=[];$data_common_events.each do |ce|
next if ce.nil?;ce.list.size.times do |i|
cmd=ce.list[i];if cmd.parameters.any?{|prm|
prm.is_a?(String) && prm.include?(
'尚方宝剑')} then
@a << ["公共事件#{ce.id} ",
"第#{i}指令 ",cmd.parameters]
end
end
end
File.open('分析结果.txt', "w"){|f|
@a.each{|e| f.puts e.to_s}}