Aller au contenu

Photo

Testing Journal Nodes with Boolean Logic


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

#1
JonnieR

JonnieR
  • Members
  • 98 messages
I do not have any proble with testing whether or not a node (in a conversation) is equal or not equal to a certain value, but I have not been able to test for a greater than, less than, greater or equl;a to or less than or equal to instance.

I have seen it done in scripting but not in the node conditional on a conversation. I have been told that it is possible, but I have never been able to figure how to do it.

Can anyone shed any light on this?

#2
kamalpoe

kamalpoe
  • Members
  • 711 messages
Under the gc_journal_entry script in the conditional you should be able to use the <, >, <=, >= operators. I'm not sure if you can use more than one at once. I normally just put in a bunch of "or"s and check each journal possibility I want independently.

#3
_Knightmare_

_Knightmare_
  • Members
  • 643 messages
The gc_journal_entry script does not allow for every combination possible (I could be wrong). Anyway, here's a simple version that expands the options: http://nwcitadel.for...663&postcount=4

Modifié par _Knightmare_, 30 septembre 2010 - 01:09 .


#4
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 585 messages
gc_journal_entry uses the CompareInts function in ginc_var_ops, so you should be able to check for greater than, less than, not equal to using >, < !, respectively.



For example: >100 should check for greater than 100.



Regards

#5
Olblach

Olblach
  • Members
  • 175 messages
In a script you can do:

	iQuestEntry = GetLocalInt(oPC, "NW_JOURNAL_ENTRY###");

Where ### is your journal entry then do all the tests you want.