2 CHARACTER(assassin
, humanoid
)
5 virtual void BeTalkedTo();
13 void assassin::BeTalkedTo () {
14 if (GetRelation(PLAYER
) == HOSTILE
) {
15 if (PLAYER
->GetMoney() >= 1500) {
16 ADD_MESSAGE("%s talks: \"If you shell out \1Y1500\2 gold pieces I'll join your side\"", CHAR_DESCRIPTION(DEFINITE
));
17 if (game::TruthQuestion(CONST_S("Do you want to bribe him?"))) {
18 PLAYER
->SetMoney(PLAYER
->GetMoney()-1500);
19 ChangeTeam(PLAYER
->GetTeam());
23 ADD_MESSAGE("\"Trying to reason me with diplomancy won't work on me.\"");