Users browsing this thread: 1 Guest(s)
Questions about Event Scripts

#4
Posts: 377
Threads: 34
Thanks Received: 10
Thanks Given: 7
Joined: Dec 2018
Reputation: 18
Status
Moog
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:
Code:
CA0039: {C0-27-01-08-01-00}   If ($1E80($127) [$1EA4, bit 7] is clear), branch to $ CA0108
This is a typical 'always branch' in the event code.
  Find
Quote  
[-] The following 1 user says Thank You to C-Dude for this post:
  • Rycona (04-28-2021)



Messages In This Thread
Questions about Event Scripts - by Rycona - 04-28-2021, 12:21 PM
RE: Questions about Event Scripts - by Gi Nattak - 04-28-2021, 01:28 PM
RE: Questions about Event Scripts - by Rycona - 04-28-2021, 01:57 PM
RE: Questions about Event Scripts - by C-Dude - 04-28-2021, 01:57 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite