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

flameswing

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #150 on: March 18, 2006, 08:10:35 PM »
Whew. Thanks very much Kismet.
Oh hey I also have that banter issue....never seems to come up...

Biubid_boy

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #151 on: March 19, 2006, 02:29:15 AM »
I believe you have to copy the compiled banter file into the override folder.

Offline KingMick

  • Planewalker
  • *****
  • Posts: 32
  • is woefully new to modding
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #152 on: March 19, 2006, 02:34:42 AM »
already did that, still doesn't seem to be happening...

Offline Kismet

  • Devil's Minion #5
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 653
  • Gender: Female
  • Veni; Vidi; Velcro.
    • Pocket Plane Group
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #153 on: March 19, 2006, 06:29:54 AM »
You do not need to copy the compiled banter to the override folder, or at least not manually.  If you're installing your mod via a .tp2 file then all pertinent dialog files will be appended automagically. 

Are all the conditions for the banter met?  Check your globals to make sure that they have been met.  Have you tried forcing the banter? (getting the two banterers in your party and pressing ctrl-I until your fingers bleed or your banter appears)?
Cailean - An archer NPC for the insatiably nosy!  Guaranteed more fun than shampooing cats!

Offline KingMick

  • Planewalker
  • *****
  • Posts: 32
  • is woefully new to modding
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #154 on: March 19, 2006, 11:18:49 AM »
I didn't know you could force a banter. Do I have to do anything special before the CTRL-I will work?

Offline taplonaplo

  • Planewalker
  • *****
  • Posts: 14
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #155 on: March 19, 2006, 01:17:25 PM »
afaik, enable cheats then  "CLUAConsole:EnableCheatKeys()" without quotes,and it is case sensitive
« Last Edit: March 19, 2006, 01:22:41 PM by taplonaplo »

Offline KingMick

  • Planewalker
  • *****
  • Posts: 32
  • is woefully new to modding
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #156 on: March 19, 2006, 07:33:30 PM »
Woo-hoo!  The banters work fine, I found out by using Ctrl-I.  Now I'm really glad I know about that--this means I can have more storyline whenever I want it and not be dependent on the game's scheduling! :D

Hit another snag, though :(. You guys are awesome for helping me so much...maybe someone can tell me why WeiDU gives me an error message right at the first "IF" when I try to add banters with the PC?  Here's the first state copied and pasted directly...

BEGIN ~BKM#RAIS~

IF ~Global("RaistPC","LOCALS",0)~ THEN BEGIN RaistPC1
SAY ~The others tell me you are searching for a lost sibling. Is that true?~
IF ~~ THEN REPLY ~She's my foster sister. I have to save her~ GOTO RaistPC1Sister
IF ~~ THEN REPLY ~Actually, I mostly just want to kill the man who took her--I owe him one.~ GOTO RaistPC1Revenge
IF ~~ THEN REPLY ~They are mistaken. I seek a man who offered me power beyond my wildest dreams, and I intend to have it.~ GOTO RaistPC1Power
IF ~~ THEN REPLY ~Raistlin, I'd rather not talk about this right now.~ GOTO RaistPC1Goodbye
END

Also, is there a way to use an OR operator type of thing?  For example, I'd like the conditions for the next banter to be either that the first one has already run OR that Imoen has been rescued.  They don't both have to be true, just one of them.

Biubid_boy

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #157 on: March 20, 2006, 03:37:19 AM »
Umm... I have a couple of questions. Firstly, code do you have to change to make your custom banters come up and secondly, how do I link the leaving script to my NPC because when I kick him out he says nothing.
Thanks,
Biubid_boy

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #158 on: March 20, 2006, 04:11:00 AM »
Also, is there a way to use an OR operator type of thing?  For example, I'd like the conditions for the next banter to be either that the first one has already run OR that Imoen has been rescued.  They don't both have to be true, just one of them.

OR(X) where X is the number of conditions you want inside the 'or'.
e.g.
OR(2)
Foo()
Bar()

This would mean Foo() or Bar().
"You alone can make my song take flight..."

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #159 on: March 20, 2006, 04:12:31 AM »
Umm... I have a couple of questions. Firstly, code do you have to change to make your custom banters come up and secondly, how do I link the leaving script to my NPC because when I kick him out he says nothing.
Thanks,
Biubid_boy

That's all in the 2da APPENDing stage of the tutorial.  Adding entries to interdia.2da makes them banter.  Adding the correct entries to the other 2da (which right now is escaping me) gives you your leaving dialogue and a few other things.
"You alone can make my song take flight..."

Offline Kismet

  • Devil's Minion #5
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 653
  • Gender: Female
  • Veni; Vidi; Velcro.
    • Pocket Plane Group
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #160 on: March 20, 2006, 07:30:44 AM »
Hit another snag, though :(. You guys are awesome for helping me so much...maybe someone can tell me why WeiDU gives me an error message right at the first "IF" when I try to add banters with the PC?  Here's the first state copied and pasted directly...

BEGIN ~BKM#RAIS~

IF ~Global("RaistPC","LOCALS",0)~ THEN BEGIN RaistPC1
SAY ~The others tell me you are searching for a lost sibling. Is that true?~
IF ~~ THEN REPLY ~She's my foster sister. I have to save her~ GOTO RaistPC1Sister
IF ~~ THEN REPLY ~Actually, I mostly just want to kill the man who took her--I owe him one.~ GOTO RaistPC1Revenge
IF ~~ THEN REPLY ~They are mistaken. I seek a man who offered me power beyond my wildest dreams, and I intend to have it.~ GOTO RaistPC1Power
IF ~~ THEN REPLY ~Raistlin, I'd rather not talk about this right now.~ GOTO RaistPC1Goodbye
END

It's always helpful to post the exact error message that you're getting.  My guesses are: 1. You've already used BEGIN ~BKM#RAIS~ in another dialog file.  If that's the case you'll have to APPEND rather than BEGIN. or 2. You were writing in word (or other non-plain text program) and you have some sort of funky format in there.
Cailean - An archer NPC for the insatiably nosy!  Guaranteed more fun than shampooing cats!

Offline KingMick

  • Planewalker
  • *****
  • Posts: 32
  • is woefully new to modding
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #161 on: March 22, 2006, 03:48:02 AM »
No and no :(.  Using Notepad, and I've never given the BEGIN BKM#RAIS command before this line.

Biubid_boy

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #162 on: March 22, 2006, 04:08:54 AM »
Don't you need to use CHAIN for banters?

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #163 on: March 22, 2006, 07:06:01 AM »
Don't you need to use CHAIN for banters?

Only if you have multiple speakers (i.e. two NPCs).  You could also use APPEND for such things if you wished in any case.
"You alone can make my song take flight..."

Offline Kismet

  • Devil's Minion #5
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 653
  • Gender: Female
  • Veni; Vidi; Velcro.
    • Pocket Plane Group
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #164 on: March 22, 2006, 07:19:14 AM »
No and no :(.  Using Notepad, and I've never given the BEGIN BKM#RAIS command before this line.

Well, what was the error?
Cailean - An archer NPC for the insatiably nosy!  Guaranteed more fun than shampooing cats!

Offline taplonaplo

  • Planewalker
  • *****
  • Posts: 14
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #165 on: March 22, 2006, 09:25:52 AM »
This worked for me:
BEGIN ~BKM#RAIS2~

IF ~Global("RaistPC","LOCALS",0)~ THEN BEGIN RaistPC1
SAY ~The others tell me you are searching for a lost sibling. Is that true?~
IF ~~ THEN REPLY ~She's my foster sister. I have to save her~ EXIT
IF ~~ THEN REPLY ~Actually, I mostly just want to kill the man who took her--I owe him one.~ EXIT
IF ~~ THEN REPLY ~They are mistaken. I seek a man who offered me power beyond my wildest dreams, and I intend to have it.~ EXIT
IF ~~ THEN REPLY ~Raistlin, I'd rather not talk about this right now.~ EXIT
END

btw BKM#RAIS used by the banters with npcs (in my version)
NOTE: i put exits coz i don't have the rest of the banter
« Last Edit: March 22, 2006, 09:29:18 AM by taplonaplo »

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #166 on: March 22, 2006, 09:40:42 AM »
So perhaps the block 'RaistPC1Sister' is non-existant.  Seriously, you've gotta post what the errors say or we are forced to just guess.
"You alone can make my song take flight..."

Mr.Big

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #167 on: April 16, 2006, 06:28:47 PM »
I CANNOT FIND THE DEATH VARIABLE!!!!!!!!!! AHHHHHHHH *CRIES*

I've tried everything.  I looked for the name, I checked the hex, I checked what file i'm looking at, but with NI, I cannot find anything that resembles a "Death Variable".  Please help!

Maybe, could someone post a screenshot on where it is, because I cannot find anything anywhere.

Mr.Big

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #168 on: April 16, 2006, 06:32:54 PM »
Ah, NI apparently calls it Script Name and is at offset 280
"You alone can make my song take flight..."

Mr.Big

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #169 on: April 17, 2006, 02:42:54 PM »
Praise Helm!  Thank you very much.  I'm trying my hand at making King Arthur atm, and I may eventually create a Monty Python and the Holy Grail minimod!  Complete with White Rabbit! 

Anyway, Is there anything else that I need to know that is different from the tutorial (using NI)?

Offline biubid_boy

  • Planewalker
  • *****
  • Posts: 4
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #170 on: April 25, 2006, 07:01:47 PM »
Umm.. unless its yours, thyere already is a Holy Grail Minimod...

Mr.Big

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #171 on: April 26, 2006, 04:39:16 PM »
Bah, I should have known.  It isn't mine, and I've never heard of it.  There goes that idea...

Back to the drawing board, I guess.

Is there a link to the mod?

Perilofwolf

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #172 on: April 27, 2006, 10:42:37 AM »
IS there anyone i can send my mod to? It doesnt seem to work but i cant find a problem! If u can help PLZ email me :'(
Conor_shutup@hotmail.co.uk and i'll send u my mod

Perilofwolf

  • Guest
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #173 on: April 27, 2006, 10:47:29 AM »
IS there anyone i can send my mod to? It doesnt seem to work but i cant find a problem! If u can help PLZ email me :'(
Conor_shutup@hotmail.co.uk and i'll send u my mod

Offline Grim Squeaker

  • Fallen
  • Planewalker
  • *****
  • Posts: 1019
  • Gender: Male
Re: A Beginner's Guide to NPC creation with WeiDU
« Reply #174 on: April 27, 2006, 11:35:31 AM »
Why don't you tell us what's not working and post the appropriate code.  Is it that its not doing what you think or that it isn't installing?
"You alone can make my song take flight..."

 

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)?: