//debugai 240 //debugaievents 1 //debugmode 3 inert 1 removeinventory sleep 2.0 sethealth 90 message "*Health is 90" 1 call Do_TestProperty sleep 1.0 sethealth 90 message "*Health is 90" 1 call Do_TestPropertyCI sleep 1.0 sethealth 100 message "*Health is 100" 1 call Do_TestPropertyE sleep 1.0 sethealth 40 message "*Health is 40" 1 call Do_TestPropertyG sleep 1.0 sethealth 50 message "*Health is 50" 1 call Do_TestPropertyGE sleep 1.0 sethealth 50 message "*Health is 50" 1 call Do_TestPropertyL sleep 1.0 sethealth 50 message "*Health is 50" 1 call Do_TestPropertyLE call End_Script //----------------------------------------------------------------------------- :Do_TestPropertyLE message "Beginning TestPropertyLE" 1 message " TestProperty: Is Health <= 50?" 1 testpropertyle pawn health 50 gotolabel TrueTPLE gotolabel FalseTPLE :Back2TPLE call Return_to_ReadySpot message "Finished TestPropertyLE" 1 return //----------------------------------------------------------------------------- :FalseTPLE message " Conditional is FALSE, going LEFT" 1 gotoactor PathNode32 gotolabel Back2TPLE //----------------------------------------------------------------------------- :TrueTPLE message " Conditional is TRUE, going RIGHT" 1 gotoactor PathNode37 gotolabel Back2TPLE //----------------------------------------------------------------------------- :Do_TestPropertyL message "Beginning TestPropertyL" 1 message " TestProperty: Is Health < 50?" 1 testpropertyl pawn health 50 gotolabel TrueTPL gotolabel FalseTPL :Back2TPL call Return_to_ReadySpot message "Finished TestPropertyL" 1 return //----------------------------------------------------------------------------- :FalseTPL message " Conditional is FALSE, going LEFT" 1 gotoactor PathNode32 gotolabel Back2TPL //----------------------------------------------------------------------------- :TrueTPL message " Conditional is TRUE, going RIGHT" 1 gotoactor PathNode37 gotolabel Back2TPL //----------------------------------------------------------------------------- :Do_TestPropertyGE message "Beginning TestPropertyGE" 1 message " TestProperty: Is Health >= 50?" 1 testpropertyge pawn health 50 gotolabel TrueTPGE gotolabel FalseTPGE :Back2TPGE call Return_to_ReadySpot message "Finished TestPropertyGE" 1 return //----------------------------------------------------------------------------- :FalseTPGE message " Conditional is FALSE, going LEFT" 1 gotoactor PathNode32 gotolabel Back2TPGE //----------------------------------------------------------------------------- :TrueTPGE message " Conditional is TRUE, going RIGHT" 1 gotoactor PathNode37 gotolabel Back2TPGE //----------------------------------------------------------------------------- :Do_TestPropertyG message "Beginning TestPropertyG" 1 message " TestProperty: Is Health > 50?" 1 testpropertyg pawn health 50 gotolabel TrueTPG gotolabel FalseTPG :Back2TPG call Return_to_ReadySpot message "Finished TestPropertyG" 1 return //----------------------------------------------------------------------------- :FalseTPG message " Conditional is FALSE, going LEFT" 1 gotoactor PathNode32 gotolabel Back2TPG //----------------------------------------------------------------------------- :TrueTPG message " Conditional is TRUE, going RIGHT" 1 gotoactor PathNode37 gotolabel Back2TPG //----------------------------------------------------------------------------- :Do_TestPropertyE message "Beginning TestPropertyE" 1 message " TestProperty: Does Health = 100?" 1 testpropertye pawn health 100 gotolabel TrueTPE gotolabel FalseTPE :Back2TPE call Return_to_ReadySpot message "Finished TestPropertyE" 1 return //----------------------------------------------------------------------------- :FalseTPE message " Conditional is FALSE, going LEFT" 1 gotoactor PathNode32 gotolabel Back2TPE //----------------------------------------------------------------------------- :TrueTPE message " Conditional is TRUE, going RIGHT" 1 gotoactor PathNode37 gotolabel Back2TPE //----------------------------------------------------------------------------- :Do_TestPropertyCI message "Beginning TestPropertyCI" 1 message " TestProperty: Does Name = u2mercjapmedium1" 1 testpropertyci pawn name u2mercjapmedium1 gotolabel TrueTPCI gotolabel FalseTPCI :Back2TPCI call Return_to_ReadySpot message "Finished TestPropertyCI" 1 return //----------------------------------------------------------------------------- :FalseTPCI message " Conditional is FALSE, going LEFT" 1 gotoactor PathNode32 gotolabel Back2TPCI //----------------------------------------------------------------------------- :TrueTPCI message " Conditional is TRUE, going RIGHT" 1 gotoactor PathNode37 gotolabel Back2TPCI //----------------------------------------------------------------------------- :Do_TestProperty message "Beginning TestProperty" 1 message " TestProperty: Does Health = 100?" 1 testproperty pawn health 100 gotolabel TrueTP gotolabel FalseTP :Back2TP call Return_to_ReadySpot message "Finished TestProperty" 1 return //----------------------------------------------------------------------------- :FalseTP message " Conditional is FALSE, going LEFT" 1 gotoactor PathNode32 gotolabel Back2TP //----------------------------------------------------------------------------- :TrueTP message " Conditional is TRUE, going RIGHT" 1 gotoactor PathNode37 gotolabel Back2TP //----------------------------------------------------------------------------- :Return_to_ReadySpot gotoactor PathNode98 return //----------------------------------------------------------------------------- :End_Script sethealth 100 gotoactor PathNode98 sleep 1.0 setscript TestU2_Master Returning_from_Conditionals_Script