-
Notifications
You must be signed in to change notification settings - Fork 143
Dice Check SubPhase
Michael Speth edited this page Oct 18, 2017
·
1 revision
(Version 0.1.2)
If player must roll a dice to perform any check, this subphase is used.
Create a subphase as child of "SubPhases.DiceRollCheckSubPhase"
Override "Prepare" method:
- Set "dicesType" - Attack of Defence
- Set "diceCount"
- Set "finishAction" - method that will be called after dice is rolled
In "finishAction":
- Call "HideDiceResultMenu" to hide this window
- Use "CurrentDiceRoll.DiceList[0].Side" to get side of dice
When decision is taken and everything is done:
- Call "Phases.FinishSubphase" for this phase's type
- Call "CallBack"
When you need to throw a dice for check, call: Phases.StartTemporarySubPhase(DisplayedNameOfSubphase, TypeOfYouNewSubphase, CallBack)