I have some problems with the combat event. I want the hero to be ambushed, and depending on the result of the battle, I want different things to happen. The problem is that it doesn't matter if the hero win or lose the battle. The same branch alternative always follows...
For example. If I put one message in the "if defeated" branch and one message in the other, the same message is always shown after the battle. It doesn't matter if you win or lose. I don't know if this is a bug in the editor or if it's me not understanding it. I would be extremely grateful for any help.
It's a bug in the editor, not you What you can do is use a conditional in a sequence after the combat script that says:
If Total number of creatures in this army PLUS total number of heroes in this army equals 0 THEN (run the victorious side here) ELSE (run the defeated side here).
Note that the victorious/defeated refers to the scripted combat creatures, not the player. So defeated means the player's hero/army died. And just leave both braches of the combat script as Do Nothing.
This should be moved to the MapHaven Guild methinks.
____________
~Celestial Heavens~