Aller au contenu

Photo

Using the script "gc_skill_dc" in a conversation tree.


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I am wondering how to best set up the failure node.  Do I need to put the script on the failure node with the same parameters as the success node except with the "not" box checked, or can I just put the success node first and let the conversation fall through to the failure node if there is no success?

#2
kamalpoe

kamalpoe
  • Members
  • 711 messages
the second one.

#3
PJ156

PJ156
  • Members
  • 2 985 messages
I think this true of any test, put the hardest case at the top and let it fall through.

Have I passed test A
Have I passed test B
No test

Provided that test A is harder to acheive than test B, then the convo will fall through to the no test - or no pass case- if none of the other conditions are met.

PJ

Modifié par PJ156, 19 décembre 2010 - 09:09 .


#4
kamalpoe

kamalpoe
  • Members
  • 711 messages
There should always be a fall through, even if you expect it to never happen. If you never expect it to happen have the fall through say "A bug, report me!" or something. It's good practice.

#5
M. Rieder

M. Rieder
  • Members
  • 2 530 messages

kamalpoe wrote...

There should always be a fall through, even if you expect it to never happen. If you never expect it to happen have the fall through say "A bug, report me!" or something. It's good practice.


Hey, that's good advice.  is there a scripting command that sends a message to the player from the server without it being spoken?

#6
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 598 messages
There is a problem with using fall throughs though when the checks are on PC lines. They only work if the later choices should always be selectable. In the case of an if-else situation you do not want the second option to be displayed except when the first is not.



So if you are trying to:

- display PC line 1 if dc check succeeds

- display PC line 2 only if the dc check failed



then you do need to check for the false condition on the second line.



Optionally you can restructure the conversation so that the NPC lines do the dc check instead. Since NPC's can only have one valid response then the fall through method works.



Regards

#7
Alupinu

Alupinu
  • Members
  • 528 messages
Ok, just for the sake of argument let’s say that you have two conditional nodes and a fall through node. Now for your fall through node (third node), can that be a link-node back to the first conditional node? So that your three nodes keep going in circles until something comes up true.



I know, kind of confusing, it was just a thought.



alupinu


#8
Morbane

Morbane
  • Members
  • 1 883 messages
I have done the circular fall-through - often - when it is simply a matter of keep trying or opt out with a "nevermind" node or something like that. It is possible to create a local or global int that keeps track of how many times the circular fall-through repeats - to either make the next try easier or harder until failure or success is a sure thing.

#9
dunniteowl

dunniteowl
  • Members
  • 1 559 messages
So that's a conditional yes, then.

dno