updates several gym leader graphics
@@ -116,3 +116,44 @@ end
|
|||||||
|
|
||||||
# Example usage: Replace 100 with the switch ID you want to search
|
# Example usage: Replace 100 with the switch ID you want to search
|
||||||
# SwitchFinder.search_switch(100)
|
# SwitchFinder.search_switch(100)
|
||||||
|
|
||||||
|
|
||||||
|
def search_event_scripts(target_string)
|
||||||
|
results = []
|
||||||
|
for map_id in 1..999 # Adjust based on your game's max map ID
|
||||||
|
map_filename = sprintf("Data/Map%03d.rxdata", map_id)
|
||||||
|
next unless File.exist?(map_filename) # Skip if map file doesn't exist
|
||||||
|
|
||||||
|
map_data = load_data(map_filename)
|
||||||
|
next unless map_data.events # Skip maps with no events
|
||||||
|
|
||||||
|
map_data.events.each do |event_id, event|
|
||||||
|
event.pages.each_with_index do |page, page_index|
|
||||||
|
next unless page.list # Skip pages with no commands
|
||||||
|
|
||||||
|
page.list.each_with_index do |command, cmd_index|
|
||||||
|
if command.code == 355 || command.code == 655 # Check script command (multi-line)
|
||||||
|
if command.parameters[0].include?(target_string)
|
||||||
|
results << {
|
||||||
|
map_id: map_id,
|
||||||
|
event_id: event_id,
|
||||||
|
page_index: page_index + 1,
|
||||||
|
command_index: cmd_index + 1
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if results.empty?
|
||||||
|
echoln "No occurrences of '#{target_string}' found."
|
||||||
|
else
|
||||||
|
echoln "Found occurrences of '#{target_string}':"
|
||||||
|
results.each do |res|
|
||||||
|
echoln "Map #{res[:map_id]}, Event #{res[:event_id]}, Page #{res[:page_index]}, Command #{res[:command_index]}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
1740434202
|
1740584547
|
||||||
1740434220
|
1740584552
|
||||||
1740434221
|
1740584599
|
||||||
1740434221
|
1740584599
|
||||||
1740434223
|
1740584604
|
||||||
@@ -610,3 +610,9 @@ Graphics/CustomBattlers/spritesheets/spritesheets_custom/232/232.png
|
|||||||
Graphics/CustomBattlers/spritesheets/spritesheets_custom/233/233.png
|
Graphics/CustomBattlers/spritesheets/spritesheets_custom/233/233.png
|
||||||
Graphics/CustomBattlers/spritesheets/spritesheets_custom/33/33a.png
|
Graphics/CustomBattlers/spritesheets/spritesheets_custom/33/33a.png
|
||||||
Graphics/CustomBattlers/spritesheets/spritesheets_base/469.png
|
Graphics/CustomBattlers/spritesheets/spritesheets_base/469.png
|
||||||
|
Graphics/CustomBattlers/spritesheets/spritesheets_custom/283/283.png
|
||||||
|
Graphics/CustomBattlers/spritesheets/spritesheets_base/27.png
|
||||||
|
Graphics/CustomBattlers/spritesheets/spritesheets_custom/27/27.png
|
||||||
|
Graphics/CustomBattlers/spritesheets/spritesheets_custom/252/252.png
|
||||||
|
Graphics/CustomBattlers/spritesheets/spritesheets_base/331.png
|
||||||
|
Graphics/CustomBattlers/spritesheets/spritesheets_custom/299/299a.png
|
||||||
|
|||||||
BIN
Graphics/.DS_Store
vendored
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 921 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 806 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 984 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 1.3 KiB |