View Single Post
Old 05-27-2002, 07:16 AM   #15
CocoaSpud
Zhentarim Guard
 

Join Date: March 15, 2001
Location: Melbourne, FL, USA
Posts: 375
DC updates a global attribute after each combat. The attribute is called 'Combat Result' and can be one of the following:

LoseButNeverDies
Lose
Win
Flee

After the combat event you can use LogicBlock to query 'Combat Result' for one of those values. The LogicBlock settings would be something like:

Input B: Global Attribute
(Box under B): Combat Result
Gate C: String Equal
Input A: Literal
(Box under A): Win (or Lose, etc)
Check 'Conditional Chain', check 'Chain if result true'

Then add your events to the True chain under the LogicBlock event. The String Equal operator does not ignore case for string compares, so 'Win' works but 'win' will not.
__________________
CocoaSpud<br />Dungeon Craft Development Team<br /> [url]\"http://uaf.sourceforge.net\" target=\"_blank\">http://uaf.sourceforge.net</a>
CocoaSpud is offline   Reply With Quote