Jump to content

Questions about eventing


Narius
 Share

Recommended Posts

Alright, so lets get started. When coding events, how do I make the seize of a chapter character specific? Like lets say I wanted Legault to seize to end chapter instead of Lyn/Eliwood which SEEMS to be the default. Another question, are if statements a thing you can do in event codes (If you don't know what I mean by if statement, then don't answer this specific question.) Also what is ASM. I am under the assumption its a programming language of some kind, but i can't be certain. Thanks in advance to anyone who answers.

Link to comment
Share on other sites

1. I would make an area event on the "seize point" that ends the chapter if you have Legault wait on it, but there might be a more elegant method.

2. Yes.

3. Assembly. I can tell you it is a programming language, but I have no experience with it so I can't explain how it works.

Link to comment
Share on other sites

seizing with variable characters is actually way more of a pain than you'd expect, since you'd need to go rewrite the seize checking code from scratch to allow it to draw from a variable-sized array of eligible characters

wrt if statements, have you considered reading a tutorial on events? most of them have a dedicated section on conditional execution of events. in the interest of actually answering your question, though, there exist various if commands, although nothing as powerful as an all-purpose if-then construct in fe7 (not that you could really do much with it regardless; you have no explicit variable assignment anyway). fe8 is slightly better about things (sllightly), but it's still pretty rudimentary. IF you use assembly, however, you can do whatever you want.

ASM is an awful acronym that doesn't stand for anything; it's actually a shortening of assembly language. In particular, the GBA uses an ARM7TDMI core, so when people talk about "writing ASM" in the context of ROMhacking, they're actually just modifying the core engine code in raw ARM/THUMB (or, in the case of using it in events, you're writing a procedure from scratch that then gets called by your events). Properly, you could do it just as well in C/++ given the right compiler (and there are people who do so), but most people find that the extra prep work just isn't worth it

Edited by CT075
Link to comment
Share on other sites

Wait, I can edit assembly code using C++. Oh please, please share with me your method of doing so. I actually KNOW how to program using C++, so if I can use that knowledge in rom hacking that would be just terrific. Also I can't believe the seize thing is such a pain, an array? Why? Is there no way to just "edit" who can seize it, because i don't care if only 1 person can seize it i just want to be able to change WHO that one person is. Conditional if commands huh? I guess I will be looking that one up. And thats a pain, no variable assigning in hacking, that takes away so much power from the hacker. I just care about something trivial like checking whether or not specific areas have been siezed, event conditions WOULD work for that if I didn't need to check for multiple simultaneously. (I know it can be done, a rom hack called the last promise did it.) Thanks for the information.

Link to comment
Share on other sites

Also I can't believe the seize thing is such a pain, an array? Why? Is there no way to just "edit" who can seize it, because i don't care if only 1 person can seize it i just want to be able to change WHO that one person is.

If a unit can seize in 1 map, they can seize in all of them.

That's how the game is coded by base.

The reason why Lyn can't seize in Hector/Eliwood mode is because she has a different character slot that lacks that ability... I think.

So if you want to be able to make it so that a given character can only seize on certain chapters, you have to code something special for it. ><

Link to comment
Share on other sites

Wait, I can edit assembly code using C++. Oh please, please share with me your method of doing so. I actually KNOW how to program using C++, so if I can use that knowledge in rom hacking that would be just terrific.

just compile normally with like arm-gcc or something (i wouldn't recommend microsoft visual studio; last i checked it does some janky things when trying to compile to THUMB) and extract the binary with readelf; you can just copypaste the relevant bytecode into the ROM. it's kind of annoying to make it work properly though because afaik there aren't a whole lot of ways to make your compiler aware of the calling conventions of the existing in-rom functions so you might have to just fix the register use/etc yourself by hand

Also I can't believe the seize thing is such a pain, an array? Why? Is there no way to just "edit" who can seize it, because i don't care if only 1 person can seize it i just want to be able to change WHO that one person is.

there's a single value somewhere that i don't really care to look up; i'm sure you could find it by looking for the "all lords can seize" patch on FEU and diffing the result or something

Conditional if commands huh? I guess I will be looking that one up. And thats a pain, no variable assigning in hacking, that takes away so much power from the hacker. I just care about something trivial like checking whether or not specific areas have been siezed, event conditions WOULD work for that if I didn't need to check for multiple simultaneously.

this is trivial with the standard commands
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...