WoR_PRC8/_module/nss/etum_bard_chat3.nss

57 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
///////////
//Trash Talk Script v1.0
///////////
//This script rolls 1d10 and allows a NPC to speak based on
//Which statement the number belongs to.
///////////
//Script by Lenkyl Greatstorm
//Date Created: 6/24/02
///////////
string sSayThis;
int iTalkVolume = TALKVOLUME_TALK;
int iRollTen = d10(1);
int iTalkFlag = 0;
void main()
{
if(d100(1) > 71) //Gives this script a 30% chance of completing
{ //Its execution. Call it my anti-spam code. (c:
if(iRollTen != 0) //Just in case a 0 slips in though I don't think
{ //It's possible.
switch(iRollTen) //Jump to the rolled statement number.
{
case 1:
sSayThis = "We were running out of supplies and help was days away...";
break;
case 2:
sSayThis = "You should have seen it...trolls everywhere.";
break;
case 3:
sSayThis = "He tapped him on the shoulder and said...what did you call me?";
break;
case 4:
sSayThis = "The guy with us...he tried to double cross us.";
break;
case 5:
sSayThis = "He said...oh, a camp. Then the other guy said...oh, bandits!";
break;
case 6:
sSayThis = "Stay away from Stralad. It is in ruins.";
break;
case 7:
sSayThis = "We walked around that maze for hours.";
break;
case 8:
sSayThis = "I think I might sleep in the guildhouse tonight.";
break;
case 9:
sSayThis = "Then what did you guys do?";
break;
case 10:
sSayThis = "I would have ran as well. No point dying.";
break;
} //End Switch Statement
SpeakString(sSayThis, iTalkVolume); //Make the NPC talk
} //End If Statement
} //End If Statement
} //End Main