18Luxpain Posted July 10, 2015 Share Posted July 10, 2015 (edited) 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 0x0814IFYN 0x01MNCH 0x01ENDAELSE 0x02ENIF 0x01ENDA Edited July 11, 2015 by Ghatsu! Quote Link to comment Share on other sites More sharing options...
Aura Wolf Posted July 10, 2015 Share Posted July 10, 2015 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). Quote Link to comment Share on other sites More sharing options...
18Luxpain Posted July 10, 2015 Author Share Posted July 10, 2015 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 Quote Link to comment Share on other sites More sharing options...
Aura Wolf Posted July 10, 2015 Share Posted July 10, 2015 (edited) 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 July 10, 2015 by Aura Wolf Quote Link to comment Share on other sites More sharing options...
18Luxpain Posted July 10, 2015 Author Share Posted July 10, 2015 Veronica isn't defined, so using it like this shouldnt interfere with the code. Quote Link to comment Share on other sites More sharing options...
Aura Wolf Posted July 10, 2015 Share Posted July 10, 2015 (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]. Quote Link to comment Share on other sites More sharing options...
18Luxpain Posted July 10, 2015 Author Share Posted July 10, 2015 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!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.