The PokéCommunity Forums Fan Games ROM Hacking
Script Sprite doesn't reappear after clearflag before warp

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.


Reply
 
Thread Tools
  #1    
Old May 10th, 2018 (4:19 AM). Edited May 10th, 2018 by Sakakii.
Sakakii's Avatar
Sakakii Sakakii is offline
     
    Join Date: Nov 2017
    Posts: 43
    Code:
    clearflag 0x159
    setvar 0x4059 0x0
    warp 0x1 0x6F 0xFF 0x3 0x11
    end
    This bit of code (it's a long script so I just post the most relevant stuff) is supposed to unhide a person
    in the current map, however when I come back to the map, the person is still hidden.

    Edit: I solved the issue, was just a case of forgetting to put checkflag in the part of my script that checks for gender...

    But now I have a new problem; right before the warp happens, if the player spams start button + a, they can get into the menu before the warp completes, and this will glitch the game out. The music stops playing, scripts in the level bugs out..

    Any idea how I can write the code to make it not possible to do this glitch?
    Reply With Quote

    Relevant Advertising!

      #2    
    Old May 10th, 2018 (6:15 AM). Edited May 10th, 2018 by Raflo75.
    Raflo75's Avatar
    Raflo75 Raflo75 is offline
       
      Join Date: Feb 2017
      Location: Jaén/Andalucia/España
      Gender: Male
      Nature: Brave
      Posts: 2
      In your script you must add a showsprite command after the clearflag for reappear the sprite.


      clearflag 0x159
      showsprite 0x(sprite)
      setvar 0x4059 0x0
      warp 0x1 0x6F 0xFF 0x3 0x11
      end
      __________________
      [url="http://www.pokecommunity.com/showthread.php?t=325333"]
      Reply With Quote
      Reply

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account

      Sponsored Links
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 11:30 PM.