Jump to content


Photo

NPC Questions


  • Please log in to reply
15 replies to this topic

#1 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 02:55 PM

How do you make an NPC go hostile after a certain dialogue ?? For example, Firkraag is neutral until either a) you attack him, or b ) you say you`ll kill him.
Also, is it possible to give an NPC different powers when they`re hostile to when they`re in the party ??
Edit: And how do you make a party member leave the party from a dialogue triggered from an event ?? For example, when Keldorn leaves the party if you side with Bodhi; or Jaheira leaves when the messenger comes.

Edited by MagusWizardo, 20 April 2003 - 04:01 PM.


#2 Kevin Dorner

Kevin Dorner
  • Member
  • 185 posts

Posted 20 April 2003 - 04:05 PM

"How do you make an NPC go hostile after a certain dialogue ?? For example, Firkraag is neutral until either a) you attack him, or b ) you say you`ll kill him."

Enemy()

"Also, is it possible to give an NPC different powers when they`re hostile to when they`re in the party ??"

Sure, just use

IF
     InParty(Myself)
THEN

or

IF
     !InParty(Myself)
THEN

checks in their AI to determine what powers that they do or do not use.

"And how do  you make a party member leave the party from a dialogue triggered from an event ?? For example, when Keldorn leaves the party if you side with Bodhi; or Jaheira leaves when the messenger comes."

LeaveParty()

and optionally

EscapeArea()

to make them leave the screen and permanently vanish.

#3 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 04:34 PM

So for Enemy() and LeaveParty() - are they in DO statements ?? Eg,
SAY~Blah~ DO ~LeaveParty() Enemy()~ EXIT ??

Next thing/s, how do you make them leave an area and then respawn somewhere else ?? And how do you get them to go to a specific place within that area ??
For example, when Keldorn leaves your party, he respawns at the High Hall of the Radiant Heart, and always at the same place in said hall; and when Minsc leaves your party, he always goes to the door into the slavechambers of the Corronette.

Also, when you`re compiling a characters dialogue, is it alright to use a normal txt file to type it all up, and then save it as .d ?? And once it`s .d, I assume you open it in WeiDU to compile it ?? The tutorial I`m using isn`t very clear on that...

#4 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 20 April 2003 - 04:47 PM

What tutorial are you using?

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#5 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 05:01 PM

What tutorial are you using?

This one.
I`ve also got Sola, Valen, Kelsey, and Kelsey-TOB mods, but I`m not quite sure how to look at their source code...

#6 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 20 April 2003 - 05:13 PM

Have placed the Weidu progam to you BGII directory?

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#7 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 05:16 PM

Have placed the Weidu progam to you BGII directory?

Not yet, will do now... I`m guessing that I will then not need to know which files to open, as it will list the right ones for me or something ??
(lemme guess... the answer is "or something" ?? :D)

EDIT: The readme says I don`t need to ?? But uhh... I just found that the version I had extracted was version 100... the one I have on a CD I burned yesterday is v116... *deletes old, extracts new* :)

Ok, reading a bit more of the readme (was tired when I read it last night, so I didn`t pay much attention to it), I`m thinking it would be safe to say that WeiDU is a translator and compiler rather than a *viewer* ?? Thus, I run WeiDU on the appropriate file, and it will translate it from IE-Language, into a file that notepad can open ??

Edited by MagusWizardo, 20 April 2003 - 05:26 PM.


#8 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 20 April 2003 - 05:25 PM

Weidu is a command line program, not GUI based. Once you have unzipped place all the contents in the BGII Folder and open a command line utility via
Start -> Programs -> Accessories -> Command prompt

Get used to this window, Weidu editing is done from here. Once in there type cd x:program files/black Isle/bgii - soa

Then it alters the directory to BG II resources which you should have placed in there and you can compile, decompile to the hearts contents.

Also note that you'll need Near Infinity if you are looking to add your character. It needs to be converted from a CHR file to a CRE

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#9 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 05:29 PM

I prefer Start->Run->Command for getting into DOS... on versions of Windows before XP (and maybe 2k), it isn`t in accesories as Command Prompt - rather, as MSDOS Prompt. Start->Run-> Command works on all systems since 95. ;)
And I am already used to working heavily in DOS... since I dropped my Win ME laptop and cracked the screen (aswell as alot more), i`ve been using our old 486 laptop for school. :D

EDIT: Is there any other program that can conver CHR to CRE ?? IEEP Maybe ?? I already have it on that machine, so it becomes easier to use the tools I`ve already downloaded. ;)

Edited by MagusWizardo, 20 April 2003 - 05:33 PM.


#10 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 20 April 2003 - 05:32 PM

No prob, most people are unsure of the command prompt. If you are happy with command line utilities then you are set to go

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#11 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 05:36 PM

No prob, most people are unsure of the command prompt. If you are happy with command line utilities then you are set to go

I`m a bit wary of the XP one myself, actually... it doesn`t support alot of DOS6 commands properly, for example, C:\ dir *.* /s *should* list all the files on your C drive... instead, it only goes to 2 levels for some reason - /s should tell it "include ALL subdirectories"... atleast the GUI has the useful things that have been taken out of DOS, though...

#12 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 20 April 2003 - 05:39 PM

What Xp do you have? My main edition is professional edition whilst the laptop has the basic and I'm able to edit on both.

There is a GUI Weidu I believe over at DragonForge, I cannot recall. IDU the closest but its errors led to the creation if Weidu in a fashion.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#13 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 05:44 PM

XP Home Upgraded from 98 on the computer I`m modding on... thank god that the DOS underneath is still has the CD command. :D

I`ve seen the WeiDU GUI, actually... but I am of the opinion that if a program was made to be command line, then a GUI overlay will severely tone down it`s usefullness. A GUI is fine for people who need it (or realy want it), but I`m comfortable using Command Line. :)

Edited by MagusWizardo, 20 April 2003 - 05:47 PM.


#14 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 20 April 2003 - 05:48 PM

Ahh, I had to rebuild my machine as the old one was over the hill. In regards to Weidu, just read stick with it. The lack of a graphical interface can make it look harder but Wes has already done the hard work for most of us here by making it anyways.

Decompile a few dialogues, scripts etc and see how it goes.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#15 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 05:59 PM

Harder = More Fun. :)

#16 MagusWizardo

MagusWizardo

    Don't ask... please don't ask.

  • Member
  • 201 posts

Posted 20 April 2003 - 10:28 PM

Ok, next question... this is probably in the readme, but I didn`t quite understand it-
How do you use WeiDU to convert a .dlg file back to a .d ??
I am assuming that this is done from the DOS Prompt, but what do I type in ?? And is there any specific directory this should be done from ??