Files
pokemon/scripts/infinity-money.ps1
ginnoir 9351f8b415 Add Pokémon Infinity money and debug-mode helpers.
These scripts edit Essentials save money offline and toggle the in-game debug menu so pokeball shopping does not require manual save hex editing.
2026-06-26 23:58:39 -05:00

39 lines
880 B
PowerShell

<#
.SYNOPSIS
Quick money edit for Pokémon Infinity save files.
.DESCRIPTION
Wrapper around scripts/infinity-money-trainer.py. Close the game first.
.EXAMPLE
.\infinity-money.ps1
.\infinity-money.ps1 -Amount 500000
.\infinity-money.ps1 -Show
#>
[CmdletBinding()]
param(
[int]$Amount = 999999,
[string]$Slot,
[switch]$Show,
[string]$SaveDir
)
$script = Join-Path $PSScriptRoot 'infinity-money-trainer.py'
if (-not (Test-Path -LiteralPath $script)) {
throw "Missing trainer script: $script"
}
$args = @($script)
if ($SaveDir) { $args += @('--save-dir', $SaveDir) }
if ($Show) {
$args += 'show'
} else {
$args += @('set', [string]$Amount)
if ($Slot) { $args += @('--slot', $Slot) }
}
Write-Host "Pokémon Infinity money trainer" -ForegroundColor Cyan
Write-Host "Close the game before continuing." -ForegroundColor Yellow
python @args