Quote from: Moongaze on May 28, 2008, 10:43:00 AMAnd indeed, I didn't know anything about the commands being forbidden. Apparently it is all more complicated than I had thought.I know - I always have to refer to the WeiDU readme myself when writing D files (because the synthax is so inconsistent, and I almost never write D files). In general, if you haven't, a good idea would be to download Ghareth (from the One Day NPC section at PPG) and use it as an example of how D files are written, and then attempt to compare its code to yours and pick up the differences (teach one man to fish and whatnot).
Quote from: The Bigg on May 28, 2008, 08:15:57 AMCHAIN 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).
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)~
EXITBEGIN 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
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?~
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
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
CHAIN IF ~~ THEN BEGIN MMGWikaAcceptPotionQuest2
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.~
END
IF ~~ THEN DO ~SetGlobal("MGWikaHarahQuestStart","GLOBAL",1)~
EXIT
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
APPEND MGWIKHR
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.~
END
IF ~~ THEN DO ~SetGlobal("MGWikaHarahQuestStart","GLOBAL",1)~
EXIT
APPEND MGWIKHR
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.~
END
IF ~~ THEN DO ~SetGlobal("MGWikaHarahRefuseQuest","GLOBAL",1)~
EXIT
ENDQuoteAPPEND MGWIKHR
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
APPEND MGWIKHR
IF ~~ THEN BEGIN MGWikaAcceptPotionQuest
SAY ~Thank you very much. Bunyan can usually be found beside his stand at Waukeen's Promenade.~
IF ~~ THEN EXIT
ENDAPPEND MGWIKHR
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

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