• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Other] How can I change player's clothes mid game?

  • 6
    Posts
    9
    Years
    • Seen May 20, 2016
    I know it is possible because in Ash gray (Awesome game btw played completely through ;))
    I checked the game's script and here is what is shows
    #org 0x84B19E
    preparemsg 0x884B296 '"[player] changed from his pajamas\..."
    waitmsg
    setvar 0x406C 0x1
    setflag 0x82F
    setvar 0x4054 0x200
    getplayerpos 0x4000 0x4001
    compare 0x4001 0x18
    if 0x1 goto 0x884B2DC
    compare 0x4001 0x19
    if 0x1 goto 0x884B2D0
    release
    end

    I thought I finally understood setvar and compare but I feel like that is where I am missing what changes the clothes... if anyone is so kind enough to help I would appreciate it.
    (Full script in case you want to look at it.):(
    Spoiler:
     
    I expect he wrote a custom ASM routine loaded into those vars. I also achieved in an old hack of mine using an ASM routine but I have long lost the source.
     
    You were so close, it was one of the setvars.

    #org 0x84B19E
    preparemsg 0x884B296 '"[player] changed from his pajamas\..."
    waitmsg
    setvar 0x406C 0x1
    setflag 0x82F
    setvar 0x4054 0x200 - It was this part right here.
    getplayerpos 0x4000 0x4001
    compare 0x4001 0x18
    if 0x1 goto 0x884B2DC
    compare 0x4001 0x19
    if 0x1 goto 0x884B2D0
    release
    end

    To change players clothes all you have to use is:

    Setvar 0x4054 0x(sprite # in NSE in hex)
     
    WOA I can't believe it sounds so simple now that you say it. I can't believe I missed it xD. Thanks so much!
     
    You were so close, it was one of the setvars.

    #org 0x84B19E
    preparemsg 0x884B296 '"[player] changed from his pajamas\..."
    waitmsg
    setvar 0x406C 0x1
    setflag 0x82F
    setvar 0x4054 0x200 - It was this part right here.
    getplayerpos 0x4000 0x4001
    compare 0x4001 0x18
    if 0x1 goto 0x884B2DC
    compare 0x4001 0x19
    if 0x1 goto 0x884B2D0
    release
    end

    To change players clothes all you have to use is:

    Setvar 0x4054 0x(sprite # in NSE in hex)

    Hmmm this is weird... I am trying to do it
    (Script)
    Spoiler:

    And it won't change just says the message and ends. Am I missing something? And props to you Leafeon for posting this I could never find this xD (I was going to wait til I needed to change)
    And thanks ahead of time c06!
     
    Hmmm this is weird... I am trying to do it
    (Script)
    Spoiler:

    And it won't change just says the message and ends. Am I missing something? And props to you Leafeon for posting this I could never find this xD (I was going to wait til I needed to change)
    And thanks ahead of time c06!

    You need to have a full map reset or in otger words add warp or warpmuted to the end of your script.
     
    You need to have a full map reset or in otger words add warp or warpmuted to the end of your script.

    Is there a tutorial on this that would help me a lot :D
    (I often get myself frustrated if I don't figure out what means what ;-;. And I really don't know what is happening. I tried what you said and then tried the whole script and it won't work.) Do I set in script or person script cuz on script on ground it freezes and on person it wont activate.
     
    Is there a tutorial on this that would help me a lot :D
    (I often get myself frustrated if I don't figure out what means what ;-;. And I really don't know what is happening. I tried what you said and then tried the whole script and it won't work.) Do I set in script or person script cuz on script on ground it freezes and on person it wont activate.

    Well, you could also use JPAN's FR engine (Download), that has the ability to change the OW, amongst other things. And I have the feeling that is what is happening here as the variable is the same too.
    These are the variables you can change:
    Code:
    0x4054	Standing and walking
    0x4055	Bike
    0x4056	Sitting (surfing)
    0x4057	VS seeker
    0x4058	Fishing
    0x4059	Vs seeker on bike
    and it goes like this: setvar 0x(var) 0x(table#)(OW index number) <--This last part is all one number.
    You still need to refresh the map.
    This is a list of some the warp commands in FR, among other commands.
     
    Well, you could also use JPAN's FR engine (Download), that has the ability to change the OW, amongst other things. And I have the feeling that is what is happening here as the variable is the same too.
    These are the variables you can change:
    Code:
    0x4054	Standing and walking
    0x4055	Bike
    0x4056	Sitting (surfing)
    0x4057	VS seeker
    0x4058	Fishing
    0x4059	Vs seeker on bike
    and it goes like this: setvar 0x(var) 0x(table#)(OW index number) <--This last part is all one number.
    You still need to refresh the map.
    This is a list of some the warp commands in FR, among other commands.

    Okay I did everything you said except for jpan (it can cause problems on the spriting side of the game by using 1.1) and it ALMOST works except my sprite looks the same. Ps I am not using any new sprite yet so they all should be the same as any fire red

    My script
    Spoiler:

    I just want it to change to a diff sprite nothing in particular (yet) I just want to make it work. Btw I am looking at OWE RE for the sprites.
     
    It won't work unless you're using JPAN's engine. setvar 0x4054 isn't setup to change the OW sprite in the vanilla games.
     
    Ahhh I get it! I will do that then!
     
    It won't work unless you're using JPAN's engine. setvar 0x4054 isn't setup to change the OW sprite in the vanilla games.

    I applied it and I think I am supposed to start a fresh one. It shows a black screen on my custom title page yet I hear sound just I can't do anything.
     
    Are you looking for a temporary change or a permanent one?
    Temporary. I am having it where you are ranking up and changing costumes (for my Rocket Red Hack as you advance up in the ranks I want the character to start changing from grunt clothes) But I have a feeling you meant temporary like from original sprite to diff sprite back to original sprite.
     
    Last edited:
    Back
    Top