Jump to content

0x3DD3CE

Member
  • Posts

    77
  • Joined

  • Last visited

Everything posted by 0x3DD3CE

  1. I have had some successful runs with the flag before exclamation, let me try putting the flag after it.. edit: nope, still hangs, lemme try without the ! edit 2: works fine until the last movement part, no idea what's going on
  2. actually no errors, but the game just hangs, I probably checked like 10 times...
  3. Oh ty! BTW I just wanted to edit one trainer's music, and I wanted to give him the Colress battle theme, but now that I come to think of it, it looks impossible as the sprite may be different than intended. edit: Is there anything wrong with this script? My game just hangs when I use it. 2E 00 A6 00 47 05 74 00 10 00 E0 0B 64 00 12 00 06 00 00 00 1E 00 08 00 00 00 4B 00 01 00 FE 00 00 00 65 00 3D 00 00 04 2C 00 00 00 00 00 32 00 3F 00 09 00 00 80 09 00 01 80 2A 00 00 80 1D 00 2A 00 01 80 03 00 1C 00 F5 0A 0A 00 01 80 0A 00 00 80 3D 00 00 04 2D 00 00 00 00 00 32 00 3F 00 30 00 64 00 FF 00 06 00 00 00 1E 00 0C 00 00 00 4E 00 01 00 01 00 01 00 FE 00 00 00 65 00 64 00 12 00 06 00 00 00 1E 00 0C 00 00 00 4D 00 07 00 4E 00 06 00 FE 00 00 00 65 00 6C 00 12 00 30 00 23 00 E0 0B 2F 00 02 00
  4. Hey @Monty3540, a small questio, do you know where the trainer classes are stored? edit: figured that it is in a/0/0/2 383 BTW, does the trainer class decide the music that plays during battle and the sprite used?
  5. Alright, from what I know, the sight range can be specified in the overworld file, byte 0E to 0F, so I guess you could add your value over there. If I'm right, that is automatic once you've given the sight range but if I'm wrong then you could do this, 64 00 (NPC ID) 06 00 - Apply movement 1E 00 08 00 00 00 - IDK why this needs to be there Walk whatever direction, x steps eg. 4C 00 05 00 (Walk up 5 steps) FE 00 00 00 - End movement 65 00 - Wait for movement 64 00 FF 00 06 00 - Apply movement for hero, that's FF 1E 00 08 00 00 00 Face whatever direction eg. 00 00 01 00 (face up for 1 iteration) FE 00 00 00 65 00 - Wait for movement And then your battle script. For the movement things, check this link https://pastebin.com/raw/tJXgpmYA
  6. Actually the thing is while he created a new "trainer", he does not make an entirely new one i.e. with all the custom text and sprite. He only called an existing trainer which is actually rather easy . So I assume we have to dig in to the script assigned to say Clay to actually figure out what line is called in the battle... BTW: For the trainer battle (script 3), I really can't visualize how the battle would go, and as far as I know, it should go something like this.. (pseudocode) lock clink faceplayer flag 0x(ID) store in variable compare condition if false jump x bytes hey, wanna battle? wait key press close message box trainerbattle checkresult if false i.e lost jump x bytes disable trainer end battle sum text idk jump to end wait key press close message box #if lost goto center logic jump to end #if defeated haha i lost alr... wait moment unlock end Although I'm not sure if I'm right, gotta test it later! edit: yeah 381 has the trainer in-battle text like the first battle with your rival can be found in 607 to 609 but is repeated thrice for the 3 starters.
  7. Hey @Monty3540, just a quick question, are the trainer texts in the battle itself i.e in between the battle and right after it, found in a/0/0/2 file 381? It has over 2500 entries and they seem like they would correspond to the text the trainers would say. Thanks in advance! BTW it might be best to actually parse a normal trainer's script using scrparse.lua to figure out what each of his hex codes does, there might be a call routine function stuck right there P.S: Have you figured out how to add text that a trainer would say in the battle just after defeated? It might help
  8. Yeah, it's actually just better to use it in the text file that corresponds to where your trainer is...
  9. Thanks a lot! So the square symbol represent the 'PKMN' signature right? Ideally, I would have it like: 򠶰Red? edit: Nvm, did it in SDSME. Thanks for all the help! I'll credit you in my ROM hack
  10. Hey @Monty3540, thanks for the instant reply. I actually tried it but a whole bunch of nonsense comes up... edit: I actually know how to script n NPC (I don't really have problems with that anymore) and I can make them give items too, so yea
  11. I read your response @Monty3540, thanks for the reply. The problem is I do not know what to do in the file itself (like adding some code or something). So when I open file 382 I see this and I'm not sure what to edit or insert. I'm also confused as to how to determine the ID of the trainer. Thank you in advance!
  12. Hey all, I have been browsing through multiple threads and know that to create my own trainer(s), I have to do the following; 1. Copy paste files in the trdata and trpoke, name them accordingly 2. Go to BWTE 2 - 1000 and change everything to my preference 3. Extract a/0/0/2, go to file 382, and add the trainer's name 4. Reinsert everything after giving a custom script However, I am unsure of the third step as I don't know what to do in the file. I tried relating with ASCII but it seems different. So could someone explain what exactly to do in the file 382 (and how many bytes are allocated per name)?
  13. Ok, I've been browsing throught Andibad's, KazoWAR's and Kaphotics' posts and i am unable to find any sort of explanation of a trade script. I want to add trades in the game and I am unable to understand the script. Any explanation would be helpful. Thank you!
×
×
  • Create New...