Tactician Aria Posted February 5, 2017 Share Posted February 5, 2017 (edited) So, I need some help again. I need the game to check if certain NPCs are alive by chapters end and the reward for saving these NPCs is opening a gaiden chapter. However, as you may have guessed I have no idea how to set this up. Could someone show me the code I need, or point me in a direction where I could find it? Last question tonight I promise. Edited February 6, 2017 by Tactician Duel Quote Link to comment Share on other sites More sharing options...
Primefusion Posted February 5, 2017 Share Posted February 5, 2017 Give the NPCs death quote IDs, then check if the IDs were triggered using IFET/IFEF. Quote Link to comment Share on other sites More sharing options...
Tactician Aria Posted February 5, 2017 Author Share Posted February 5, 2017 Just now, Primefusion said: Give the NPCs death quote IDs, then check if the IDs were triggered using IFET/IFEF. I-I'm not sure how to use those codes... Could you elaborate a bit? Sorry. Quote Link to comment Share on other sites More sharing options...
Primefusion Posted February 5, 2017 Share Posted February 5, 2017 (edited) Death quotes you set up using the Nightmare modules. IFET and IFEF are conditionals. Specifically IF Event True and IF Event False. Example: Ending_event: IFEF 0x01 0xYY // Replace YY with the death quote ID you chose for an NPC (start at 0x06 just like other event IDs) // If you have more than 1 NPC you're checking for, use another IFEF and check the next ID ITGM 0xZZ // Give reward if the ID was not triggered ENIF 0x01 // Any other stuff that needs to happen MoveToChapter(0x??) ENDA If you're having trouble with the concepts of conditionals, check Arch's tutorials. Edited February 5, 2017 by Primefusion Quote Link to comment Share on other sites More sharing options...
Tactician Aria Posted February 5, 2017 Author Share Posted February 5, 2017 9 hours ago, Primefusion said: Death quotes you set up using the Nightmare modules. IFET and IFEF are conditionals. Specifically IF Event True and IF Event False. Example: Ending_event: IFEF 0x01 0xYY // Replace YY with the death quote ID you chose for an NPC (start at 0x06 just like other event IDs) // If you have more than 1 NPC you're checking for, use another IFEF and check the next ID ITGM 0xZZ // Give reward if the ID was not triggered ENIF 0x01 // Any other stuff that needs to happen MoveToChapter(0x??) ENDA If you're having trouble with the concepts of conditionals, check Arch's tutorials. So something like this?: Ending_event: Game_Win: IFEF 0x01 0x62 MNCH 0x03 ENIF 0x01 IFET 0x01 0x62 MNCH 0x04 ENIF ENUN ENDA (There will be actual events in there later, but this is just a test setup.) Quote Link to comment Share on other sites More sharing options...
Primefusion Posted February 5, 2017 Share Posted February 5, 2017 (edited) I'm trying to understand your intent. Are you trying to make so that if ID 0x62 wasn't triggered, you go to chapter 0x03, and if it was you go to chapter 0x04? If so, you should be using an if/else structure: Ending_event: IFEF 0x01 0xYY MNCH 0x03 ELSE 0x02 ENIF 0x01 MNCH 0x04 ENIF 0x02 // I don't know why you had an ENUN in here. It doesn't do anything in this context ENDA Also, I wouldn't use an ID like 0x62 if I were you. IDs greater than 0x40 can get very finicky and may be reset if you suspend and resume the game. Edited February 5, 2017 by Primefusion Quote Link to comment Share on other sites More sharing options...
Tactician Aria Posted February 6, 2017 Author Share Posted February 6, 2017 On 2/5/2017 at 0:34 PM, Primefusion said: I'm trying to understand your intent. Are you trying to make so that if ID 0x62 wasn't triggered, you go to chapter 0x03, and if it was you go to chapter 0x04? If so, you should be using an if/else structure: Ending_event: IFEF 0x01 0xYY MNCH 0x03 ELSE 0x02 ENIF 0x01 MNCH 0x04 ENIF 0x02 // I don't know why you had an ENUN in here. It doesn't do anything in this context ENDA Also, I wouldn't use an ID like 0x62 if I were you. IDs greater than 0x40 can get very finicky and may be reset if you suspend and resume the game. Thanks prime, everything works fine now! I'm sorry I wasn't more specific. The reason for that ENUN code was just my paranoia. Sometimes I don't put in ENUN codes and it breaks the game, so I just put it in for good measure. Quote Link to comment Share on other sites More sharing options...
CT075 Posted February 7, 2017 Share Posted February 7, 2017 ENUN is "wait for units to finish moving"; you put it exactly where it sounds like it would go. Quote Link to comment Share on other sites More sharing options...
Tactician Aria Posted February 7, 2017 Author Share Posted February 7, 2017 14 hours ago, CT075 said: ENUN is "wait for units to finish moving"; you put it exactly where it sounds like it would go. Ah, so that's where it goes. Thanks for clearing that up. 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.