Author Topic: Noob with Need  (Read 33303 times)

0 Members and 1 Guest are viewing this topic.

Offline Smiling Imp

  • Eternal Apprentice
  • Modders
  • Level 1
  • *****
  • Posts: 290
  • Karma: +7/-0
  • Gender: Male
    • View Profile
    • Email
Re: Noob with Need
« Reply #75 on: August 20, 2009, 07:52:46 PM »
Thanks Sasha and Ardanis for your responses. Weight huh? Yeah I hadn't gotten into that stuff yet. AFter following your advice this is what my dialogue looks like

IF WEIGHT #-1 ~Name("Link",LastTalkedToBy)NumTimesTalkedTo(0)~ THEN BEGIN LINK1
SAY ~

IF WEIGHT #-2 ~NumTimesTalkedTo(0)~ THEN BEGIN Talk1
SAY ~

Still not working though.

Offline Ardanis

  • Newbie
  • *
  • Posts: 77
  • Karma: +12/-2
  • Gender: Male
    • View Profile
    • Email
Re: Noob with Need
« Reply #76 on: August 20, 2009, 11:25:34 PM »
I did think I should have been a bit more elaborative.

The lower WEIGHT value is, the higher priority it provides. So in you case it has to be

IF WEIGHT #1 ~Name("Link",LastTalkedToBy)NumTimesTalkedTo(0)~ THEN BEGIN LINK1
SAY ~

IF WEIGHT #2 ~NumTimesTalkedTo(0)~ THEN BEGIN Talk1
SAY ~


What I've said about -1 value was that when the dialog is compiled, that state will have the lowerest weight. For example, if you don't need/want to weight every state then you can mark one with the negative so it goes all the way down

IF WEIGHT #-1 ~Name("Link",LastTalkedToBy)NumTimesTalkedTo(0)~ THEN BEGIN LINK1
SAY ~

IF ~NumTimesTalkedTo(0)~ THEN BEGIN Talk1
SAY ~

Offline Smiling Imp

  • Eternal Apprentice
  • Modders
  • Level 1
  • *****
  • Posts: 290
  • Karma: +7/-0
  • Gender: Male
    • View Profile
    • Email
Re: Noob with Need
« Reply #77 on: August 21, 2009, 10:14:02 PM »
I did think I should have been a bit more elaborative.

No, I think I should have better elaborated how little I know about computers/weidu code.



Anyways I made the changes you specified and after eating a couple bananas and flinging my poop around,
I think I got it.. thanks