Difference between revisions of "How can I conditionalize dialogue on the sum of two variables, or compare one variable against another?"
How can I conditionalize dialogue on the sum of two variables, or compare one variable against another? (edit)
Revision as of 02:39, 28 November 2008
, 02:39, 28 November 2008no edit summary
imported>Rhavlovick m (Reverted edit of Steve, changed back to last version by Rhavlovick) |
imported>KyleWollaston |
||
Line 16: | Line 16: | ||
*The conditions on HireMerc1 and HireMerc2 can now use the condition: GetScriptVariable theNPCID, XY < 10 | *The conditions on HireMerc1 and HireMerc2 can now use the condition: GetScriptVariable theNPCID, XY < 10 | ||
<pre> | |||
;Result Field | |||
Set XY to X + Y | |||
;Condition | |||
If XY < YourNumber | |||
</pre> | |||
Line 26: | Line 35: | ||
*Check XlessthanY in the conditions on the dialogue choices linked to the parent topic. | *Check XlessthanY in the conditions on the dialogue choices linked to the parent topic. | ||
<pre> | |||
;Result Field | |||
If X < Y | |||
Set XLessThanY to 1 | |||
EndIf | |||
;Condition | |||
If XLessThanY</pre> | |||
[[Category:Solutions]] | [[Category:Solutions]] |