33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
|
void main()
|
||
|
{
|
||
|
string sSayThis;
|
||
|
int iTalkVolume = TALKVOLUME_TALK;
|
||
|
int iTalkFlag = 0;
|
||
|
object oPC = GetNearestCreature( CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC );
|
||
|
ClearAllActions();
|
||
|
if ( GetDistanceToObject(oPC) < 8.0 && !GetIsDead(oPC) ) {
|
||
|
int nRandom = d12(1);
|
||
|
if (nRandom == 1){
|
||
|
sSayThis = "Please...help me escape.";}
|
||
|
else if (nRandom == 2){
|
||
|
sSayThis = "I want to go home.";}
|
||
|
else if (nRandom == 3){
|
||
|
sSayThis = "Quiet...they'll hear you.";}
|
||
|
else if (nRandom == 4){
|
||
|
sSayThis = "I can't get caught talking to you.";}
|
||
|
else if (nRandom == 5){
|
||
|
sSayThis = "Can you unlock these shackles?";}
|
||
|
else if (nRandom == 6){
|
||
|
sSayThis = "I beg you to free me.";}
|
||
|
else if (nRandom == 7){
|
||
|
sSayThis = "Some kobolds carry a key for these chains.";}
|
||
|
else if (nRandom == 8) {
|
||
|
sSayThis = "Are you here to save me?";}
|
||
|
ActionSpeakString(sSayThis, iTalkVolume);
|
||
|
}
|
||
|
else {
|
||
|
ActionAttack(GetNearestObjectByTag("kobold_stones"), FALSE);
|
||
|
}
|
||
|
}
|
||
|
|