Example #1
0
 public void InvalidInputEventResponse()         // Set text display, set player event state, save text as previous text (for text formatting), up date the display text
 {
     DataStore.player.eventState = 5;
     textDisplay         = (previousTextDisplay + "<b>" + userInput + "</b>" + '\n' + '\n' + invalidInputResponse + '\n' + '\n' + callToAction + '\n' + '\n');
     previousTextDisplay = textDisplay;
     TextHolder.SetTextDisplayContent(textDisplay);
 }
Example #2
0
        public void FindLineEventResponse()                   // Set the players event state, set text display, save text as previous text (for text formatting), update the display text
        {
            DataStore.player.eventState = 4;
            string outCome = [email protected]["findEventOutcomeText"];

            textDisplay         = (previousTextDisplay + "<b>" + userInput + "</b>" + '\n' + '\n' + outCome + '\n' + '\n' + callToAction + '\n' + '\n');
            previousTextDisplay = textDisplay;
            TextHolder.SetTextDisplayContent(textDisplay);
        }
Example #3
0
        public void TakeLineEventResponse()
        {
            AddToInventory("Fishing Line");
            DataStore.player.eventState = 5;
            string outCome = [email protected]["takeEventOutcomeText"];

            textDisplay         = (previousTextDisplay + "<b>" + userInput + "</b>" + '\n' + '\n' + outCome + '\n' + '\n' + callToAction + '\n' + '\n');
            previousTextDisplay = textDisplay;
            TextHolder.SetTextDisplayContent(textDisplay);
        }
Example #4
0
        public void SealAttackEventResponse()       // Reduce the players health, set text display, set player event state, save text as previous text (for text formatting), update the display text
        {
            ReduceHealth(5);
            DataStore.player.eventState = 5;
            string outCome = [email protected]["badEventOutcomeText"];

            textDisplay         = (previousTextDisplay + "<b>" + userInput + "</b>" + '\n' + '\n' + outCome + '\n' + '\n' + "<b>" + "lose 5 health points" + "</b>" + '\n' + '\n' + callToAction + '\n' + '\n');
            previousTextDisplay = textDisplay;
            TextHolder.SetTextDisplayContent(textDisplay);
        }
Example #5
0
        public void EatSeaweedEventResponse()          // Increase the players health, set text display, set player event state, save text as previous text (for text formatting), update the display text
        {
            IncreaseHealth(2);
            DataStore.player.eventState = 5;
            string outCome = [email protected]["goodEventOutcomeText"];

            textDisplay         = (previousTextDisplay + "<b>" + userInput + "</b>" + '\n' + '\n' + outCome + '\n' + '\n' + "<b>" + "gain 2 health points" + "</b>" + '\n' + '\n' + callToAction + '\n' + '\n');
            previousTextDisplay = textDisplay;
            TextHolder.SetTextDisplayContent(textDisplay);
        }
Example #6
0
 public void SetInitialTextDisplay()           // Create a string for the initial text display
 {
     textDisplay         = ('\n' + locationDescription + '\n' + '\n' + eventText + '\n' + '\n' + callToAction + '\n' + '\n');
     previousTextDisplay = textDisplay;
     TextHolder.SetTextDisplayContent(textDisplay);
 }