Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ff3:ff3us:tutorial:events:branch [2018/05/06 17:13] lockirby2 [Example] |
ff3:ff3us:tutorial:events:branch [2018/05/06 17:26] lockirby2 [Event Bits Higher Than $2FF] |
||
---|---|---|---|
Line 28: | Line 28: | ||
Right now, players can trigger our new Narshe guard cutscene infinitely many times, summoning as many guards as they please. | Right now, players can trigger our new Narshe guard cutscene infinitely many times, summoning as many guards as they please. | ||
- | First, we should look through the Event Bits Document to find a bit that is unused by the vanilla game. Arbitrarily, | + | First, we should look through the Event Bits Document to find a bit that is unused by the vanilla game. Arbitrarily, |
Now we need to revisit the beginning of the cutscene to add the command that branches based on our event bit. Looking in the Event Commands Document, we can see that the $C0 command allows us to do this. We need to specify five parameters for this command, so we will need to copy the existing cutscene and paste it six bytes ahead. | Now we need to revisit the beginning of the cutscene to add the command that branches based on our event bit. Looking in the Event Commands Document, we can see that the $C0 command allows us to do this. We need to specify five parameters for this command, so we will need to copy the existing cutscene and paste it six bytes ahead. | ||
Line 42: | Line 42: | ||
{{: | {{: | ||
- | Conveniently, | + | Conveniently, |
===== Reading the Event Script Dump ===== | ===== Reading the Event Script Dump ===== | ||
- | Event bits are represented in different ways depending on what document or tool you are using to view them. In the Event Bits Document, each Event Bit is represented by a number between $000 and $2FF, as you have seen. However, if you look in the Event Script Dump, you may see a line like the following: | + | Event bits are represented in different ways depending on which document or tool you are using to view them. In the Event Bits Document, each Event Bit is represented by a number between $000 and $2FF, as you have seen. However, if you look in the Event Script Dump, you may see a line like the following |
'' | '' | ||
- | This line only refers to a single event bit ($1CC), which has been bolded and underlined. | + | This line only refers to a single event bit ($1CC), which I have bolded and underlined. |
==== Event Bits Higher Than $2FF ==== | ==== Event Bits Higher Than $2FF ==== | ||
Line 56: | Line 56: | ||
{{: | {{: | ||
- | You can cross reference this with the event dump by looking at the following part of the line: | + | You can cross reference this with the event dump by looking at the following part of lines like this: |
'' | '' | ||
In this way, you can tell that " | In this way, you can tell that " |