Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Help/Question
  • → CheckEventReuseHL, SetEventReuseHL, and SetEventForceReuseHL

#1 2018-04-10 04:46:27

Fotomac
Member
Registered: 2015-10-25
Post 314/332

CheckEventReuseHL, SetEventReuseHL, and SetEventForceReuseHL

What exactly do they mean? I'm trying to code the Seagallop Ferries into my hack, and I'm not entirely sure if I need to alter or remove any instances thereof as I add Seagallop-related events and such.

Offline

#2 2018-04-11 23:03:26

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 443/450
Website

Re: CheckEventReuseHL, SetEventReuseHL, and SetEventForceReuseHL

They are macros defined in macros/event_macros.asm to deal with event flags. They are meant to be used when the flag address has been already loaded to check a previous flag, so you can skip the ld hl instruction. If they look confusing to you, they are in practice the same as CheckEvent and SetEvent, so you can just use those.

Offline

  • Index
  • → Help/Question
  • → CheckEventReuseHL, SetEventReuseHL, and SetEventForceReuseHL

Board footer

Powered by FluxBB