Author Topic: How do I...  (Read 1866 times)

Offline Ryan

  • Planewalker
  • *****
  • Posts: 11
  • Gender: Male
How do I...
« on: February 05, 2005, 01:27:34 PM »
OKay I've been making this random NPC that appears in a house in the government district. The problem is you can only talk to him once then it says he has nothing more to say to you. This is the code I have for the dialogue, what should  change/add? Do I have to reset NumTimesTalkedTo to 0 somehow or what? I'll try figuring it out in the meantime. Also is there a program that tells you what mods you've installed in what order?

BEGIN R#Kredan

IF ~NumTimesTalkedTo(0)~ THEN BEGIN FirstMeeting
SAY ~Hey fartface! Over Here!~
IF ~~ THEN REPLY ~What do you want?~ GOTO Inquire
IF ~~ THEN REPLY ~Heya.~ GOTO Greet
IF ~~ THEN REPLY ~Go away.~ GOTO GoAway
END

IF ~~ THEN BEGIN Inquire
SAY ~I'll tell you later once my maker has thought of something interesting for me to say...~
IF ~~ THEN REPLY ~Oh... I hate you.~ EXIT
END

IF ~~ THEN BEGIN Greet
SAY ~I'm computer generated.~
IF ~~ THEN REPLY ~Interesting. I have to leave.~ EXIT
END

IF ~~ THEN BEGIN GoAway
SAY ~Fine. But remember this day my friend for today was the day I made cookies! YAy!~
IF ~~ THEN EXIT
END

Offline Kismet

  • Devil's Minion #5
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 653
  • Gender: Female
  • Veni; Vidi; Velcro.
    • Pocket Plane Group
Re: How do I...
« Reply #1 on: February 05, 2005, 01:33:19 PM »
Well, after you talk to him once, NumTimesTalkedTo(0) is no longer true.  So you need to add a state with a condition that'll return true (i.e. NumTimesTalkedToGT(0)  or somesuch.)

Your weidu.log file tells you which weidu mods you have installed.
Cailean - An archer NPC for the insatiably nosy!  Guaranteed more fun than shampooing cats!

Offline Ryan

  • Planewalker
  • *****
  • Posts: 11
  • Gender: Male
Re: How do I...
« Reply #2 on: February 05, 2005, 01:44:16 PM »
Thanks, I'll try it. Do you know a good place where I can find the different things you can do with weidu? The different functions and what they do etc. ie. NumTimesTalkedToGT(0) That would probably be extremely helpful. I found weidu.log, thanks.

Offline Kismet

  • Devil's Minion #5
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 653
  • Gender: Female
  • Veni; Vidi; Velcro.
    • Pocket Plane Group
Re: How do I...
« Reply #3 on: February 05, 2005, 01:49:37 PM »
IESDP contains very helpful information actions and triggers and a whole host of other stuff dealing with the Infinity Engine.  http://iesdp.gibberlings3.net/main.htm

The WeiDU readme contains very helpful information on different WeiDU commands. This can be found in your weidu directory.
Cailean - An archer NPC for the insatiably nosy!  Guaranteed more fun than shampooing cats!

Offline Caswallon

  • Telvanni Archmagister
  • Planewalker
  • *****
  • Posts: 324
  • Gender: Male
    • BG Forum
Re: How do I...
« Reply #4 on: February 05, 2005, 01:50:12 PM »
Dialogue conditions and actions are basically the same as those used in scripts, so you should look at Scripting Triggers and Actions in IESDP. :)
Man's Mystery
Man is mortal, and doomed to death and failure and loss.
This lies beyond our comprehension - why do you not despair?
--Spirit of the Daedra--

Offline Lu

  • Planewalker
  • *****
  • Posts: 750
  • Gender: Female
Re: How do I...
« Reply #5 on: February 05, 2005, 02:23:19 PM »
  To Ryan:
  Looks like things are a bit messy in your head so far
  E.g.,  NumTimesTalkedTo(0) is not a function (action), it's a trigger
  Furthermore, actions and triggers are not Mr.Weimer's creation, they are IE (Infinity Engine) built-in eh... things
  So, IMO you have to read tutorials on basical simple things first of all. They are pretty many and easy to find

Offline Ryan

  • Planewalker
  • *****
  • Posts: 11
  • Gender: Male
Re: How do I...
« Reply #6 on: February 05, 2005, 03:04:33 PM »
Um, thank you lu, I think...  :-\

The IESDP is quite helpful thank you. It was just what I was looking for, I think someone sent me that link ealier though so I suppose I should have noticed that. Anyway thank you Kismet.

Offline Lu

  • Planewalker
  • *****
  • Posts: 750
  • Gender: Female
Re: How do I...
« Reply #7 on: February 05, 2005, 05:04:45 PM »
  "Lu" is a name, by the way

Offline Ryan

  • Planewalker
  • *****
  • Posts: 11
  • Gender: Male
Re: How do I...
« Reply #8 on: February 05, 2005, 05:45:38 PM »
Yes, I gathered that. Sorry I accidentally didn't capitalize the L...

Offline Lu

  • Planewalker
  • *****
  • Posts: 750
  • Gender: Female
Re: How do I...
« Reply #9 on: February 05, 2005, 05:56:01 PM »
 You are forgiven
 Well, if you have problems finding tutorials that satisfy you (and I insist that you should start with those for the
  beginners), then let me know. There were plenty of them on TeamBG, but they've been down since lust summer
  I have most of them copied, so I would gladly send you them zipped, if you need

Offline Ryan

  • Planewalker
  • *****
  • Posts: 11
  • Gender: Male
Re: How do I...
« Reply #10 on: February 05, 2005, 07:05:05 PM »
 :) Thanks. I'll keep that in mind. Have a good weekend eh.

 

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