| The Black Wyrm's Lair Terms of Use |
Help
Search
Members
Calendar
|
May 24 2008, 02:00 PM
Post
#1
|
|
|
Forum Member Posts: 467 Joined: 23-February 05 From: My den |
I'm still busy trying to get Wikaede's quest to work. However, I'm not having much luck getting the dialogues to install properly. Currently, this is the part where it hiccups, as indicated by <------------
CODE BEGIN MGWIKHR IF ~!InParty("Wikaede")~ THEN BEGIN MGMeetHarahWithoutWikaede SAY ~Kind <PRO_SIRLADY>, please excuse me. I am very busy with my chores. If you have any questions, you may ask one of the others.~ IF ~~ THEN EXIT END CHAIN IF ~InParty("Wikaede") See("Wikaede") !StateCheck("Wikaede",STATE_SLEEPING) Global("MGWikaHarahQuestStart","GLOBAL",0)~ THEN BEGIN MGMeetHarahWithWikaede <------------ // ACCORDING TO WEIDU, THE ERROR IS SOMEWHERE AROUND HERE. I DO NOT SEE IT. SAY ~Wikaede... It has been some time. It is good to see you again.~ == MGWIKAJ ~Indeed it has been. I have missed you. Have you been well?~ == MGWIKHR ~Yes, everything has been fine. No need to worry. However, I do have a small task that needs to be completed, which I currently cannot do, due to my schedule.~ == MGWIKAJ ~Which would be...?~ == MGWIKHR ~A gnomish alchemist by the name of Bunyan had been commissioned to create a certain type of potion. We have received word that it is ready, and it needs to be delivered to us. Would you be interested in taking on such a task?~ == MGWIKAJ ~Of course. It is but a small task and shall not harm our greater plans. However, I fear it is not my choice alone. <CHARNAME>, what do you think?~ ++ ~It shouldn't be a problem, Wikaede. We will get it for you.~ GOTO MGWikaAcceptPotionQuest ++ ~We don't have the time for this right now.~ GOTO MGWikaRefusePotionQuest END CHAIN IF ~~ THEN BEGIN MGWikaAcceptPotionQuest SAY ~Thank you very much. Bunyan can usually be found beside his stand at Waukeen's Promenade.~ == MGWIKAJ ~I understand. In that case, I shall be off. Do take care, would you?~ == MGWIKHR ~Yes. And you as well. Until we meet again.~ IF ~~ THEN DO ~SetGlobal("MGWikaHarahQuestStart","GLOBAL",1)~ EXIT END CHAIN IF ~~ THEN BEGIN MGWikaRefusePotionQuest SAY ~It is fine. There is no rush to perform such a task.~ == MGWIKAJ ~Still, it is a pity. Since we cannot be of further assistance here at this time, I shall depart. Do take care, would you?~ == MGWIKHR ~Yes. And you as well. Until we meet again.~ IF ~~ THEN DO ~SetGlobal("MGWikaHarahRefuseQuest","GLOBAL",1)~ EXIT END I have already started using CHAIN IF as a result of my earlier query on how to get a new in-party NPC to converse with a new out-party NPC, allowing Wikaede to interject into the player's conversation with Harah (MGWIKHR). I have no idea as to why it hiccups and refuses to install. I also do not know if it's allowed to have the PC provide his/her decision on accepting or refusing the quest in this manner. I assume the dialogue right AFTER the PC makes his/her decision, the dialogue would come from MGWIKHR rather than Wikaede, yet again I am not certain. Some assistance would be appreciated. This post has been edited by Moongaze: May 24 2008, 02:02 PM -------------------- -Transition into darkness-
|
|
|
|
![]() |
May 28 2008, 08:15 AM
Post
#2
|
|
|
Forum Member Posts: 165 Joined: 29-January 05 From: Modena (Italy) |
CHAIN cannot accept the BEGIN (it's not optional like in states, it's actually forbidden) - in place of the BEGIN, you need the dialogue file for the inital speaker. Also, the SAY in the next line is forbidden too. Also, the states (non-chain statements in your file) go before all CHAINs, and CHAINs go outside of APPEND. APPEND (which you don't currently need) requires an END. There was also a typo (MMGWikaAcceptPotionQuest2 with the double initial M).
This appears to work: CODE BEGIN MGWIKHR IF ~!InParty("Wikaede")~ THEN BEGIN MGMeetHarahWithoutWikaede SAY ~Kind <PRO_SIRLADY>, please excuse me. I am very busy with my chores. If you have any questions, you may ask one of the others.~ IF ~~ THEN EXIT END IF ~InParty("Wikaede") See("Wikaede") !StateCheck("Wikaede",STATE_SLEEPING) Global("MGWikaHarahQuestStart","GLOBAL",0) Global("MGWikaHarahRefuseQuest","GLOBAL",1)~ THEN BEGIN MGWikaPotionQuestRefuse SAY ~You have returned. Are you ready to retrieve the item for us now?~ ++ ~Yes, we will get it for you.~ GOTO MGWikaAcceptPotionQuest2 ++ ~We don't have the time for this right no, Dawnmistress.~ GOTO MGWikaRefusePotionQuest2 END IF ~~ THEN BEGIN MGWikaRefusePotionQuest2 SAY ~Very well. Return with Wikaede once you desire to perform this task for us.~ IF ~~ THEN EXIT END IF ~InParty("Wikaede") See("Wikaede") !StateCheck("Wikaede",STATE_SLEEPING) Global("MGWikaHarahQuestStart","GLOBAL",1)~ THEN BEGIN MGWikaPotionQuestWithoutPotion SAY ~You are back, though I see you do not have the item just yet. Please return once it is in your possession.~ IF ~~ THEN EXIT END CHAIN IF ~InParty("Wikaede") See("Wikaede") !StateCheck("Wikaede",STATE_SLEEPING) Global("MGWikaHarahQuestStart","GLOBAL",0)~ THEN MGWIKHR MGMeetHarahWithWikaede ~Wikaede... It has been some time. It is good to see you again.~ == MGWIKAJ ~Indeed it has been. I have missed you. Have you been well?~ == MGWIKHR ~Yes, everything has been fine. No need to worry. However, I do have a small task that needs to be completed, which I currently cannot do, due to my schedule.~ == MGWIKAJ ~Which would be...?~ == MGWIKHR ~A gnomish alchemist by the name of Bunyan had been commissioned to create a certain type of potion. We have received word that it is ready, and it needs to be delivered to us. Would you be interested in taking on such a task?~ == MGWIKAJ ~Of course. It is but a small task and shall not harm our greater plans. However, I fear it is not my choice alone. <CHARNAME>, what do you think?~ END ++ ~It shouldn't be a problem, Wikaede. We will get it for you.~ EXTERN MGWIKHR MGWikaAcceptPotionQuest ++ ~We don't have the time for this right now.~ EXTERN MGWIKHR MGWikaRefusePotionQuest CHAIN IF ~~ THEN MGWIKHR MGWikaAcceptPotionQuest2 ~Thank you very much. Bunyan can usually be found beside his stand at Waukeen's Promenade.~ == MGWIKAJ ~I understand. In that case, I shall be off. Do take care, would you?~ == MGWIKHR ~Yes. And you as well. Until we meet again.~ END IF ~~ THEN DO ~SetGlobal("MGWikaHarahQuestStart","GLOBAL",1)~ EXIT CHAIN IF ~~ THEN MGWIKHR MGWikaAcceptPotionQuest ~Thank you very much. Bunyan can usually be found beside his stand at Waukeen's Promenade.~ == MGWIKAJ ~I understand. In that case, I shall be off. Do take care, would you?~ == MGWIKHR ~Yes. And you as well. Until we meet again.~ END IF ~~ THEN DO ~SetGlobal("MGWikaHarahQuestStart","GLOBAL",1)~ EXIT CHAIN IF ~~ THEN MGWIKHR MGWikaRefusePotionQuest ~It is fine. There is no rush to perform such a task.~ == MGWIKAJ ~Still, it is a pity. Since we cannot be of further assistance here at this time, I shall depart. Do take care, would you?~ == MGWIKHR ~Yes. And you as well. Until we meet again.~ END IF ~~ THEN DO ~SetGlobal("MGWikaHarahRefuseQuest","GLOBAL",1)~ EXIT This post has been edited by The Bigg: May 28 2008, 08:23 AM -------------------- Please do not contact me for assistance in using BGT, BP, any other of the 'large mods', or a mod I didn't write or contribute to. I'm not your paid support staff, so I'd suggest you to direct your help questions to the forum relative to the mod you're playing.
Thanks for your cooperation. |
|
|
|
May 28 2008, 10:43 AM
Post
#3
|
|
|
Forum Member Posts: 467 Joined: 23-February 05 From: My den |
CHAIN cannot accept the BEGIN (it's not optional like in states, it's actually forbidden) - in place of the BEGIN, you need the dialogue file for the inital speaker. Also, the SAY in the next line is forbidden too. Also, the states (non-chain statements in your file) go before all CHAINs, and CHAINs go outside of APPEND. APPEND (which you don't currently need) requires an END. There was also a typo (MMGWikaAcceptPotionQuest2 with the double initial M). Ah, I had not seen that typo. Thank you. And indeed, I didn't know anything about the commands being forbidden. Apparently it is all more complicated than I had thought. I just tried it and it installed correctly. Thanks! -------------------- -Transition into darkness-
|
|
|
|
Moongaze Request help with dialogue coding May 24 2008, 02:00 PM
The Bigg
You need to write your initial dialog file name ... May 24 2008, 02:08 PM
Sir_Carnifex Well, after pretending this was my problem and try... May 24 2008, 03:34 PM
Moongaze Not quite familiar with seeing the code in such a ... May 24 2008, 06:22 PM
The Bigg If there is more than one person speaking (such as... May 25 2008, 01:53 AM
Moongaze
I reckon it would be like this... could be wrong... May 25 2008, 06:00 PM
The Bigg CHAIN is a D action, so it lives outside of APPEND... May 25 2008, 07:22 PM
Moongaze Mmm... you know, I really despise coding. I'll... May 26 2008, 06:21 AM
Moongaze I tried inputting the solution and I still get the... May 28 2008, 07:25 AM
The Bigg And indeed, I didn't know anything about the c... May 28 2008, 11:05 AM
Moongaze Yes, I have Ghareth lying around somewhere. I... May 28 2008, 11:50 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 11th March 2026 - 08:16 PM |