• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Changing Pokégear background depending on available rematches

27
Posts
10
Years
    • Seen yesterday
    I was wondering how it would be possible to change the main background of the Pokégear menu depending on whether or not there were any available rematches.
    In this snippet from around line 95 of the script 'PokemonPokegear', I wanted to change the "if" condition to ask if any trainers were awaiting a rematch.

    The example line here:

    femback=pbResolveBitmap(sprintf("Graphics/Pictures/pokegearbg2"))
    [S-HIGHLIGHT]if $Trainer.gender==1 && femback[/S-HIGHLIGHT]
    @sprites["background"].setBitmap("Graphics/Pictures/pokegearbg2")
    else
    @sprites["background"].setBitmap("Graphics/Pictures/pokegearbg")
    end

    I've attempted this numerous times with different lines of code from the Phone script, but with no luck. I tried changing it to work with [S-HIGHLIGHT]rematchcount[/S-HIGHLIGHT], and the [S-HIGHLIGHT]Trainer[3][/S-HIGHLIGHT] parts, even including the bits that define the aforementioned additions.

    So I was wondering if someone could lend me a hand here and help figure this out?
    (This is so crazy formal, whaaat. Sorry if I've repeated myself).
     
    Back
    Top