Author Topic: A Beginner's Guide to NPC creation with WeiDU  (Read 314209 times)

Offline biubid_boy

  • Planewalker
  • *****
  • Posts: 4
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #175 on: April 28, 2006, 06:58:28 PM »
Anywho, after extensive searching of the Holy Grail mod I can't find the website, but on the tp2, it says the author is hlidskialf.
Hmm... when looking through the contents it doesn't really add the characters as NPC's just has them as .cres acting out the evil rabbit scene.

Offline notasophist

  • Planewalker
  • *****
  • Posts: 151
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #176 on: May 08, 2006, 03:20:57 AM »
The dialogue assignment is at 0x330, or in the same area as the Script Name/Death Variable, just a bit further down.  Right-click the field, choose "Edit as String", and type in J#Vondo.  This means when our finished product is installed, and our dialogue compiled, J#Vondo.cre will use J#Vondo.dlg initially.


It may be NI's problem, but when I type in my dialogue name in the dialogue field, NI gave me an error. I've done changed the chr to cre, changed the death variable.

Can anyone help?

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #177 on: May 08, 2006, 05:37:44 AM »
Would you mind telling us exactly what the error is?
"You alone can make my song take flight..."

Offline notasophist

  • Planewalker
  • *****
  • Posts: 151
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #178 on: May 08, 2006, 01:46:31 PM »
I'm not sure if this would help, but after I type in the name of my d.file (using edit as string), NI gave me the error:

"Error Updating Value"

Igor

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #179 on: May 15, 2006, 11:04:51 AM »
I'm not sure if this would help, but after I type in the name of my d.file (using edit as string), NI gave me the error:

"Error Updating Value"
Same here.

Offline Hide and Seek

  • The one who wields the Blackrazor
  • Planewalker
  • *****
  • Posts: 192
  • Gender: Male
  • I always begin my day with a good backstab.
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #180 on: May 21, 2006, 05:35:38 AM »
Is there a special guide for creating improved battles? I'm still trying to figure how to create a battle somewhat similar to the four paladins in Valen's mod.
Favourite Quotes from BG2
Minsc: Minsc will lead with blade and boot! Boo will take care of the details.
Saemon: Pardon?
Aerie: This is gonna hurt you ALOT more than me!
Sarevok: Now I return the favor!
Drizzt: Yes, yes, you have my attention.
Lilarcor: And this one's for Grandma, who said I would never amount to anything more than a butterknife!

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #181 on: May 21, 2006, 06:54:32 AM »
Is there a special guide for creating improved battles? I'm still trying to figure how to create a battle somewhat similar to the four paladins in Valen's mod.

All you do is check some conditions (e.g. variables), CreatureCreature() the creatures you want, maybe have them Dialogue() the party and then Enemy() so they turn hostile.  It's one of these common misconceptions that creating battles or quests requires some magic scripting, when actually its fairly simple if you have a clear idea in your head of what you want to do.
"You alone can make my song take flight..."

Offline A_Beaverhausen

  • Planewalker
  • *****
  • Posts: 3
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #182 on: May 25, 2006, 01:29:27 PM »
Hello, I am having a problem with my kickout dialogue.  Whenever we kick our NPC out of the party, it doesn't use our dialogue.  In one of the two NPCs we're creating, it uses the standard multi-player dialogue, and in the other, he just kind of stands around and doesn't say anything.  We used the basic guide, and included this in the J#Vondo.d file.  Is this the correct place, or should it have a file of its own?

Thanks,

Patty
"Better to be hated for who you are than loved for who you are not." - Phlogiston Verdigris

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #183 on: May 25, 2006, 01:49:40 PM »
At a guess the Export Allowed flag in the creature file is still ticked.  Untick it with NI, save the creature.  Then load a saved game before the creature was spawned and try again.  If you use one where it has already been spawned, it still won't work.
"You alone can make my song take flight..."

Offline A_Beaverhausen

  • Planewalker
  • *****
  • Posts: 3
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #184 on: May 25, 2006, 02:15:12 PM »
I double checked and that doesn't seem to be the problem, neither NPC had the export allowed box checked.  There were no flags set at all......

Thanks again for your help,

Patty
"Better to be hated for who you are than loved for who you are not." - Phlogiston Verdigris

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #185 on: May 25, 2006, 02:55:27 PM »
Did you correctly set the information in pdialog.2da?  (Keeping in mind that the first entry is the NPC's death variable - a common mistake)
"You alone can make my song take flight..."

Offline vociferate

  • Planewalker
  • *****
  • Posts: 10
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #186 on: June 20, 2006, 01:58:17 AM »
nevermind, fixed that... now a new one...
« Last Edit: June 20, 2006, 02:02:14 AM by vociferate »

Offline vociferate

  • Planewalker
  • *****
  • Posts: 10
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #187 on: June 20, 2006, 09:22:35 AM »
Alright, so the mod installed succesfully according to weiDU installer.

My npc isn't showing up in ar0704 like he is supposed to.  he is spawned at 350.660 which is directly in front of the characters when they inter mithrest inn.

when i cluaconsole him in, a smokey-like cloud appears, but not him
hmmm

Offline jcompton

  • Niche Exploiter
  • Administrator
  • Planewalker
  • *****
  • Posts: 7246
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #188 on: June 20, 2006, 09:42:09 AM »
- Check the AR0704 script after you've installed the mod to make sure that your new script snippet is in there to create the creature.

- The appearance of a smokey-like cloud suggests that maybe the sprite apperance of your NPC CRE file is incorrect, possibly you changed it mistakenly while editing the CRE file. Check that out as well.
Cespenar says, "Kelsey and friends be at the Pocket Plane? Ohhh yesssss!" http://www.pocketplane.net

Offline vociferate

  • Planewalker
  • *****
  • Posts: 10
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #189 on: June 20, 2006, 12:36:40 PM »
thanks :)

I'll check those things when I get off of work, and out of class (summer school... ugh.)

Offline Madieron

  • Planewalker
  • *****
  • Posts: 14
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #190 on: August 02, 2006, 07:18:12 AM »
Hi,
I've got a problem during the setup of my new NPC.
Maybe it becomes from my understanding of English (I'm french) but the setup tells me that :

[C:\Program Files\Black Isle\BGII - SoA\Minuit The NPC\MinuitTheNPC-setup.exe] WeiDU version 195

ERROR : Unable to find DIALOG.TLK in :
dialog.tlk

Please run this program in your Infinity Engine game directory

FATAL ERROR : Failure("Unable to find DIALOG.TLK")

Does anyone know what I have to do ?

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #191 on: August 02, 2006, 07:31:21 AM »
MinuitTheNPC-setup.exe (or Setup-MinuitTheNPC.exe as you'd normally name it) goes in the BGII - SoA folder as opposed to your mod's subfolder.
"You alone can make my song take flight..."

Offline Madieron

  • Planewalker
  • *****
  • Posts: 14
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #192 on: August 02, 2006, 07:48:17 AM »
Thank you :)

I've got a new problem :x

Quote
BACKUP ~Minuit The NPC\backup~
AUTHOR ~Madieron@hotmail.fr~
BEGIN ~Minuit the NPC for BG2:ToB~


// The following is the copying of Minuit's .cre file, as well as assigning her sound-set. See the file sdnslot.ids for a listing of sounds you can add.

COPY ~Minuit The NPC\Minui1.cre~ ~override\Minui1.cre~
SAY NAME1 ~Minuit~
SAY NAME2 ~Minuit~
SAY SELECT_COMMON4 ~Bla bla bla.~ [Minuit1] // [Minuit1] is the name of the .wav file for this sound
SAY SELECT_COMMON5 ~Salut à toi, Champion.~ [Minuit2]
SAY SELECT_COMMON6 ~Suivez moi !.~ [Minuit3]
SAY SELECT_ACTION1 ~A l'aventure compagnons....~ [Minuit4]
SAY SELECT_ACTION2 ~Comme vous voulez.~ [Minuit5]


// The following is telling WeiDU to compile the following .d files

COMPILE ~Minuit The NPC\Mad#Minuit.d

// The following is compilling the script and placing it in the override.

COMPILE ~Minuit The NPC\Mad#Minuit.baf

// The following is appending what we wrote in AR1000.baf to the bottom of
// AR1000.bcs

EXTEND_TOP ~Ar1000.bcs~ ~Minuit The NPC\ar1000.baf~


It tells me I've got an error Near text : \
Invalid character
at line 24 column 21-23

And I have another question
In the .tp2, there is written Mad#Minuit.baf but I've just created an AR1000.baf... so where does it come from ?

Offline cmorgan

  • Planewalker
  • *****
  • Posts: 1424
  • Gender: Male
  • Searcher of Bugs
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #193 on: August 02, 2006, 08:21:38 AM »
~Minuit The NPC\Mad#Minuit.d

needs the terminating tilde ~

as well as

~Minuit The NPC\Mad#Minuit.baf

Offline Madieron

  • Planewalker
  • *****
  • Posts: 14
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #194 on: August 02, 2006, 03:04:08 PM »
Thank you ! :)

Offline Madieron

  • Planewalker
  • *****
  • Posts: 14
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #195 on: August 04, 2006, 06:24:38 AM »
I've got a new problem... my .tp2 and .d seem correct now but the console tells me that :

ERROR: error compiling [Minuit The NPC\Mad#Minuit.baf] : Sys_error("Minuit ]
C\\Mad#Minuit.baf : No such file or directory

I think it tells me that because this file doesn't exists... so I've to create it but...
Is it a txt renamed file which I have to let empty?
Where do I have to create it ?

Offline Rabain

  • Planewalker
  • *****
  • Posts: 281
  • Gender: Male
  • Luck o' the Irish!
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #196 on: August 04, 2006, 07:25:04 AM »
Yes it is a text file rename to .baf rather than .txt

It is usually used as your creatures personal script, instructing them to walk up to <charname> and initiate dialog...or at least that is the most common entry for custom npc's.

If you are missing this baf are you also missing the ar1000.baf listed at the bottom of your tp2 ?  This baf should instruct the script for area 1000 to create your creature at your chosen co-ordinates.
Touchstone: Wild Elf Fighter
BG2CPM: Dialog Portraits for Everyone!
WTPFamiliars: A new version of the Find Familiar Spell
All at: Border Kingdoms

Offline Madieron

  • Planewalker
  • *****
  • Posts: 14
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #197 on: August 04, 2006, 07:45:02 AM »
Thx I created it (the <charname>.baf).
I've already had the ar1000.baf but my npc doesn't appear.. maybe because I changed the coordinates ?
I set 2494,2560 (so she must appear on the grass).

Rabain you told me I have to put instructions in my <charname>.baf.... I understood that I have to put the instruction that Minuit must go to speak to my charname but HOW I have to do that ?
I mean how I have to write the instructions ?

« Last Edit: August 04, 2006, 07:52:04 AM by Madieron »

Offline Rabain

  • Planewalker
  • *****
  • Posts: 281
  • Gender: Male
  • Luck o' the Irish!
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #198 on: August 04, 2006, 08:33:02 AM »
Code: [Select]
IF
See([PC])
NumTimesTalkedTo(0)
THEN
RESPONSE #100
Dialogue(Nearest([PC]))
END

As per the first page of this thread under Scripts!
Touchstone: Wild Elf Fighter
BG2CPM: Dialog Portraits for Everyone!
WTPFamiliars: A new version of the Find Familiar Spell
All at: Border Kingdoms

Jolyth

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #199 on: August 09, 2006, 11:19:11 AM »
Here is one I cannot seem to figure out and I am hoping that a second pair of eyes will help.  :)

My code is this:
Quote
IF ~~ THEN BEGIN TwoPallys
SAY ~Blah~
= ~Blah~
++ ~Blah~ + Request
++ ~Blah~ + DismissCharacter
END

Now WeiDU is telling me that I have a parse error at line 24 near text BEGIN, but I cannot see it. Suggestions? Thanks!

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: