more
This commit is contained in:
+18
-18
@@ -40,16 +40,16 @@ ForEach-Object {
|
||||
$messagebox = $matches[6]
|
||||
|
||||
$replacement = "$eventScript::
|
||||
trainerbattle_single $trainer, $introText, $defeatText
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, $eventScript`Rematch
|
||||
msgbox $postbattle, $messagebox
|
||||
end
|
||||
trainerbattle_single $trainer, $introText, $defeatText
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, $eventScript`Rematch
|
||||
msgbox $postbattle, $messagebox
|
||||
end
|
||||
|
||||
$($eventScript)Rematch::
|
||||
trainerbattle_rematch $trainer, $introText, $defeatText
|
||||
msgbox $postbattle, $messagebox
|
||||
end"
|
||||
$($eventScript)Rematch::
|
||||
trainerbattle_rematch $trainer, $introText, $defeatText
|
||||
msgbox $postbattle, $messagebox
|
||||
end"
|
||||
|
||||
$content = $content -replace [regex]::Escape($item), $replacement
|
||||
} elseif ($item -match '^\s*([A-Za-z0-9_]+)::\s*\r?\n\s*trainerbattle_double\s+([A-Za-z0-9_]+),\s*([A-Za-z0-9_]+),\s*([A-Za-z0-9_]+),\s*([A-Za-z0-9_]+)\r?\n\s*msgbox\s+([A-Za-z0-9_]+),\s*([A-Za-z0-9_]+)\r?\n\s*end') {
|
||||
@@ -62,16 +62,16 @@ ForEach-Object {
|
||||
$messagebox = $matches[7]
|
||||
|
||||
$replacement = "$eventScript::
|
||||
trainerbattle_double $trainer, $introText, $defeatText, $notenoughmons
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, $eventScript`Rematch
|
||||
msgbox $postbattle, $messagebox
|
||||
end
|
||||
trainerbattle_double $trainer, $introText, $defeatText, $notenoughmons
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
goto_if_eq VAR_RESULT, TRUE, $eventScript`Rematch
|
||||
msgbox $postbattle, $messagebox
|
||||
end
|
||||
|
||||
$($eventScript)Rematch::
|
||||
trainerbattle_rematch_double $trainer, $introText, $defeatText, $notenoughmons
|
||||
msgbox $postbattle, $messagebox
|
||||
end"
|
||||
$($eventScript)Rematch::
|
||||
trainerbattle_rematch_double $trainer, $introText, $defeatText, $notenoughmons
|
||||
msgbox $postbattle, $messagebox
|
||||
end"
|
||||
|
||||
$content = $content -replace [regex]::Escape($item), $replacement
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user