Users browsing this thread: 1 Guest(s)
Questions about Event Scripts
04-28-2021, 01:57 PM
Yeah, within an action queue the commands take on different functions.
So you'll see something like
"Begin action queue for character $04 (8 bytes)"
and then there will be 8 bytes of commands that follow, which do different things than the same hex values when they're NOT in an action queue.
That's why all action queues have a form of parenthesis: they tell the game how long they are going to be in bytes and then they always end with an $FF to resume normal function.
If you're looking to branch outside of an action queue, you will need to check an always-unchanging event bit and do a jump. I use event bit $127 for this, but I know there are at least two more that do so.
EX:
This is a typical 'always branch' in the event code.
So you'll see something like
"Begin action queue for character $04 (8 bytes)"
and then there will be 8 bytes of commands that follow, which do different things than the same hex values when they're NOT in an action queue.
That's why all action queues have a form of parenthesis: they tell the game how long they are going to be in bytes and then they always end with an $FF to resume normal function.
If you're looking to branch outside of an action queue, you will need to check an always-unchanging event bit and do a jump. I use event bit $127 for this, but I know there are at least two more that do so.
EX:
Code:
CA0039: {C0-27-01-08-01-00} If ($1E80($127) [$1EA4, bit 7] is clear), branch to $ CA0108
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)