Jump to content


Photo

a file Question


  • Please log in to reply
6 replies to this topic

#1 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 06 May 2003 - 10:07 PM

I have, pretty much, gotten the hang of WEIDU, but I have a question. What file Would I put extend_Bottem to non Player Charecters (I mean here, non joining NPC's) into? Would this go into the .tp2? Or would it (They) go into there own file? or do they go in the barter file for my NPC? I can not seem to find the answer to this in the readme. Or would I use extend at all?

I seek to add text, and player responses, to the lehtin.dlg (Lethenin) and the madam.dlg (Madam Nin) files, if that helps at all.

#2 -jcompton-

-jcompton-
  • Guest

Posted 06 May 2003 - 10:41 PM

I seek to add text, and player responses, to the lehtin.dlg (Lethenin) and the madam.dlg (Madam Nin) files, if that helps at all.

You add text to DLGs via .d files.

You would use EXTEND_BOTTOM to add new transitions and/or player replies to those existing dialogues, and APPEND or advanced constructions like CHAIN to add new dialogue states to those DLGs.

You could choose to put those commands into your existing .d file for your NPC, although I like to have a separate .d file that I use for interjections and miscellaneous dialogue.

#3 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 06 May 2003 - 11:21 PM

thanks, Jason! Thats the main thing I needed to know! Now, I have another couple Questions, then will be out of your, and most everyones, hair for a while. Are these Codded Correctly?

EXTEND_TOP LOTHAN.DLG
APPEND LOTHAN.DLG
IF ~CheckGlobal (?SlavingJerk?, ?GLOBAL?, 2), PartyGoldGT (1999), !CheckGlobal(?JunaBought?, ?GLOBAL?, 1)
THEN SAY ~Well, not enough for you? (Hrrmm)?.~
= ~I have a deal. For 2000 golden coins, I will sell you my best whore, Juna.~
= ~She has been trouble, but will serve so?strong a person as you well.~
= ~If you wish, Pay me, and go speak to Madam Nin in back. (Hrrmm)~
IF () THEN REPLY ~Her name will be mud, if I decide. Yes, gladly I will take her!~ DO ~Set Global (JunaBought, GLOBAL, 1), TakePartyGold(2000)~
IF () THEN REPLY ~No, I have no intreast in owning a slave.~
END

EXTEND_TOP MADAM.DLG
APPEND MADAM.DLG
IF ~CheckGlobal (JunaBought, GLOBAL, 1)~
SAY ~Ah, my , I see you are a man of taste. I heard already: He has sold Juna to you. She will be a good slave, no doubt! She has some kind of Collar that we can not remove: It radiates Powerful Magic. I hope you?enjoy your purchase~ DO ~CreateCreature(Juna)~
END

Also, where can I get a coppy of a .itm making tool, my copy of IEEP does nto work (Keeps claiming there is an errer, and it can not save the Item) and I tried to find DLTCEP (?) for a replacement, but could not.

I could, if anyone were willing, use the filename for the Tree Of Life Dialouge, to Append to it.

And, Finally, Can anyone help me with these few, final, non-technical details: A select/confirm Voice actress for each of the Two NPC's (See the Forums at http://www.rpgtalk.com/viewforum.php?f=21), about 4 custom .bam sets for the Items (PM me for more info), and someone who would be willing to make absolute sure I codded it correctly?

Sorry for so many Questions, I only meant to ask 1, but felt I might as well get my last hurdle q's strait.

#4 -jcompton-

-jcompton-
  • Guest

Posted 06 May 2003 - 11:31 PM

thanks, Jason! Thats the main thing I needed to know! Now, I have another couple Questions, then will be out of your, and most everyones, hair for a while. Are these Codded Correctly?

Um, no.

Among other things, you don't use the .DLG suffix.

Your EXTEND is formatted incorrectly (have you actually looked at any existing code that does things like this, such as Kelsey? Try having two windows open at once and following the examples.) If you are just adding new states, just use APPEND. EXTEND is for adding new replies or transitions to an existing state.

Your PC replies lack GOTO/EXTERN destinations.

For DLTCEP, go to the forums at www.dragonlancetc.com, you'll see a DLTCEP forum with a download link in it. Or use Near Infinity.

#5 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 06 May 2003 - 11:35 PM

I have, but can not find these. I also read through the readme as best I could. Kelsey is where I pulled MOST of what I have done, which is not as extensive, and will nto be, but I like to think still good.

I guess I missread you. Sorry. ANd, I will figure it out, I am a tad rusty (Was away from the project a LONG while)

#6 Dark Phantom

Dark Phantom

    Juna's true master

  • Member
  • 85 posts

Posted 07 May 2003 - 12:00 AM

Allright, Help. I hate to bug, but I have looked through several files, plus trying to understand the readme file. How would I do that script? I thought that you could add responses to the conversation, and have no Idea where PC responses would then go. Lets say I kept it in the same .D. As this is the only such convo in my mod, at least for a long time, That is all I would need, though a bit of explanation would not hurt. I am sorry I am such a Newbie.

#7 -jcompton-

-jcompton-
  • Guest

Posted 07 May 2003 - 09:10 AM

Um. If I'm following your intent properly, it would be something like this.

APPEND LOTHAN
IF ~Global(?SlavingJerk?, ?GLOBAL?, 2)
PartyGoldGT (1999)
!Global(?JunaBought?, ?GLOBAL?, 1)~
THEN BEGIN notenough
SAY ~Well, not enough for you? (Hrrmm)?.~
= ~I have a deal. For 2000 golden coins, I will sell you my best whore, Juna.~
= ~She has been trouble, but will serve so?strong a person as you well.~
= ~If you wish, Pay me, and go speak to Madam Nin in back. (Hrrmm)~
IF ~~ THEN REPLY ~Her name will be mud, if I decide. Yes, gladly I will take her!~ DO ~SetGlobal("JunaBought","GLOBAL",1)
TakePartyGold(2000)~ GOTO something
IF ~~ THEN REPLY ~No, I have no intreast in owning a slave.~ GOTO somethingelse
END
END