- Joined
- Jan 4, 2019
- Posts
- 243
Chill with the caps man. Anyways, try adding this code to the very bottom of the Modular Pause Menu script:HI I WANT THE SWITCH OPTION TO BE IN MODULAR MENU BY LUKA SJ HOW I DO
Ruby:
# Multiple Protagonists
MenuHandlers.addEntry(:MULTIPLEPROTAGONISTS,_INTL("Multiple Protagonists"),"menuMultipleProtagonists",proc{|menu|
characters = []
characterIDs = []
for i in 0...8
if $PokemonGlobal.allowedCharacters[i] && i != $PokemonGlobal.playerID
characters.push($PokemonGlobal.mainCharacters[i][PBCharacterData::Trainer].name)
characterIDs.push(i)
end
end
if characters.length <= 0
pbMessage(_INTL("You're the only character!"))
next
end
characters.push("Cancel")
command = pbShowCommands(nil, characters, characters.length)
if command >= 0 && command < characters.length - 1
menu.pbHideMenu
pbSwitchCharacter(characterIDs[command])
break
end
},proc{ return $PokemonGlobal.commandCharacterSwitchOn && !pbInSafari? && !pbInBugContest? && !pbBattleChallenge.pbInProgress? })