Ejemplo n.º 1
0
 //starting event should stop map controller from moving
 //combat should also stop map movement
 public void StartEvent(EventDialogue e)
 {
     currentEvent = e;
     gameObject.SetActive(true);
     characterSelection.Init(state.ally);
     text.ClearDialogue();
     foreach (string s in currentEvent.dialogueText)
     {
         text.CreateDialogue(s);
     }
     foreach (EventChoice c in currentEvent.choices)
     {
         text.CreateChoice(c);
     }
     text.NextLine();
 }
 //checks character stats / items
 //determines outcome
 //prints out outcome to dialogue list
 //calls event outcome
 public EventOutcome Outcome(Unit actor, Item usage, DialogueList output)
 {
     output.CreateDialogue(choiceAction);
     if (CheckSuccess(actor, usage))
     {
         return(successOutcome);
     }
     else
     {
         return(failureOutcome);
     }
 }