Jump to content

18Luxpain
 Share

Recommended Posts

Hi, sorry to bother whoever is reading this, but I had a quick question about the IFYN condition. I've been working on a little project the past few days for my own enjoyment, and I wanted to do something like the creator(s) of Elibian Nights did with their story select; however, every time I try to create a code to do the same thing the game goes back to the opening when I try to talk to a character. I've sifted through Arch's tutorial and the Ultimate Guide, but I seem to be struck with stupidity and cant get the condition to work, or even the Yes/No option to pop up. Ive pasted the relevant code below, if anyone could take a little bit of time to tell me what I messed up on I would be grateful!

(In FEditor Adv)

[OpenMidRight]
[LoadFace][0xFF][0x01]
Are you awake?[Yes][X]

(In my code)

Veronica:
TEX1 0x0814
IFYN 0x01
MNCH 0x01
ENDA
ELSE 0x02
ENIF 0x01
ENDA

Edited by Ghatsu!
Link to comment
Share on other sites

Veronica:
TEX1 0x0814
IFYN 0x01
MNCH 0x01
ELSE 0x02
ENIF 0x01
//Whatever happens if you say no
ENIF 0x02
ENDA

The first ENDA is probably causing problems, as in this case, it shouldn't be there (only at the end).

Link to comment
Share on other sites

Veronica:
TEX1 0x0814
IFYN 0x01
MNCH 0x01
ELSE 0x02
ENIF 0x01
//Whatever happens if you say no
ENIF 0x02
ENDA

The first ENDA is probably causing problems, as in this case, it shouldn't be there (only at the end).

I did as you suggested, but I am still getting sent back to the opening credits whenever I try to talk to the character. Do I need to put something inbetween ENIF 0x01 & 0x02? I tried putting a REMA after ENIF 0x01, but that didnt work either.

(New code)

Veronica:

TEX1 0x0813

IFYN 0x01

MNCH 0x01

ELSE 0x02

ENIF 0x01

ENIF 0x02

ENDA

Link to comment
Share on other sites

Oh right, I should of asked earlier. Is Veronica a defined macro in your definitions? If so, then you need to change Veronica to "VeronicaTalk" or something that's not defined.

EDIT

Do I need to put something inbetween ENIF 0x01 & 0x02?

Only if you want something to happen. If you don't want anything to only happen if you answer no, then you don't need ELSE 0x02 and ENIF 0x02.

Edited by Aura Wolf
Link to comment
Share on other sites

(In FEditor Adv)

[OpenMidRight]

[LoadFace][0xFF][0x01]

Are you awake?[Yes][X]

Maybe it's messing up there. Are you sure you have a portrait in that index?

If you're trying to load the active unit's portrait like a village, then use [LoadFace][0xFF][0xFF].

Link to comment
Share on other sites

Maybe it's messing up there. Are you sure you have a portrait in that index?

If you're trying to load the active unit's portrait like a village, then use [LoadFace][0xFF][0xFF].

...I cant believe I didnt think of that... I changed the portrait to one that actually exists and it worked like a charm! Thanks so much for helping me!!!

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