Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code 1:
- def pbTrainerName(name=nil,outfit=0)
- if $PokemonGlobal.playerID<0
- pbChangePlayer(0)
- end
- trainertype=pbGetPlayerTrainerType
- trname=name
- $Trainer=PokeBattle_Trainer.new(trname,trainertype)
- $Trainer.outfit=outfit
- if trname==nil
- trname=pbEnterText(_INTL("Your name?"),0,7)
- gender=pbGetTrainerTypeGender(trainertype)
- if trname==""
- trname=pbSuggestTrainerName(gender)
- end
- end
- $Trainer=PokeBattle_Trainer.new(trname,trainertype)
- $PokemonBag=PokemonBag.new
- $PokemonTemp.begunNewGame=true
- end
- Code 2:
- def pbEnterText(helptext,minlength,maxlength,initialText="",mode=0,pokemon=nil,nofadeout=false)
- ret=""
- if USEKEYBOARDTEXTENTRY
- pbFadeOutIn(99999,nofadeout){
- sscene=PokemonEntryScene.new
- sscreen=PokemonEntry.new(sscene)
- ret=sscreen.pbStartScreen(helptext,minlength,maxlength,initialText,mode,pokemon)
- }
- else
- pbFadeOutIn(99999,nofadeout){
- sscene=PokemonEntryScene2.new
- sscreen=PokemonEntry.new(sscene)
- ret=sscreen.pbStartScreen(helptext,minlength,maxlength,initialText,mode,pokemon)
- }
- end
- return ret
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement