Question

Hello guys!

So, thanks to this supportive community I have finished my TripleX game, but I want to polish it and I have 2 unsolved problems with it.

  1. Really simple question answer to which i may have missed but how to add “” to an existing message? Example: std::cout <<“You have learned a new spell “Reparo””. “” Doesnt seem to be registered? I want the text to say "You have learned a new spell “Reparo”

  2. This is a bit trickier question, atleast for me, but i want to randomise output text aswell as the variables, i have for every complition of a level a new text message, example:

Harry
You are a level 1 wizard

  • There are 3 numbers in the code
  • The codes add-up to: 3
  • The codes multiplies to: 1
    1 1 1

Learned new spell "Reparo"

Harry
You are a level 2 wizard

  • There are 3 numbers in the code
  • The codes add-up to: 7
  • The codes multiplies to: 9
    3 3 1

Learned new spell "Oculus"

How to do that? Sorry for so many questions, but I am a bit of a dumb student but I really want to learn :slight_smile:

Basically the same answer as your previous post. Use \" or a raw string literal.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms