Jump to content

If dead event questions [FE7]


thekealganon
 Share

Recommended Posts

Back again with another Question. Thanks for the other replies, it helped out a lot.

Anyways, I am trying to make a event appear after Bors (The enemy in this case) dies, sparking dialog and reinforcements, etc.

Although everything works up to this point, except everytime I add something like this:

Misc_events:
IFCD 0x02 0x01
ENIF 0x01
AFEV 0x01 SayleanSpeach 0x02

CauseGameOverIfLordDies
DefeatBoss(Ending_event)
DefeatAll(Ending_event)
End_MAIN

After attacking an enemy, everything freezes and I don't know what to do about it. All I know, is that it has something to do with IFCD 0x02 0x01, because when I remove it, everything goes fine, except the dialogue doesn't appear when and where I want it to be...

I included my full events, to get a better idea what I'm talking about.

Can someone give me some insight or help as to what I'm doing wrong?

thanks

events.txt

Link to comment
Share on other sites

I've not done this kind of event before, but I believe the first parameter is the conditional ID, so it's freezing because that conditional block doesn't have an ENIF. You'd need to do either IFCD 0x01 0x01 or ENIF 0x02. Also, shouldn't the AFEV go before the ENIF?

Edited by Tequila
Link to comment
Share on other sites

You can't do a conditional check in the Misc_events section. You have to create a label in the Misc_events and the label contains the conditional.

Misc_events:
AFEV 0x01 SayleanSpeech 0x02 // SayleanSpeech gets called after event ID 0x02 is triggered
END_MAIN
 
SayleanSpeech:
IFCD 0x01 0x01    // Note that conditional IDs and Event IDs are totally separate and have nothing to do with each other.
// Do something if character 0x01 is dead
ENIF 0x01
ENDA
 
Link to comment
Share on other sites

What I'd do

AFEV eventID SceneLabel eventIDofPreviousEvent // just the template

Misc_events:
CauseGameOverIfLordDies
AFEV 0x09 Event 0x06 // change death quote ID to 0x06 in NIGHTMARE 
End_MAIN

Event:
LOU1 Units //or any event you like
ENUN
ENDA

That's my way of doing it haha

Link to comment
Share on other sites

Ok, so I took Primefusions advice, and added in the stuff like this:

Misc_events:
CauseGameOverIfLordDies
AFEV 0x03 DeadEvent 0x02
DefeatBoss(Ending_event)
DefeatAll(Ending_event)
End_MAIN

SayleanSpeach:
CAM1 [22,4]
CURF [22,4]
TEX1 0x081B
REMA
ENDA

Deadevent:
IFCD 0x03 0x01
ENIF 0x01
ENDA

Although, after I added that in, event assembler tells me: "Symbol Deadevent isn't in scope."

Link to comment
Share on other sites

The reason it errors out is because you called the label "Deadevent" but the AFEV makes reference to "DeadEvent" (note the capitalization).

However, even if you get the code to parse, Deadevent doesn't do anything right now. You start the conditional and then immediately end it on the next line.

Also, I noticed you used Event ID 0x03 for the AFEV. The ROM reserves IDs 0x01 through 0x05 for internal usage. You'll need to start at 0x06 for Event IDs.

Edited by Primefusion
Link to comment
Share on other sites

The reason it errors out is because you called the label "Deadevent" but the AFEV makes reference to "DeadEvent" (note the capitalization).

However, even if you get the code to parse, Deadevent doesn't do anything right now. You start the conditional and then immediately end it on the next line.

Also, I noticed you used Event ID 0x03 for the AFEV. The ROM reserves IDs 0x01 through 0x05 for internal usage. You'll need to start at 0x06 for Event IDs.

That's right. Basically, in other words, "Deadevent" isn't attached to anything, "DeadEvent" is. Event Assembler will pick up the labels if they're formatted correctly, but doesn't check to see if they're connected to anything.

You always want to make sure your SceneLabels have connections to something else.

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...