ChallengeEncounterT * c1 = new
ChallengeEncounterT("jump a deep ditch.",
"you sail over the ditch.",
"you fall in the ditch.", AbilityT::STRONG, 3);
Bob is at position 2.
0 ............... Exit
What do you want to do? 0
This is a challenge Encounter
Using strong you must jump a deep ditch.
And you must have at least 3 successes
Figuring out your dice pool:
You start at 2
You are strong so that adds 1 for 3
You are strong so that adds 1 for 4
Your Sword adds 1 for 5
So you will roll 5 dice.
Rolling
Die 1 is a 1 fail.
Die 2 is a 2 fail.
Die 3 is a 1 fail.
Die 4 is a 5 success.
Die 5 is a 5 success.
You had 2.
This is a failure: you fall in the ditch.
Oops that didn't work. Try again
0 ............... Exit
What do you want to do? 0
This is a challenge Encounter
Using strong you must jump a deep ditch.
And you must have at least 3 successes
Figuring out your dice pool:
You start at 2
You are strong so that adds 1 for 3
You are strong so that adds 1 for 4
Your Sword adds 1 for 5
So you will roll 5 dice.
Rolling
Die 1 is a 1 fail.
Die 2 is a 6 success.
Die 3 is a 4 success.
Die 4 is a 6 success.
Die 5 is a 5 success.
You had 4.
This is a success: you sail over the ditch.
You move to the next room
class ChallengeEncounterT : public EncounterT {
public:
ChallengeEncounterT() = default;
ChallengeEncounterT(ChallengeEncounterT & ) = default;
ChallengeEncounterT(ChallengeEncounterT && ) = delete;
ChallengeEncounterT(std::string newChallenge,
std::string newSuccess,
std::string newFail, AbilityT newAbility,
int newDifficulty);
virtual ~ChallengeEncounterT() = default;
ChallengeEncounterT * Clone() override;
bool DoEncounter(PlayerT & player) override ;
protected:
virtual int CountDie(const PlayerT & player);
virtual int Roll();
private:
std::string challenge, success, fail;
AbilityT ability;
int difficulty;
};
Challenge: You think it might be a good thing to search the room"
Success: You find a <Describe item here>. The <item name> has been added to your inventory.
Fail: You don't find anything.
PostSuccess: You search again but don't find anything.