Death counters are your best solution.
In this example, "psi emitter" is the first die, and "data disc" is the second die. You can use whatever, as long as they can't be killed in your map.
Deaths of "independent command center" represents the sum of the dice.
Triggers:Current player has 6 deaths of "psi emitter"
Set deaths of "psi emitter" to 1.
Preserve trigger.
(This loops the first die's counter back to 1 after it gets to 6.)
Current player has 6 deaths of "data disc"
Set deaths of "data disc" to 1.
Preserve trigger.
(This loops the second die's counter back to 1 after it gets to 6.)
Always add 1 to deaths of "psi emitter" for current player.
Preserve trigger.
(This cycles through from 1 to 6 for the first die.)
Always add 1 to deaths of "data disc" for current player.
Preserve trigger.
(This cycles through from 1 to 6 for the second die.)
Player brings 1 civilian to "Roll dice!"
Set Switch "Rolled 1."
Set Switch "Rolled 2."
Preserve trigger.
(The player rolls the dice.)
Switch "Rolled 1" is set.
Current player has exactly 1 death of "psi emitter"
Add 1 to deaths of "independent command center".
Clear Switch "Rolled 1."
Preserve trigger.
Switch "Rolled 1" is set.
Current player has exactly 2 deaths of "psi emitter"
Add 2 to deaths of "independent command center".
Clear Switch "Rolled 1."
Preserve trigger.
... (3, 4, 5)
Switch "Rolled 1" is set.
Current player has exactly 6 deaths of "psi emitter"
Add 6 to deaths of "independent command center".
Clear Switch "Rolled 1."
Preserve trigger.
(Adds from 1-6 based on the result of the first die.)
Switch "Rolled 2" is set.
Current player has exactly 1 death of "data disc"
Add 1 to deaths of "independent command center".
Clear Switch "Rolled 2."
Preserve trigger.
Switch "Rolled 2" is set.
Current player has exactly 2 deaths of "data disc"
Add 2 to deaths of "independent command center".
Clear Switch "Rolled 2."
Preserve trigger.
... (3, 4, 5)
Switch "Rolled 2" is set.
Current player has exactly 6 deaths of "data disc"
Add 6 to deaths of "independent command center".
Clear Switch "Rolled 2."
Preserve trigger.
Then you can do whatever you want based on the number of deaths in the death counter.
For example, if you want to move 1 space per count on the sum of the die, you can repeatedly call the trigger which moves you and subtract 1 death from "independent command center" each space moved.
Post has been edited 1 time(s), last time on Apr 30 2009, 5:48 am by FaZ-.
None.