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

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old December 13th, 2018 (6:55 PM). Edited December 13th, 2018 by BirdstarCat13.
BirdstarCat13's Avatar
BirdstarCat13 BirdstarCat13 is online now
Furret-loving Iskallian
     
    Join Date: Nov 2017
    Location: RenSkall island
    Gender: Male
    Nature: Adamant
    Posts: 470
    In my hack, one of the things I'm doing is editing a lot of the shinies (and I mean A LOT - Sentret/Furret/Charizard/Crobat/Sunkern/Sunflora/Mewtwo/Gyarados/Alakazam are just a FEW examples) as well as having shinies for all of my custom species. I have already edited the shiny rate to be 1/256, but I want the Shiny chance for the Starter of the game (Furret) to be higher, so anyone who wants to hunt it doesn't have to spend forever SR-ing for it. Essentially, what I want to know if if it's possible to reroll shinyness (in a manner like LGPE Catch Combo) with a script without a whole lot of ASM (not using any ASM would be optimal but I know the chances of this are slim). I am pretty sure it's possible to use Shinyzer to aid in this yes I know Shinyzer uses an ASM routine you don't have to call me out for being a noob or something but I'm not certain if it allows for a method to imitate a higher shiny rate. Optimally, I would want the Starter to have a shiny rate of about 1/32. If this is not reasonably possible (ie would require an unreasonably complex script, or just simply isn't possible), then what would be necessary to just force a shiny?
    __________________
    -------------------------
    I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
    Reply With Quote
      #2   Link to this post, but load the entire thread.  
    Old December 13th, 2018 (8:54 PM).
    DrFuji's Avatar
    DrFuji DrFuji is offline
    Heiki Hecchara‌‌
     
    Join Date: Sep 2009
    Location: Aussie
    Age: 26
    Gender: Male
    Nature: Jolly
    Posts: 1,506
    You can just structure your script to have a 1-in-32 chance of activating the shinyizer like this:

    Code:
    ...
    random 0x20 // Generates a number between 0 and 31
    compare 0x800D 0x0 // Checks if the number is 0
    if 0x1 call @Shiny // Only has a 1/32 chance of branching and returning
    givepokemon 0x1 0xA2 0x0 0x0 0x0 0x0
    ...
    
    #org @Shiny
    setvar 0x8003 0x1
    return
    Technically, the Furret you recieve will have a 9/256 chance of being shiny (due to the non-shinyzed version having a 1/256 of being naturally shiny) but other than that small detail, this should work as intended. If you really want it to be to be 1/32 just change the script to this:

    Code:
    random 0x100
    compare 0x800D 0x6
    if 0x3 call @Shiny
    __________________
    Reply With Quote
      #3   Link to this post, but load the entire thread.  
    Old December 13th, 2018 (11:56 PM).
    BirdstarCat13's Avatar
    BirdstarCat13 BirdstarCat13 is online now
    Furret-loving Iskallian
       
      Join Date: Nov 2017
      Location: RenSkall island
      Gender: Male
      Nature: Adamant
      Posts: 470
      Quote:
      Originally Posted by DrFuji View Post
      You can just structure your script to have a 1-in-32 chance of activating the shinyizer like this:

      Code:
      ...
      random 0x20 // Generates a number between 0 and 31
      compare 0x800D 0x0 // Checks if the number is 0
      if 0x1 call @Shiny // Only has a 1/32 chance of branching and returning
      givepokemon 0x1 0xA2 0x0 0x0 0x0 0x0
      ...
      
      #org @Shiny
      setvar 0x8003 0x1
      return
      Technically, the Furret you recieve will have a 9/256 chance of being shiny (due to the non-shinyzed version having a 1/256 of being naturally shiny) but other than that small detail, this should work as intended. If you really want it to be to be 1/32 just change the script to this:

      Code:
      random 0x100
      compare 0x800D 0x6
      if 0x3 call @Shiny
      Dr. Fuji saves the day again! Thanks a ton! :D <3
      __________________
      -------------------------
      I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
      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
      Ad Content
      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 10:07 AM.