
Edited by Torn, 11 April 2005 - 07:22 PM.
Posted 11 April 2005 - 07:22 PM
Edited by Torn, 11 April 2005 - 07:22 PM.
Posted 11 April 2005 - 07:53 PM
Edited by Dellaster, 11 April 2005 - 07:54 PM.
Posted 11 April 2005 - 08:09 PM
Posted 11 April 2005 - 08:28 PM
Posted 11 April 2005 - 08:33 PM
Posted 11 April 2005 - 09:20 PM
Posted 12 April 2005 - 02:38 AM
Not really, you can break the rules with NPC's (points to Mazzy, Valygar, and Minsc).
Posted 12 April 2005 - 01:16 PM
Posted 12 April 2005 - 05:04 PM
Posted 12 April 2005 - 10:53 PM
Posted 13 April 2005 - 07:22 AM
Posted 13 April 2005 - 08:00 AM
Thank you both. I said I am new to it- but trying to get it down, and doing so relatively fast. I guess I am a glutton for punishment- making the hardist kind of NPC off the bat, and a complex one at that. I do have one specific question:The romance is a combination of:
D-file (dialogue file) that is appended to either PDIALOGUE.2DA (character interacts with PC or outside world) or INTERDIA.2DA (character interacts with the party memebers). Dialogies from PDIALOGUE.2DA is called by Dialogue()/StartDialogueNoSet(), from INTERDIA by Interact() command. Generally the Interdia file starts with extension B and the Pdialogue ends with J. Joining dialogue is usually a special case and is often simply 5 letters from NPC name.
BAF file (scripts) is used to drive all CRE's actions. It is usually appended to the CRE's override script.
Upon compilation D files become DLG and BAF's - BCS and the game then can use them.
You have quite a few errors in your D. A Road to Banter, Ghrey's How to Create... tutorials are great for learning structures. I also have a relatively detailed write-up on all sort of structures used in D files here:
http://forums.gibber...?showtopic=2822
The way the romance works is that BAF sets timers and sequence of talks and calls for them from D files. Simple actions can be done via D file using DO command.
For example the line:
IF ~~ Then REPLY ~As you would have it~ Enemy()
is incorrect in a few aspects:
It shouls be:
IF ~~ THEN REPLY ~As you would have it~ DO ~Enemy()~ EXIT
or, using shorthand:
++ ~As you would have it~ DO ~Enemy()~ EXIT
always remeber that PC's line has to either lead somewhere (EXTERN/GOTO) or EXIT
Edited by Mabnuln, 13 April 2005 - 08:13 AM.
Posted 13 April 2005 - 08:29 AM
Posted 13 April 2005 - 10:02 AM
Edited by MajorTomSawyer, 13 April 2005 - 10:05 AM.
- The transitioned former modder once known as MTS.
Posted 13 April 2005 - 10:35 AM
Posted 13 April 2005 - 10:40 AM
Begin MbcasJWeiDU is case sensitive, which means that Begin isn't the same as BeGiN or bEgIn. BEGIN is the correct action.
Say ~Ah! Thou hast come once again to prey upon me, my 'master'!!~Same here, SAY is correct.
SAY ~Do for me? Do for me?! After all thou hast already done!~ GOTO HerimageYou need an IF ~~ GOTO instead of just GOTO when you don't have any transitions.
IF ~~ THEN REPLY ~Wait! I am not who you think I am!~ Goto notmaster IF ~~ Then REPLY ~As you would have it~ Enemy()GOTO and THEN.
IF ~~ THEN REPLY ~No, you are not my play thing. I appologize for anything I may have done~ GOTO not playthingWeiDU won't take more than one word as a transition. Use not_plaything instead.
IF ~Cha 16+~ THEN REPLY ~Wait, my dear lady! We may be able to talk this out!~ GOTO cha bladeSame here with the two-word transition. Also note that it's ~CheckStatGT(Player1,15,CHR)~ if you want the charisma to be 16 or more. STR, DEX, CON, INT or WIS for the other stats.
IF ~Wis 16+~ THEN REPLY ~Hmm. Wait, dear lady. I think you have mistaken me for another- I can see you are scared, can we talk about it?~ GO TO Wis bladeTwo-word transition, wrong trigger (as previous example) and GO TO instead of GOTO.
SAY ~Ahhh! I see HER in every mirror! I hear HER with every breath! I would tear off mine own skin to be rid of HER! I am not HER! Kill me again and again and I am not her! But I will be rid of YOU!You missed a tilde (~) at the end.
~Cassandra nods, and say's "Thank you, my Hero."~ SetGlobal ("cassandrajoin",LOCALS, 1), JoinParty()~ EXITI'd code this as:
REPLY ~ kiss her cheek and say "Let us go, dear lady"~ GOTO kiss REPLY ~Shall we go?~ GOTO Join2 REPLY ~I am afraid we will not be able to go together, though, lovely lady. I wish you luck.~ GOTO sendawayYou need IF ~~ THEN REPLY, if you don't want to use ++.
~Cassandra blushes a deeper red before returning a kiss to your cheek, and smiles at you, before stepping away, joy in her eyes.~ GOTO Join2You also need the SAY.
sAY ~No, you will DIE! I will kill you! Not her...~ Enemy()SAY, and then IF ~~ DO ~Enemy()~ EXIT at the end, since you don't have any transitions.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
Posted 13 April 2005 - 05:27 PM
Posted 13 April 2005 - 05:46 PM
- The transitioned former modder once known as MTS.
Posted 13 April 2005 - 06:11 PM
Wow, hard to belive this is your first attempt. I look forward to the completed project.
Edited by Mabnuln, 13 April 2005 - 07:10 PM.
Posted 14 April 2005 - 06:46 PM