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); }
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); }
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); }
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); }
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); }
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); }