Jump to content


New Member
  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Monty3540

  • Rank
    New Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I managed to work around this with some trial and error. I now have scripts for BW & B2W2 where the Meloetta, Keldeo (Moor of Iccuris in BW and Pledge Grove in B2W2) and Genesect P2 Lab Events all work without needing a Fateful Encounter Event Mons. Also the Reveal Glass Event in B2W2 now works if you bring Tornadus & Thundurus to the shrine and Landorus appears once you get the Glass - similar to BW. I just need to do the Zoroark and Zorua BW events next when I get chance.
  2. I just tested the zdXow.lua script on my version of White and it works You just need to download that one and copy / paste it into the directory where you have your game files for your BW rom If using Desmume 0.911, you then need to click Tools > Lua Scripting > New Lua Script Window and locate the .lua file
  3. You need to identify the script used in the place where the NPC gives you the item. If you use the Lua Script from Kaphotics when you are in the location in-game, that should help you identify this. The Lua Script to download and paste into the same place where you load your ROM from is zdXow. I would read the first link below for some background into this. Gen 5 Lua Script Info B2W2 Lua Scripts You will need to download NPRE 1226, this will allow you load your ROM, then view the script required from above in understandable language. NPRE 1226 You will need to extract the Narc from your ROM using Nitro Explorer 2b or Tinke. (Links should be on this site somewhere) The Narc you want to extract is a056. NitroExplorer2b / Tinke Next you will need to use the program called Kiwi, where you drag your extracted Narc into that to decompress the files within the narc (There should be over 1200 files extracted) Kiwi You will then need to open that script file in HxD (or any hex editor) then convert the offset number from NPRE into Hex (use the Windows Calculator in Scientific mode as it does it for you) HxD Hex Editor That will allow you to find the part of the script where the NPC gives you the item. Use this link here to identify the Gen 5 item numbers, then change whatever the current item is to the Super Rod. Gen 5 Item List + Index Numbers It seems like a lot to read but once you get the hang of it - it isn't too bad. Hope this helps.
  4. Hi there Has anyone had any experience of modifying the two codes that declare the Pokemon species involved in Fateful Encounter events in BW1 and B2W2 (Keldeo, Meloetta etc.)? The code varies between the two, being 0x220 and 0x20D respectively in BW and B2W2. It is displayed in script in an example like below: Meloetta Castelia Cafe Script: (Script #106 in both BW1 & B2W2 versions) - Full Hex is attached just incase Offset: 91 0x20D Offset: 93 0x288 0 0x8022 0x8010 Offset: 101 StoreVar 0x8010 Offset: 105 CompareTo 1 Offset: 109 Condition EQUAL Hex for this portion of script is: 0D 02 88 02 01 00 22 80 23 80 09 00 23 80 08 00 00 00 11 00 01 00 Basically I am just trying to work out how does this script call that specific Pokemon to be a Fateful Encounter / Event Pokemon. And/or how then to edit that so I can change it so that Pokemon specific does NOT have to be an Event Pokemon. Which would fit nicely into a ROM Hack such as Drayano's Volt White 2 & Blaze Black 2. I have seen the Pastebin from the BW Scripting thread HERE - Which @Kaphotics filled with all the scripts a few years ago (Which has been a god send to learn from!) I just can't work out how the command sets the Pokemon species to be 'Event Only', and then how to alter it so it works for non-event Pokemon Any help would be much appreciated Thanks Monty3540 6_106 6_106 Meloetta Event.txt
  5. FYI I worked it out! Did some editting on the Regigigas script and manage to get my script working. Basically now if you have Tornadus and Thundurus in your party and visit the Abundant Shrine, the Reveal Glass event will now play once. I have also made it so Landorus appears after a white flash, once the man moves off screen after giving you the item. I am happy to share the Script and Overworld file for it if needed. I will in the future change it so Landorus flies down to the shrine like in BW1, I will look into how I add that movement in after my previous attempt failed.
  6. For the Item IDs, use the Bulbapedia link attached: https://bulbapedia.bulbagarden.net/wiki/List_of_items_by_index_number_(Generation_V) This will give you the number you need to alter in hex to change into the Liberty Pass (Item # 574 Hex# 0x023E) You will need to find the script that is associated with Pinwheel Forest / the area you want to receive the pass (Eg. When Lenora gives you a Moon Stone) and change the number of the item they give you in the script , to the Liberty Pass item number via Hex editting and use of NPRE 1226 (If you look up some of Kaphotics Tutorials it should help you out alot) There is a possibility of using Hex to add / edit an NPC to give you the Liberty Pass in-game in Castelia or any other point of the game, if you reverse engineer some of the scripts / view Kaphotics NPC Give-item tutorial on Youtube. Hope this helps!
  7. Hi there After a few weeks away I have come back to some B2W2 rom hacking I am trying to trigger an event where a specific NPC will appear only when two certain Pokemon are in your party when you enter the area. (The NPC has a flag set in the Overworld file ready) I have looked at the Regigigas event script, which works in terms of triggering the event - but the NPC exists as there is no flag command within the 1018 script for the Regigigas event. (Regigigas always appears and only dissapears when you battle / run / capture it. Additionally I looked at the BW1 script from the Abundant Shrine where if you have both Tornadus & Thundurus in your party, it will trigger Landorus to appear at the Shrine. However I am struggling to understand which specific part of the script is requied to achieve what I am trying to do. (I would like to put the entire BW1 Landorus event into B2W2 ideally at some point, I did try adding it in briefly but failed miserable - so that would be a future task) If I attached the specific scripts I have mentioned here, would anyone be able to help point me in the right direction please to help work this out and apply it? Many Thanks Monty3540
  8. Basically trying to implement the same encounter for Landorus at the shrine in B2W2 and BW. (Script file 752 in both versions) So when you have both Tornadus and Landorus in your party, it causes Lando to float down after interacting with the shrine. I tried using the existing script from BW and amending to match the flags and Stored Version isn’t working for me.
  9. I have never come across that error. But again I havent modified that aspect to the same extent as you yet I am afraid. So I am not much help on that sorry! Im still trying to get this Landorus event to work....
  10. I think I have made some progress on this... I wasn't having much luck with the original script to start with, so I looked at the Regigigas script for where it calls on the species of the Regi's to awaken Regigigas. So I have been able to get the event to work as intended by swapping that in, instead of the current 0x285 0 0x8023 0x8024 command in the original 752 Abundant Shrine script. The script I now have for the event is as follows: Editted Abundant Shrine Script - Using Regi script to identify species in party === Script 1 === Offset: 44 SetVarEqVal 0x8023 0 Offset: 50 0x114 645 0x8023 Offset: 56 StoreVar 0x4150 Offset: 60 CompareTo 0 Offset: 64 Condition EQUAL Offset: 68 StoreVar 0x8023 Offset: 72 CompareTo 1 Offset: 76 Condition EQUAL Offset: 80 If FALSE Function 0 (103 ) Offset: 87 ClearFlag 1028 Offset: 91 SetVarEqVal 0x4150 1 Offset: 97 Jump Function 1 (132 ) === Function0=== Offset: 103 SetFlag 1028 Offset: 107 StoreVar 0x4150 Offset: 111 CompareTo 1 Offset: 115 Condition EQUAL Offset: 119 If FALSE Function 1 (132 ) Offset: 126 SetVarEqVal 0x4150 0 Offset: 132 StoreVar 0x4155 Offset: 136 CompareTo 0 Offset: 140 Condition EQUAL Offset: 144 If FALSE Function 2 (155 ) Offset: 151 ClearFlag 1038 Offset: 155 SetVarEqVal 0x8023 0 Offset: 161 End Var 4150 is needed for the actual script that runs when the man gives you the reveal glass. The only issue I have, is that the man will appear there each time you revisit the area with Landorus in your party - even if you have already received the Reveal Glass. When you dont have him in your party, he doesn't appear - so that all works as planned. The ClearFlag for the event is in the script still, for when Landorus is in your party the same as the original script above. A SetFlag for the man and the event (1028) is at the end of the script from receiving the Reveal Glass. This is also in the original event script. Which I have pasted below for reference: Original Abundant Shrine 752 Script (Landorus Event Trigger) === Script 1 === Offset: 44 SetVarEqVal 0x8023 0 Offset: 50 SetVarEqVal 0x8024 0 Offset: 56 SetVarEqVal 0x8025 0 Offset: 62 0x20D Offset: 64 0x285 0 0x8023 0x8024 Offset: 72 0x2F2 Offset: 74 Logic07 0x8025 Offset: 78 StoreVar 0x8024 Offset: 82 CompareTo 1 Offset: 86 Condition EQUAL Offset: 90 StoreVar 0x4150 Offset: 94 CompareTo 2 Offset: 98 Condition DIFFERENT Offset: 102 StoreVar 0x8025 Offset: 106 CompareTo 1 Offset: 110 Condition EQUAL Offset: 114 Condition BOTH Offset: 118 Condition BOTH Offset: 122 If FALSE Function 0 (145 ) Offset: 129 ClearFlag 1028 Offset: 133 SetVarEqVal 0x4150 1 Offset: 139 Jump Function 1 (174 ) === Function0=== Offset: 145 SetFlag 1028 Offset: 149 StoreVar 0x4150 Offset: 153 CompareTo 1 Offset: 157 Condition EQUAL Offset: 161 If FALSE Function 1 (174 ) Offset: 168 SetVarEqVal 0x4150 0 Offset: 174 StoreVar 0x4155 Offset: 178 CompareTo 0 Offset: 182 Condition EQUAL Offset: 186 If FALSE Function 2 (197 ) Offset: 193 ClearFlag 1038 Offset: 197 SetVarEqVal 0x8025 0 Offset: 203 SetVarEqVal 0x8024 0 Offset: 209 SetVarEqVal 0x8023 0 Offset: 215 End Do I need to add an additional SetVarEqVal into this script to define the amount of times he appears as 1? I saw this post by @Kaphotics in the B2W2 General Rom Info regarding the Vars involved in item scripts Where in his NPRE notes, the first variable set was the Item Hex, second was the quantity and the third was the flag. Does this work the same way in the original script for the Landorus event? Apologies if it sounds like an amateur question - I haven't really got my head around the variables for scripting yet outside of Static Encounter battles and Trainer battles
  11. If I remember off the top of my head .... At the bottom of the script (battling Kyurem in normal form), there is an Add NPC command - near his SetFlag 1603 It should be the DNA splicer item If you check the overworld script data for it , you should be able to find the values for the overworld sprite , flag and script Item ID should match this list :https://m.bulbapedia.bulbagarden.net/wiki/List_of_items_by_index_number_(Generation_V)
  12. Hi there I am trying to make some of the special events in the game that are normally locked behind special versions of a Pokemon work for non-event versions of the Pokemon. For example- the Reveal Glass event at the Abundant Shrine for when you bring a Dream Radar Therian Forme Landorus to the area As well as bringing an Event Keldeo to Pledge Grove etc. I have been trying to edit the Reveal Glass event, so that it appears if you bring a Landorus of any forme (whether it is caught in game, traded from BW etc.) However I struggling to work what needs editting from the script.... I have attached the script file for 752 (it is the first script I believe) as well as the hex to see if anyone can help shed some light on the commands if possible. I assume the variables 8023, 8024 and 8025 are it's Forme, the game it is from and checking the Trainer ID differs - but I could be wrong.... Well I know I am wrong as so far the best I have managed to get, if the man to appear if I put in a Landorus encounter in the shrine - however that is as far as I have got so far....Editting that first script I must be doing something wrong as I have made it crash multiple times... Any help would be greatly appreciated! 6_752 Abundant Shrine Script B2W2
  13. I haven't done one for catching a certain Pokemon yet... Well the only real one I have added related to that is from catching Azelf it cleared a flag for Dialga, catching Mesprit for Palkia and Uxie for Giratina. I then stuck them at the summit of Dragonspiral Tower in a similar way to how they appear at Spear Pillar in Platinum. Giratina is in the bottom of Wellspring Cave on my rom now. Albeit the Regigigas script would have been better for this - so I may revisit that at some point Maybe you should look at Kyurems script for what you are thinking... As after his battle when he drops the DNA Splicers, clearing a flag for the Pokeball NPC. That could work for you. The Script is 1208 off the top of my head... I think I know what you are thinking for adding in Arceus ! Catching all the Pokemon availaible, then you can get him in Nature Preserve / somewhere
  • Create New...